<tfoot id='yfaGv'></tfoot>

      • <bdo id='yfaGv'></bdo><ul id='yfaGv'></ul>

      <small id='yfaGv'></small><noframes id='yfaGv'>

    1. <legend id='yfaGv'><style id='yfaGv'><dir id='yfaGv'><q id='yfaGv'></q></dir></style></legend>

      1. <i id='yfaGv'><tr id='yfaGv'><dt id='yfaGv'><q id='yfaGv'><span id='yfaGv'><b id='yfaGv'><form id='yfaGv'><ins id='yfaGv'></ins><ul id='yfaGv'></ul><sub id='yfaGv'></sub></form><legend id='yfaGv'></legend><bdo id='yfaGv'><pre id='yfaGv'><center id='yfaGv'></center></pre></bdo></b><th id='yfaGv'></th></span></q></dt></tr></i><div id='yfaGv'><tfoot id='yfaGv'></tfoot><dl id='yfaGv'><fieldset id='yfaGv'></fieldset></dl></div>

        设置 jw player youtube 视频播放质量

        Set jw player youtube video playback quality(设置 jw player youtube 视频播放质量)
          <tbody id='Ev0Zf'></tbody>

        • <bdo id='Ev0Zf'></bdo><ul id='Ev0Zf'></ul>
              <legend id='Ev0Zf'><style id='Ev0Zf'><dir id='Ev0Zf'><q id='Ev0Zf'></q></dir></style></legend>
              <i id='Ev0Zf'><tr id='Ev0Zf'><dt id='Ev0Zf'><q id='Ev0Zf'><span id='Ev0Zf'><b id='Ev0Zf'><form id='Ev0Zf'><ins id='Ev0Zf'></ins><ul id='Ev0Zf'></ul><sub id='Ev0Zf'></sub></form><legend id='Ev0Zf'></legend><bdo id='Ev0Zf'><pre id='Ev0Zf'><center id='Ev0Zf'></center></pre></bdo></b><th id='Ev0Zf'></th></span></q></dt></tr></i><div id='Ev0Zf'><tfoot id='Ev0Zf'></tfoot><dl id='Ev0Zf'><fieldset id='Ev0Zf'></fieldset></dl></div>

              <small id='Ev0Zf'></small><noframes id='Ev0Zf'>

                <tfoot id='Ev0Zf'></tfoot>
                • 本文介绍了设置 jw player youtube 视频播放质量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用 jw 播放器播放 youtube 视频,但我需要视频以高清 (720p) 开始播放,我使用以下代码:

                  I'm using jw player to play youtube videos, but i need for the video to start playing in hd ( 720p ) i use the following code:

                  <div id="player">
                  <script>
                   jwplayer("player").setup({
                          file: "http://www.youtube.com/watch?v=o8UCI7r1Aqw",
                          height: "720",
                          width: "1280"
                      });
                  </script>
                  </div>
                  <script>
                  jwplayer('player').onPlay(function() {
                  jwplayer().setPlaybackQuality('hd720');
                  });
                  </script>
                  

                  但我收到以下错误

                  回调事件处理程序时出错

                  There was an error calling back an event handler

                  这里是我设置的测试播放器.

                  Here is the test player that i set up.

                  推荐答案

                  setPlaybackQuality 不是有效的 API 调用 - http://www.longtailvideo.com/support/jw-player/28851/javascript-api-reference

                  setPlaybackQuality is not a valid API call - http://www.longtailvideo.com/support/jw-player/28851/javascript-api-reference

                  以下是有效质量 API 调用的列表:

                  Here is a list of valid quality API calls:

                  Quality
                  
                  These API calls are used to listen to or update the video quality if multiple quality levels of a video are provided.
                  
                  getQualityLevels()
                      Returns an array with quality levels from the player. Each level is an object that contains a label property. 
                  getCurrentQuality()
                      Returns the index of the currently active quality level. 
                  
                  setCurrentQuality(index)
                      Change the quality level to the provided index. The index must be within the list provided by getQualityLevels. 
                  
                  onQualityLevels(callback)
                      Fired when the list of available quality levels is updated. Happens e.g. shortly after a playlist item starts playing. Event attributes:
                  
                          levels (Array): the full array with new quality levels. 
                  
                  onQualityChange (callback)
                      Fired when the active quality level is changed. Happens in respons to e.g. a user clicking the controlbar quality menu or a script calling setCurrentQuality. Event attributes:
                  
                          currentQuality (Number): index of the new quality level in the getQualityLevels() array. 
                  

                  这篇关于设置 jw player youtube 视频播放质量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Pause youtube video, youtube api(暂停 youtube 视频,youtube api)
                  Youtube iframe api not triggering onYouTubeIframeAPIReady(Youtube iframe api 未触发 onYouTubeIframeAPIReady)
                  How can I stop a video with Javascript in Youtube?(如何在 Youtube 中停止使用 Javascript 的视频?)
                  Embed YouTube video - Refused to display in a frame because it set #39;X-Frame-Options#39; to #39;SAMEORIGIN#39;(嵌入 YouTube 视频 - 拒绝显示在框架中,因为它将“X-Frame-Options设置为“SAMEORIGIN)
                  How to call Greasemonkey#39;s GM_ functions from code that must run in the target page scope?(如何从必须在目标页面范围内运行的代码中调用 Greasemonkey 的 GM_ 函数?)
                  How do you mute an embedded Youtube player?(如何使嵌入式 Youtube 播放器静音?)

                  <tfoot id='17tjE'></tfoot>

                        <tbody id='17tjE'></tbody>

                      • <bdo id='17tjE'></bdo><ul id='17tjE'></ul>
                      • <i id='17tjE'><tr id='17tjE'><dt id='17tjE'><q id='17tjE'><span id='17tjE'><b id='17tjE'><form id='17tjE'><ins id='17tjE'></ins><ul id='17tjE'></ul><sub id='17tjE'></sub></form><legend id='17tjE'></legend><bdo id='17tjE'><pre id='17tjE'><center id='17tjE'></center></pre></bdo></b><th id='17tjE'></th></span></q></dt></tr></i><div id='17tjE'><tfoot id='17tjE'></tfoot><dl id='17tjE'><fieldset id='17tjE'></fieldset></dl></div>
                        1. <legend id='17tjE'><style id='17tjE'><dir id='17tjE'><q id='17tjE'></q></dir></style></legend>

                          <small id='17tjE'></small><noframes id='17tjE'>