[英]Flash CS5.5: Play video on iPad?
Has anyone succeeded in getting video to play in Flash published for the iPad? 有没有人成功地将视频发布到为iPad发布的Flash中播放? I have tried using both the Video and StageVideo classes, but even though they test successfully in the Flash IDE, they do not work on the iPad.
我尝试使用Video和StageVideo类,但是即使它们在Flash IDE中成功测试,也无法在iPad上使用。 I am using CS5.5.
我正在使用CS5.5。
I have achieved playing video in iPhone and iPad, follow the following steps: 我已在iPhone和iPad上播放视频,请按照以下步骤操作:
You can use ordinary FLVPlayback 您可以使用普通的FLVPlayback
.fla
file together. .fla
文件放在一起。 FLVPlayback
component to stage and delete it in order to get the skin. FLVPlayback
组件以暂存并删除它以获取皮肤。 .flv
, .mov
, .mp4
): .flv
, .mov
和.mp4
): import fl.video.*;
var myVideo:FLVPlayback = new FLVPlayback();
myVideo.source = "video.flv";
myVideo.skin = "SkinOverPlayStopSeekFullVol.swf";
myVideo.addEventListener(VideoEvent.COMPLETE, completePlay);
function completePlay(e:VideoEvent):void {
myVideo.alpha=0.2;
Important to keep in mind: 重要提示:
filename.extension
. filename.extension
。 you can't load an external swf that contains code in ios unless you use a loadercontext and that's not possible with an flvplayback skin. 您无法加载包含iOS中代码的外部swf,除非您使用loadercontext,而flvplayback外观则无法实现。
to remedy, don't use a skin and create custom controls, if needed. 要进行补救,请不要使用皮肤并根据需要创建自定义控件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.