使用 spark VideoPlayer AS3 时没有视频 [英] No video when using spark VideoPlayer AS3
本文介绍了使用 spark VideoPlayer AS3 时没有视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用此代码,但我只收到音频而没有视频......它是一个 FLV 文件并且可以在其他播放器上正常工作.
I am using this code but I am getting only audio and no video .. it is an FLV file and working correctly on other players.
<s:VideoPlayer id="vidPl"
source="com\gcs\quest\assets\videos\TheUltimateFailsCompilation.flv"
skinClass="skins.CustomVideoPlayerSkin"
autoPlay="true"
muted="false"
horizontalCenter="0" verticalCenter="0" />
推荐答案
黑色视频帧但音频播放正常:
您没有说明这是通过基于浏览器的 Flash 还是桌面/移动 Air 运行的,因此对于使用舞台视频的任何内容:
Black video frame but audio is playing fine:
You did not say if this is running via browser-based Flash or desktop/mobile Air, so for anything using stage video:
- HTML:在对象标签中,添加参数
- HTML:在 embed 标签中,添加属性
wmode='direct'
- AIR:改变渲染模式:
direct
参考:https://helpx.adobe.com/flash/kb/flash-object-embed-tag-attributes.html
参考:http://help.adobe.com/en_US/air/build/WSfffb011ac560372f2fea1812938a6e463-8000.html
这篇关于使用 spark VideoPlayer AS3 时没有视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文