How to Play FLV Video in HTML Video tags?

Alexander Nazarkin picture Alexander Nazarkin · Aug 24, 2013 · Viewed 99.8k times · Source

I have had a look at a couple of players like Flow Player, JW Player and a couple more but I can't get it to work exactly in PHP code.

Is there any way to play FLV within HTML Video Tags?

I know MP4 and OGG files will but the thing that I am working on will produce an FLV file.

Answer

Ron picture Ron · Aug 14, 2014

You should look at video.js from www.videojs.com I have been using it streaming live video feeds. It mimicks the video tag like this:

<video id="example_video_1" class="video-js vjs-default-skin"
 controls preload="auto" width="640" height="480"
 poster="http://video-js.zencoder.com/oceans-clip.png"
 data-setup='{"example_option":true}'>
<source src="rtmp://localhost/live/test" type="rtmp/flv">
</video>

Works very well for me.