Click here to Skip to main content
15,896,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am using this code to play video in asp.net.......but i have a problem to play a video in google chrome..........this code works on mozilla......

XML
<object type="video/x-ms-wmv" data="video\video.mpeg" width="420" height="340">
   <param name="url" value="video\video.mpeg"/>
   <param name="src" value="video\video.mpeg" />
   <param name="autostart" value="true" />
   <param name="sound" value="false" />
   <param name="controller" value="true" />
   </object>



wat can i do.......pls help me


this coding is also working in mozilla browser

XML
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <style type="text/css">
        .style1
        {
            height: 216px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>


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



    </div>

    </form>
</body>
</html>



why the coding is not working in chrome browser.........
Posted
Updated 6-Feb-12 0:54am
v2

Use embed tag
C#
<embed id='embed1' runat="server" name='mediaPlayer' type='application/x-mplayer2' pluginspage='http://microsoft.com/windows/mediaplayer/en/download/' src="video\video.mpeg" filename="video\video.mpeg" displaysize='4' autosize='-1' bgcolor='darkblue' showcontrols='true' showtracker='-1' showdisplay='0' showstatusbar='-1' videoborder3d='-1' width='500' height='405'  designtimesp='5311' loop='false'>


   </embed>
 
Share this answer
 
Comments
saravana__ 6-Feb-12 6:21am    
the video played on mozilla browser but i want to play the video in chrome browser........
uspatel 6-Feb-12 6:27am    
Try this in html page.
put video.mpeg in html file folder.
use video.mpeg instead of "video\video.mpeg".
and then see..
saravana__ 6-Feb-12 6:56am    
how to play the video in chrome browser
Check these(w3schools)
Playing Videos in HTML[^]
HTML YouTube Video[^]
 
Share this answer
 
Comments
saravana__ 6-Feb-12 6:10am    
its not work
I don't know about ur problem so it may not be ur soluction but have a look at this

http://www.w3schools.com/html5/html5_video.asp[^]

http://html5video.org/[^]
 
Share this answer
 
this is the code to play video in chrome

C#
<object id="Player">
                 type ="video/x-ms-wmv" class="style15" > 
        <param name="Volume" value="50" />        
        <param name="AutoStart" value="True" />
</object>
 
Share this answer
 

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