Video Template
Hello Ivan,
Im Customizing Video Templates ( Frontend) ... both List and Details View ... I have Created User Controls for the both ... Im using Video Gallery of Sitefinity 4.0 to store Videos ... Can u pls tel me how to get n display those Videos and Thumbnail in my User Control (using Sitefinity Tables) ...
Thanks ... :)
Hi Anu,
You should have a payer that shows the videos. You can get the media object using the API.
Greetings,
Ivan Dimitrov
the Telerik team
Hello Ivan,
Thanks for ur Reply ... Now im able to display Thumbnail ... But still stuck in playing the Videos ... I have used Video Library as follows ...
IQueryable
<Video> singleVideos = FindVideos(new Guid(Request.QueryString["ID"]));
Array arr = singleVideos.ToArray();
<object id="slPlayerPlugin"
data="data:application/x-silverlight"
width="500" height="400" type="application/x-silverlight" processcomplete="undefined">
<param name="minRuntimeVersion" value="4.0.50401.0" />
<param name="windowless" value="true" />
<param name="background" value="Transparent" />
<param name="autoUpgrade" value="false" />
<param name="source" value="/COMMUNICATE_2/ClientBin/Telerik.Sitefinity.Silverlight.xap" />
<param name="initParams" value="controlName=mediaplayer" />
<param name="onError" value="__slEvent0" />
<param name="onLoad" value="__slEvent1" />
</object>
Please Reply ... Its Urgent ...
Thanks ... :)
Hello Anu,
You should use MediaUrl property.
You should set the VideoSource parameter to the url of the video - wmv file. The url is returned by MediaUrl property.
<object width="320" height="240" data="data:application/x-silverlight," type="application/x-silverlight"> <param value="4.0.50401.0" name="minRuntimeVersion"> <param value="true" name="windowless"> <param value="Transparent" name="background"> <param value="false" name="autoUpgrade"> <param value="localhost:4000/.../Telerik.Sitefinity.Silverlight.xap" name="source"> <param value="controlName=mediaplayer,VideoSource=localhost:4000/.../test.wmv name="initParams"> </object>
All the best,
Ivan Dimitrov
the Telerik team