Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
param name ="filename" value="<%# Eval("VideoName","~/VideoUploads/{0}") %>"

the window media player could not detect the file to play. The folder where the video is stored is in VideoUploads and the path is VideoName.

Is there anything wrong with the above value="" ?
Posted

1 solution

try this:

HTML
<html>

<head>

</head>

<body>

<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="Player1" width="424" height="379">

        <param name="URL" value="http://localhost/Music.wmv">

        <param name="http://path_to_the_video">

        <param name="AutoStart" value="1">

        <param name="ShowControls" value="1">

        <param name="ShowStatusBar" value="1">

        <param name="ShowDisplay" value="1">

        <param name="stretchToFit" value="1">

        <embed type="application/x-mplayer2"

pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/" 

width="424" height="379" src="http://localhost/Music.wmv"

filename="http://localhost/Music.wmv" autostart="1" showcontrols="1" showstatusbar="1" showdisplay="1">

</embed>

</param></param></param></param></param></param></param></object>

</body>

</html>
 
Share this answer
 
v2
Comments
Naz_Firdouse 12-Jul-13 2:00am    
removed > at line <embed type="application/x-mplayer2"
Jerrell77 13-Jul-13 3:49am    
how do you write the file path to the video in the folder?
Member 11788122 11-Oct-15 5:48am    
This code is working good for me but its only run on Firefox and IE but not on Google Chrome.

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