Detect If the video is loaded
hello
i want detect whenever video loaded
because display png of first frame of video , when video start play want remove image, try smooth effect
here code load video
var netloader:netloader = new netloader();
var resource = new urlresource( url )
var metadata:metadata = new metadata();
metadata.addvalue(captioningplugininfo.captioning_metadata_key_uri, caption_url);
resource.addmetadatavalue(captioningplugininfo.captioning_metadata_namespace, metadata);
mediafactory.additem(new mediafactoryitem("org.osmf.elements.video", netloader.canhandleresource, createvideoelement));
mediaelement = mediafactory.createmediaelement(resource);
i don't know add listener know if video ready
thanks help
i believe use instance of mediaplayer , object need listen
mediaplayerstatechange of mediaplayerstatechangeevent
the values player state can found @ playstate.as.
-wei zhang
senior computer scientist
adobe systems, inc.
More discussions in Developers
adobe
Comments
Post a Comment