Youtube播放器iframe,在Firefox上没有视频的声音 [英] Youtube Player Iframe, sound with no video on firefox

查看:236
本文介绍了Youtube播放器iframe,在Firefox上没有视频的声音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用YT Player API在滑块内创建多个iframe youtube视频,在'onYouTubeIframeAPIReady'之后调用第一个视频时,当我点击下一个按钮时,它会显示下一个按钮。
但是当我尝试在firefox上播放视频时,一些视频会变成黑色,只有声音,
我发现视频配合黑屏尝试使用flash而不是html5功能。
有时它的工作但是我无法控制视频来阻止它。

I'm using YT Player API to create a multiple iframe youtube videos within slider the first video is called after 'onYouTubeIframeAPIReady' the next videos appear when I click the next button which is working as it should. but when I try to play the video on firefox some videos goes black with voice only, I discovered that the videos goes with the black screen try to use flash not the html5 feature. some times it's work but I can't control the video to stop it.

这里是链接
http://www.thesevenlayers.net/mi7/slider.html?sec=&node= 17

推荐答案

2天后,在这个问题上我发现了问题所在。

After 2 days Working on this issue I discovered where is the problem.

我使用idangerous Swiper作为滑动内容。

I was using idangerous Swiper for the sliding content so.

idangerous Swiper使用CSS3转换可防止显示youtube视频的控件并且还会阻止它的全屏选项。

idangerous Swiper using CSS3 transform prevents the controls of the youtube video from being displayed and also prevent the full-screen option of it.

在<$ c $上设置背面可见性属性c> .swiper-container 将阻止 .swiper-wrapper 类上的全屏变换CSS阻止youtube的控件并使许多其他像黑屏,没有视频的音频播放等问题...

Setting the backface-visibility property on .swiper-container will prevent the full-screen transform CSS on .swiper-wrapper class prevent the controls of the youtube and make many other issues like the black screen, Audio playing without video etc...

所以我认为你应该放入你的如果你想让youtube视频正常播放,请考虑更改idangerous Swiper。

so I think you should put in your consideration to change the idangerous Swiper if you want the youtube video to play properly.

这篇关于Youtube播放器iframe,在Firefox上没有视频的声音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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