Youtube iframe Embed是否已停止为某些视频工作? [英] Has Youtube Iframe Embed has stopped working for certain videos?

查看:116
本文介绍了Youtube iframe Embed是否已停止为某些视频工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为此在这里创建了一个JS小提琴:




错误:

开始昨天晚上,我正在致力于停止为用户加载的网站上的一些视频。我们正在使用iframe嵌入,并试图尽可能多地使用html5。



重现此错误:

如果用户是


  1. 未注册/尚未决定是否开启html5视频或

  2. 用户已将html5试用版视频将无法在MacBook
    Chrome,Firefox或Safari上播放。 )刚刚关闭,嵌入功能就可以工作了

    一些线索:






    • debug playbackQuality = small

    • scoville = 1

    • cfps = 0

    • pd = 0

    • mos = 0
    • debug flashVersion = MAC 11% 2C2%2C202%2C235
    • fs = 0

    • hl = zh_CN美元
    • 调试日期=星期四5月10 14%3A40%3A14 GMT%2D0700 2012

    • iframe = 1

    • lact = null videoFps = 0

    • vq = auto

    • h = 355

    • stageFps = 24

    • 调试错误=未指定

    • tpmt = 0

    • framer = http%253A%252F% 252Ffiddle%2Ejshell%2Enet%252FunPrz%252F5%252Fshow%252F

    • volume = 100
    • droppedFrames = 0

    • w = 473

    • el = detailpage

    • sc reenw = 1440
    • screenh = 900

    • debug videoId =

    • playerw = 640

    • debug sourceData =



    还有一些:



    • Mozilla提供以下错误: - 意外值对齐解析preserveAspectRatio属性。

    • 我们发现嵌入的视频已打开即使在html5试用版中,也可以作为Flash视频播放。



    请参阅我的jsFiddle重现错误。



    这是什么原因造成的?这个错误不是在ontror调用中抛出错误,有没有办法发现它,所以我们可以处理这个?

视频播放器失败。其他用户报告一个黑色或空白的YouTube播放器屏幕和一个视频持续时间为0:00,这是SWF播放器出现后此错误的其他症状。



我更新了您的jsfiddle.net提供了一种解决方法,只从最初的开始就使用flash播放器,这样可以防止闪存问题退后,直到解决问题。



它保留您的/ embed / scheme因此任何使用的自定义API仍然有效。



解决方法将播放列表参数添加为没有其​​他视频值和逗号,通常用于分隔播放列表中的视频,这样一个1 的播放列表就实现了。



当然,如果您已经在使用播放列表,那么您将不会受到此bug的影响因为播放列表是唯一的强制Flash播放器在当前时间在/ embed / URL中正确呈现的独占项目。



以下是更新: p>

http://jsfiddle.net/6C65Y/3/



状态报告:此YouTube API错误不再是问题。


I created a JS fiddle for this here:

http://jsfiddle.net/lindseymysse/6C65Y/1/

The error:

Starting Yesterday evening, a few videos on the site I'm working on stopped loading for users. We are using the iframe embed, and attempting to do as much stuff with html5 as possible.

To reproduce this error:

If user is either

  1. Unenrolled/has not made a decision to turn html5 video on or

  2. User has turned html5 trial on, the video will not play on MacBook Chrome, Firefox or Safari.

If user either turns html5 trial on and then off, or (if they are already signed up for the html5 trial) just off, the embed will work

Some Clues:

The debug from a broken video looks like this:

  • debug playbackQuality=small
  • scoville=1
  • cfps=0
  • pd=0
  • mos=0
  • debug flashVersion=MAC 11%2C2%2C202%2C235
  • fs=0
  • hl=en US
  • debug date=Thu May 10 14%3A40%3A14 GMT%2D0700 2012
  • iframe=1
  • lact=null
  • videoFps=0
  • vq=auto
  • h=355
  • stageFps=24
  • debug error=Not specified
  • tpmt=0
  • framer=http%253A%252F%252Ffiddle%2Ejshell%2Enet%252FunPrz%252F5%252Fshow%252F
  • volume=100
  • droppedFrames=0
  • w=473
  • el=detailpage
  • screenw=1440
  • screenh=900
  • debug videoId=
  • playerw=640
  • debug sourceData=

Some More:

  • Mozilla gives the error: -- Unexpected value align parsing preserveAspectRatio attribute.
  • The videos we have found that this embed is broken on are ones that play as Flash videos even in the html5 trial.

Please see my jsFiddle to reproduce the error.

What is causing this? This error is not throwing an error in the youtube api onError call, is there a way to spot it so we can deal with this?

解决方案

YouTube indeed has changed their API over the last couple of days and flash fallback from their HTML5 Video Player fails. Other users report a black or blank YouTube Player Screen and a video duration of 0:00 which are other symptoms of this bug once the SWF player is presented.

I updated your jsfiddle.net with a workaround to only use the flash player from the initial start, which then prevents fallback from flash issue until it's resolved.

It retains your /embed/ scheme so any custom API that's used will still be valid.

The workaround adds the playlist param with no other video values and a comma, normally used to separate videos in the playlist, so that a playlist of 1 is realized.

Of course if your were already using a playlist, then you would not be subject to this bug since the playlist is the only flash exclusive item that forces the flash player to be rendered correctly in the /embed/ URL at the present time.

Here's the update:

http://jsfiddle.net/6C65Y/3/

Status Report: This YouTube API bug is not an issue any longer.

这篇关于Youtube iframe Embed是否已停止为某些视频工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆