Click here to Skip to main content
15,896,444 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
this is my code

XML
<object height="320px" width="240px" type ="video/x-ms-wmv">
    <param name="src" value="video\video.mpeg" />
    </object>


i run the project the browser show only the media player.....how to play the video in asp.net................pls hlp me..........

i am also trying this code but this code is also not work for me........


C#
    <div>

<object type="application/x-vlc-plugin" 
                id="vlc" 
                width="720"
                height="548" 
                classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" >
                <param name="MRL" 
                    value="Sun News_xvid.avi" />
                <param name="volume" value="50" />
                <param name="autoplay" value="false" />
                <param name="loop" value="false" />
                <param name="fullscreen" value="false" />
            </object>
            <br />
            <div id="controls">
                <input type="button"  önclick="play()" value="Play" />
                <input type="button"  önclick="pause()" value="Pause" />
                <input type="button"  önclick="stop()" value="Stop" />
                <input type="button"  önclick="mute()" value="Mute" />
            </div>
    </div>



how to play the videos in asp.net...............
Posted
Updated 6-Feb-12 18:58pm
v2

 
Share this answer
 
Comments
saravana__ 7-Feb-12 0:42am    
my code is works on mozilla firefox but not works in google chrome......
 
Share this answer
 
Comments
saravana__ 7-Feb-12 0:40am    
these above links or not works for me
you visit this article

http://videoplayer.codeplex.com/[^]


or your can try this format

HTML
<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>
</object>
 
Share this answer
 
v3

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