Skip navigation
shivanisanjose
Currently Being Moderated

How to embed HTML5 video player in web page

Apr 3, 2013 2:04 PM

I have developed a video player using html, javascript and jquery. depending upon the browser type and mobile/non-mobile device, it creats the html5 video tags or redirect to a fall back flash player). I am using Adobe media server

 

this player works well on all the browsers.

 

videoplayer.html

 

<!DOCTYPE html>

    <html>

       <head>

</head>

<body>

 

 

<video controls="controls" poster="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poste r.jpg" width="640" height="360">

          <source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" type="video/mp4" />

          <source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm" type="video/webm" />

          <source src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogv" type="video/ogg" />

                    <object type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" width="640" height="360">

                    <param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" />

                    <param name="allowFullScreen" value="true" />

                    <param name="wmode" value="transparent" />

                    <param name="flashVars" value="config={'playlist':['http%3A%2F%2Fsandbox.thewikies.com%2Fvfe- generator%2Fimages%2Fbig-buck-bunny_poster.jpg',{'url':'http%3A%2F%2Fc lips.vorwaerts-gmbh.de%2Fbig_buck_bunny.mp4','autoPlay':false}]}" />

                    <img alt="Big Buck Bunny" src="http://sandbox.thewikies.com/vfe-generator/images/big-buck-bunny_poste r.jpg" width="640" height="360" title="No video playback capabilities, please download the video below" />

          </object>

                    </video>

 

 

</body>

    </html>

============================================

 

If I embed this video player in any of the aspx page using <EMBED></EMBED>, the redirection to flash player does not happen.(it works fine on chrome and safari but not on IE and firefox)

 

<EMBED height=360 width=250 src="http://localhost/videoplayer.html"></Embed>

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points