Flowplayer运用
Posted 命
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Flowplayer运用相关的知识,希望对你有一定的参考价值。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>11111</title>
<!-- Flowplayer skin -->
<link rel="stylesheet" href="http://releases.flowplayer.org/7.0.2/skin/skin.css">
<style>
.flowplayer {
background-color: #bbb;
}
</style>
<script src="http://code.jquery.com/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="http://releases.flowplayer.org/7.0.2/flowplayer.min.js"></script>
<script>
// display information about the video type
flowplayer(function (api) {
api.on("load", function (e, api, video) {
$("#vinfo").text(api.engine.engineName + " engine playing " + video.type);
});
});
</script>
</head>
<body>
<div id="content">
<h1>Flowplayer · HLS support</h1>
<div class="flowplayer" data-ratio="0.5625">
<video>
<source type="application/x-mpegurl" src="http://218.204.141.227:28880/hls/cctv-1_360p/index.m3u8">
</video>
</div>
<p id="vinfo" class="info"> </p>
</div>
</body>
</html>
以上是关于Flowplayer运用的主要内容,如果未能解决你的问题,请参考以下文章
FlowPlayer、JWPlayer 和 HLS 流式传输