Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Actually i am using HTML5 video control in asp.net to play videos..up to now it is working good here problem is it is playing only .mp4 format only is there any possibility to play more number of formats in HTM5

Below is my code..

XML
<video id="Video" runat="server" width='300' height='200' controls>
                                                        <source src="<%# Eval("PostImageUrl").ToString() %>" type="video/mp4"/>
                                                        <p>Fallback code if video isn't supported</p>/
                                                        </video>


And my exact question is like below link some one asked before in stackoverflow

http://stackoverflow.com/questions/15450965/videos-not-playing-in-browsers[^]
Posted
Updated 30-Apr-14 1:47am
v2

Not all formats. HTML5 video tag - according to specification - should support MPEG.4, OGG, WEBM (VP8,and VP9) and H.264. However real life support of browsers can be different...(for instance Chrome does not support MPEG.4).
https://developer.mozilla.org/en-US/docs/HTML/Supported_media_formats[^]
 
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