Flowplayer运用

半城伤御伤魂 提交于 2019-11-28 22:18:35
<!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">&nbsp;</p>

    </div>
</body>
</html>

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!