Caption button won't appear
hi!
i added flvplayback , flvplaybackcaptioning on scene. each instance named respectively "display" , "caption".
the skin use skinunderplayseekcaption.swf
the showcaptions parameter flvplaybackcaptioning set "true".
when publish file, play button , seekbar there, not caption button.
why not showing? how can force show?
thank help.
here's code, in case might need :
import fl.video.*;
import fl.controls.progressbarmode;
var flvcontrol:flvplayback = display;
var flvcaption:flvplaybackcaptioning = caption;
var flvsource:string = "videos/p01_intro.flv";
caption.source = "intro.xml";
function progresshandler(event:videoprogressevent):void{
var bl:number = math.round(event.bytesloaded/1000);
var bt:number = math.round(event.bytestotal/1000);
pb.setprogress(bl,bt);
}
function readyhandler(event:videoevent):void{
removechild(pb);
display.play();
}
pb.mode = progressbarmode.manual;
pb.indeterminate = false;
flvcontrol.addeventlistener(videoprogressevent.progress, progresshandler);
flvcontrol.addeventlistener(videoevent.ready, readyhandler);
flvcontrol.source = flvsource;
the source flvcontrol should timed text xml file, not flv.
check files how create file.
More discussions in Adobe Animate CC - General
adobe
Comments
Post a Comment