AbelCam Forum
Download AbelCam buy Pro
 
 
 
Welcome Anonymous User
05/02/2024 - 02:32 AM
Quick Search:
Quick Jump:
 
Announcements
Latest Topics
 
Silverlight problems
By: MichaelAn
Rank: Forum Addict
Topics: 56
From: Denmark
Added: 07/07/2009 - 07:48 PM

I am trying to get the silverlight directly on my page, i got the java applet on it already, and it just runs without any problems. But i got some problems with the silverlight.

I found something about it on the wiki, and edited it to fit my page, but i still can't get it to show anything.

<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="320" height="240">
<param name="source" value="http://www.abelcam.com/img/AbelSilver.xap"/>
<param name="onerror" value="onSilverlightError" />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="2.0.31005.0" />
<param name="initParams" value="ServerURL=http://62.66.191.188:8081/,cam=4" />
<param name="autoUpgrade" value="true" />
<a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
</a>
</object>

Can anyone see what i am doing wrong?

The page where i am trying this is here: http://bld-live.dk/?id=20&cam=20
By: sse
Rank: Forum Addict
Topics: 73
From: n/a
Added: 07/08/2009 - 01:33 PM

Just a quick guess:
You might have to load the silverlight applet from your server instead of mine
By: MichaelAn
Rank: Forum Addict
Topics: 56
From: Denmark
Added: 07/09/2009 - 06:28 AM

I had that to begin with, thought i was doing it wrong, so i changed to the example with yours.
By: MichaelAn
Rank: Forum Addict
Topics: 56
From: Denmark
Added: 07/09/2009 - 06:40 AM

I have been trying to move around with the parameters, changing server for the xap file, changing ip for the cam, double and tribble checked. Still nothing...

Can it be the ServerURL not beeing loaded by it?
By: MelvinG
Rank: Magna Cum Laude
Topics: 661
From: Los Angeles, USA
Added: 07/09/2009 - 10:14 AM

I'm GUESSING this line needs to be deleted:

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

As far as I can tell, you're trying to assign a function that is never defined to an event handler. Could definitely be a problem! Wink
By: sse
Rank: Forum Addict
Topics: 73
From: n/a
Added: 07/09/2009 - 12:32 PM

Michael, when I said 'your server' I meant the server the html page comes from, not the one that delivers the image.
By: MichaelAn
Rank: Forum Addict
Topics: 56
From: Denmark
Added: 07/09/2009 - 02:17 PM

I did that too, with same result. Put all the files in the same folder as the asp file making the site. And called <param name="source" value="AbelSilver.xap"/>

But removing the line did the trick. Frin
By: sse
Rank: Forum Addict
Topics: 73
From: n/a
Added: 07/09/2009 - 05:56 PM

Just for the records: the final version is
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="320" height="240">
	<param name="source" value="AbelSilver.xap">
	<param name="background" value="silver">
	<param name="minRuntimeVersion" value="2.0.31005.0">
	<param name="initParams" value="ServerURL=http://x.x.x.x:y, cam=z">
	<param name="autoUpgrade" value="true">
	<a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
		<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none;">
	</a>
</object>
replace x with your IP number or host name, y with the port number, z with the camera number
By: MichaelAn
Rank: Forum Addict
Topics: 56
From: Denmark
Added: 07/10/2009 - 01:03 PM

Oh, and if it is on IIS, then they have to add the .xap to MIME or it wont be allowed to be accessed.