actionscript 3 - Get video encoding type or mime type before playing -
actionscript 3 - Get video encoding type or mime type before playing -
i'm developing video player in as3. need switch between mp4 , flv files. easy if do:
netstream.play(encoding + ":" + videosrc);
the problem getting value encoding
. don't want rely on extension observe this, since there might not one. thought create head request on file , read content-type header, can't seem urlrequest
, urlrequestheader
since back upwards post , get. how can observe encoding without kind of prior knowledge?
actionscript-3 flash
Comments
Post a Comment