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

    1. <legend id='hHRgj'><style id='hHRgj'><dir id='hHRgj'><q id='hHRgj'></q></dir></style></legend>
      • <bdo id='hHRgj'></bdo><ul id='hHRgj'></ul>

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

      1. YouTube 视频的播放速度控制?HTML5?

        Playback speed control for YouTube videos? HTML5?(YouTube 视频的播放速度控制?HTML5?)
        <i id='5WGeK'><tr id='5WGeK'><dt id='5WGeK'><q id='5WGeK'><span id='5WGeK'><b id='5WGeK'><form id='5WGeK'><ins id='5WGeK'></ins><ul id='5WGeK'></ul><sub id='5WGeK'></sub></form><legend id='5WGeK'></legend><bdo id='5WGeK'><pre id='5WGeK'><center id='5WGeK'></center></pre></bdo></b><th id='5WGeK'></th></span></q></dt></tr></i><div id='5WGeK'><tfoot id='5WGeK'></tfoot><dl id='5WGeK'><fieldset id='5WGeK'></fieldset></dl></div>
            <tbody id='5WGeK'></tbody>
        • <tfoot id='5WGeK'></tfoot>

              <legend id='5WGeK'><style id='5WGeK'><dir id='5WGeK'><q id='5WGeK'></q></dir></style></legend>
                <bdo id='5WGeK'></bdo><ul id='5WGeK'></ul>
                • <small id='5WGeK'></small><noframes id='5WGeK'>

                • 本文介绍了YouTube 视频的播放速度控制?HTML5?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我需要为 youtube 视频实现一个视频播放速度控制器(例如:以 1/2 速度播放视频),我认为 HTML5 目前是唯一的方法(如果可能的话).我对 HTML5 视频知之甚少,但我对 youtube js API 了解很多.谁能指出我正确的方向?如果该解决方案仅适用于某些浏览器,那也没关系.

                  I need to implement a video playback speed controller (e.g.: play the video at 1/2 speed) for youtube videos, and I'm thinking that HTML5 is currently the only way to do this (if it's even possible). I know very little about HTML5 video, but I know a lot about the youtube js API. Can anyone point me in the right direction? It's okay if the solution will only work in some browsers.

                  推荐答案

                  新的 iframe api 允许您控制视频的速度:

                  The new iframe api allows you to control the speed of the video:

                  iframe api 参考:设置播放速率

                  默认播放速率为 1,表示视频正在以正常速度播放.播放速率可能包括 0.25、0.5、1、1.5 和 2 等值.

                  The default playback rate is 1, which indicates that the video is playing at normal speed. Playback rates may include values like 0.25, 0.5, 1, 1.5, and 2.

                  还有:

                  调用此函数并不能保证播放速率会真正改变.

                  Calling this function does not guarantee that the playback rate will actually change.

                  示例代码:

                  function onYouTubeIframeAPIReady() {
                    var player;
                    player = new YT.Player('player', {
                      videoId: 'M7lc1UVf-VE',
                      playerVars: { 'autoplay': 1, 'controls': 0 },
                      events: {
                        'onReady': function(e){
                          // e.target = player
                          e.target.setPlaybackRate(0.5); // set to half speed
                          e.target.playVideo(); // watch lolcats in slow motion :)
                        },
                      }
                    });
                  }
                  

                  这篇关于YouTube 视频的播放速度控制?HTML5?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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 播放器静音?)
                • <legend id='yU5fU'><style id='yU5fU'><dir id='yU5fU'><q id='yU5fU'></q></dir></style></legend>
                    <i id='yU5fU'><tr id='yU5fU'><dt id='yU5fU'><q id='yU5fU'><span id='yU5fU'><b id='yU5fU'><form id='yU5fU'><ins id='yU5fU'></ins><ul id='yU5fU'></ul><sub id='yU5fU'></sub></form><legend id='yU5fU'></legend><bdo id='yU5fU'><pre id='yU5fU'><center id='yU5fU'></center></pre></bdo></b><th id='yU5fU'></th></span></q></dt></tr></i><div id='yU5fU'><tfoot id='yU5fU'></tfoot><dl id='yU5fU'><fieldset id='yU5fU'></fieldset></dl></div>
                      <tbody id='yU5fU'></tbody>
                      <bdo id='yU5fU'></bdo><ul id='yU5fU'></ul>
                      <tfoot id='yU5fU'></tfoot>

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