zoukankan      html  css  js  c++  java
  • 【jquery】插件之jwplayer

    一、下载地址

    http://www.jwplayer.com/

    二、使用方法

     2.1: 导入jwplayer

    <script type="text/javascript" src="/jwplayer/jwplayer.js"></script>

      2.2: 使用jwplayer

    <div id="myElement">Loading the player...</div>
    
    <script type="text/javascript">
        jwplayer("myElement").setup({
            file: "/uploads/myVideo.mp4",
            image: "/uploads/myPoster.jpg"
        });
    </script>

    三、Demo

    <!DOCTYPE HTML>
    <html style="background:#1F1813;">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <meta name="description" content="" />
        <meta name="keywords" content="" />
        <title>JWPlayer</title>
    <script type="text/javascript" src="js/jwplayer.js"></script> </head> <body style="711px; height:400px; margin:0 auto;"> <div id="space" style="height:145px;"></div> <div id="videoWrapper"> <div id="div-video"></div> </div> <script> jwplayer("div-video").setup({ flashplayer: "swf/jwplayer.flash.swf", file: "video/video.mp4", 'autostart': 'true', 711, height:400 }); </script> </body> </html>
  • 相关阅读:
    gcvt(),ecvt(),fcvt()的区别
    SQLITE3 使用总结
    C++的类型转换浅析
    JAVA Class21
    JAVA Class20
    JAVA Class19
    JAVA Class18
    JAVA Class17
    JAVA Class16
    关于hover失效问题(!important)
  • 原文地址:https://www.cnblogs.com/maomaoroc/p/3511422.html
Copyright © 2011-2022 走看看