Home > Uncategorized > SAVING a SilverLight Media for Offline purpose

SAVING a SilverLight Media for Offline purpose

Hi all:

About 10 days ago, in the 10th MSP meeting, Allen Tuladhar, the Country Manager, Microsoft MDP Nepal talked about Saving the SilverLight Media for offline purpose. Then after, I searched wherever I could, and wherever I found, but didn’t find a satisfactory answer.

But, still there’s a primary solution to this problem, although this will not work well.

And one thing new to the SilverLight 3.0 is that Offline Purpose Saving is possible but not with v 2.0

So, let’s get started:

All I wanted was, I needed to extract the SilverLight media present at the student-partners.com homepage, which is http://www.student-partners.com. To some beginners, if this question is asked then the reply might be prompt, Right click into the media and just click “Save As”. But if the media is SilverLight, right clicking it will show SilverLight. So how do we solve this issue?

All I did was, typed in the student-partners homepage and then when the page was fully loaded, I clicked within the page, but not touching the SilverLight Media and click “View Source”. Then the screen similar to the following one will appear,

But we are not interested in the whole HTML code, written for this page. Rather we shall find the portion of the code where the URL to the SilverLight Media resides. So, if we scroll a some lines below, we can find a block of code as:

 

 

<object width="940" height="297" ID="SLMain" data="data:application/x-silverlight," type="application/x-silverlight-2">

<param name="source" value="/ClientBin/MSPFrontpage.xap" />

 

Note tha URL “ClientBin/MSPFrontpage.xap”, just add the original domain to the URL, that is:

for this content, http://www.student-partners.com/ClientBin/MSPFrontpage.xap

Just download it and now simply create a simple HTML with the following code:

<html>

<body>

<div id="silverlightControlHost" style="margin-left:40px">

<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="250px">

<param name="source" value="MSPFrontpage.xap"/>

<param name="onerror" value="onSilverlightError" />

<param name="background" value="Transparent" />

<param name="windowless" value="True" />

<param name="minRuntimeVersion" value="2.0.31005.0" />

<param name="autoUpgrade" value="true" />

<a href="http://go.microsoft.com/fwlink/?LinkID=124807&quot; style="text-decoration: none;">

<img src="http://go.microsoft.com/fwlink/?LinkId=108181&quot; alt="Get Microsoft Silverlight" style="border-style: none"/>

</a>

</object>

</div>

</body>

</html>

This should work well with all the SilverLight media. For the moment I am not sure about the MSP Photochain. Will be posting in the same blog, if I get any new details.

 

Advertisements
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: