Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to play flash(.flv) video using video.js in chrome

I am using video.js to play flash(.flv) video. But when I press play button it does not play video?
I have used the "techorder:"["flash","html"]. But it made no difference.
Is there any plugin to for flash video in videojs? How can I play .flv video in video.js?

like image 905
Muhammad Zafar Naeem Avatar asked Sep 15 '15 06:09

Muhammad Zafar Naeem


People also ask

Does video js support FLV?

video. js can play FLV in the Flash tech. If you're self-hosting video. js rather than using the CDN, make sure the path to your swf is correct, e.g.

Can Chrome play FLV files?

The reason for that is Chromebook natively does not support FLV files for playback. To play FLV files on Chromebook, you need to convert FLV to Chromebook compatible video format.

What is FLV Player Chrome?

The “FLV Player” app by Kyle is in its initial development phase, and is available on Chrome Web Store here. Once installed, users can open any Flash video file from the Files app of Chromebook to play it.


3 Answers

You should use flv.js, an HTML5 FLV Player written in pure JavaScript. No Flash is required.

https://github.com/Bilibili/flv.js

You can make a source handler to integrate flv.js with video.js

like image 56
xqq Avatar answered Oct 01 '22 02:10

xqq


video.js can play FLV in the Flash tech.

If you're self-hosting video.js rather than using the CDN, make sure the path to your swf is correct, e.g.

<script>
  videojs.options.flash.swf = "http://example.com/path/to/video-js.swf"
</script>

Make sure to use the correct video/x-flv mime type in the source tag:

<source src="http://example.com/video.flv" type='video/x-flv'>

The server hosting the FLV must also return the correct mime type in the 'Content-Type` header.

Example: http://output.jsbin.com/juvuca

like image 23
misterben Avatar answered Oct 01 '22 03:10

misterben


You can find the plugin here -https://github.com/videojs/video.js/wiki/Plugins Not sure if this will work.

If not try this as well -http://jsfiddle.net/N8Zs5/18/

Regards, Shashi

like image 44
Shashi Kiran Avatar answered Oct 01 '22 03:10

Shashi Kiran