• JS播放视频代码


    
    
    <div class="col-md-8">
        <div id="moviecontainer"></div>
    </div>
    
    <script src="{{ url_for('static', filename='jwplayer/jwplayer.js')}}"></script>
    <script>
    var ue = UE.getEditor('input_content',{
        toolbars: [
            ['fullscreen', 'emotion', 'preview', 'link']
        ],
        initialFrameWidth:"100%",
        initialFrameHeight:"100",
    });
    </script>
    <script type="text/javascript">
    jwplayer.key = "P9VTqT/X6TSP4gi/hy1wy23BivBhjdzVjMeOaQ==";
    </script>
    <script type="text/javascript">
    jwplayer("moviecontainer").setup({
          flashplayer: "{{ url_for('static', filename='jwplayer/jwplayer.flash.swf')}}",
          playlist: [{
             file: "{{ url_for('static', filename='video/a.mp4')}}",
             title: "环太平洋"
          }],
          modes: [{
             type: "html5"
          }, {
             type: "flash",
             src: "{{ url_for('static', filename='jwplayer/jwplayer.flash.swf')}}"
          }, {
             type: "download"
          }],
          skin: {
             name: "vapor"
          },
          "playlist.position": "left",
          "playlist.size": 400,
          height: 500,
           774,
       });
    </script>
    
    
    
    
     





  • 相关阅读:
    openresty
    ATS 相关
    pandas
    flask
    ansible
    zipline
    bcolz
    数据分析 --- concat
    Go --- 基础使用
    Go --- 基础介绍
  • 原文地址:https://www.cnblogs.com/linux-wang/p/8142852.html
Copyright © 2020-2023  润新知