Click here to Skip to main content
15,886,963 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi
I am currently trying to get my video to display when the page loads.

I have been able to get this to work on Internet explorer by creating an object as the code below

I do however require this video to play on all major browsers e.g.Chrome/Firefox

I have added the following code below where i have embeded a player into the asp.net page, but i get an error, "No plugin available to display this content"

I cannot use HTML 5 and i require the video to play on all browsers without the users having to have to download the media player

Regards

What I have tried:

<object id="mediaplayer" type="video/x-ms-wmv" classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" width="500" height="500">
<param name="url" value="file:///C:/Wildlife.wmv" valuetype="ref" type="video/x-ms-wmv" />
<param name="animationatStart" value="1" />
<param name="transparentatStart" value="1" />
<param name="autoStart" value="1" />
<param name="ShowControls" value="1" />
<param name="ShowDisplay" value="1" />
<param name="ShowStatusBar" value="1" />
<param name="playcount" value="99999" />
<param name="clickToPlay" value="1" />
<param name="autoRewind" value="1" />
<param name="displaysize" value="0" />
<param name="stretchtofit" value="1" />
<param name="enableContextMenu" value="0" />
<param name="uiMode" value="none" /></object>

THis is the code i used to embed the video player

<embed type="video/x-ms-wmv" width="416px" height="320px" autostart="True" URL="file:///C:/Wildlife.wmv" enabled="True" balance="0" currentPosition="0" enableContextMenu="True" fullScreen="False" mute="False" playCount="1" rate="1" stretchTofit="False" uiMode="3"></embed>
Posted

1 solution

You'll have to use a flash-based viewer, there are lots of media playing plug-ins out there like jplayer etc, so google them and pick one that fits.

If you don't want to use Flash, or HTML5 then you can't get this working on all machines. Those plug-ins wouldn't exist if browsers could do this naturally.
 
Share this answer
 
Comments
IsiR_19 5-Feb-16 5:17am    
Is there no possible way to code this through .NET?
F-ES Sitecore 5-Feb-16 5:31am    
.net runs on the server, if you want to show something on the client it has to be done via client-side technology.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900