如何在HTML5中播放FLV视频 [英] How to play a flv video in html5

查看:2229
本文介绍了如何在HTML5中播放FLV视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个视频播放器

<video id="myMovie">        
            <source src="vids/flv640x480/4fa2ab38f9237e9f2515812ee7fec1961d9c78d1.flv">
</video>

现在该视频无法在我的浏览器Chrome中播放,因为它不受支持,因此我知道Flash是解决之道,但我需要如何处理Flash.将其安装在我的服务器上还是什么? 请任何人在这里提供很好的解释以及如何在任何浏览器中播放flv视频的步骤?

Now this video is not able to play in my browser chrome because its unsupported therefore i know flash is the way out but what do i need to do with flash. Install it on my server or what ? Please anyone is there with a good explanation and steps of how to play flv videos in any browser ?

推荐答案

flv视频与视频标记不兼容

flv videos is not compatible with video tag

您在这里有2个选择:

1.您使用基于Flash的视频播放器(例如Flowplayer)或创建自己的视频播放器

1.You use flash based video players (i.e. Flowplayer) or create your own

以下是流程播放器的示例用法:

Here's a sample usage of flow player:

<!-- player container-->
<a href="http://yourwebsite.com/yourflvvideourlhere.flv"    class="player"
style="display:block;width:425px;height:300px;margin:10px auto"
id="player">
</a>

// install flowplayer
$f("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.18.swf");

  1. 将视频文件转换为与视频标签兼容的格式(例如mp4,webm)

这篇关于如何在HTML5中播放FLV视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆