Still looking for a sponsor Max Paulousky is looking for a Silverlight/.Net job in the Commonwealth

Share to Facebook Tweet this! Share to MySpace Share to Google Share to Live   Share via AddThis

Windows Phone 7 Sound Track

Microsoft revealed Windows Phone 7 Application Platform at the MIX10 conference. Also, the Windows Phone 7 for Developers and Windows Phone 7 Series web sites were launched.

Initially, Microsoft presented an animated trailer which described main functions of the device. You could see it on the main page of the Windows Phone 7 Series web site. Besides watching animation, you could listen to a nice sound track. I called it Windows Phone 7 Soundtrack and decided to pull it out.

At the beginning I thought that the soundtrack is embedded into a xap file. I downloaded it and opened via Reflector. I didn’t find it in resources. The only thing I found was that App class got two initial parameters (MovieBaseUri and SoundBaseUri) from the StartupEventArgs parameter. The second one was the card! That parameter was passed to MainPage and I found the line where a Uri for the soundtrack was built:

new Uri(this._SoundBaseUri + "/Sound/Theme_Long.mp3", UriKind.Absolute);

The last thing I discovered was the value of the SoundBaseUri parameter. I found it in the web page source code.

<object height="768" width="1024" type="application/x-silverlight-2" data="data:application/x-silverlight," id="slPhoneDemo" onclick="trackClick('demo');">
  <param value="60" name="maxFramerate">
  <param value="sl/MicrosoftWinPhone7SilverlightApp.xap" name="source">
  <param value="onSilverlightError" name="onerror">
  <param value="true" name="windowless">
  <param name="InitParams" value="SoundBaseUri=,MovieBaseUri=">
  <param value="3.0.40624.0" name="minRuntimeVersion">
  <param value="true" name="autoUpgrade">
  <a style="text-decoration: none;" href=";v=3.0.40624.0">
    <img style="border-style: none;" alt="Get Microsoft Silverlight" src=""></a>

It was equal to

Eventually, I concatenate two strings and got the Url to Windows Phone 7 Soundtrack!


P.S. I uploaded it to my and wife’s phones already. Do the same!

This work is licensed under a Creative Commons Attribution By license.

Leave a Comment [ RSS ]

Comments have been closed on this topic.