Click here to Skip to main content
14,493,374 members
Rate this:
Please Sign up or sign in to vote.
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..

<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
Rate this:
Please Sign up or sign in to vote.

Solution 1

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[^]
   

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100