actionscript 3 - Netstream Pause/Unpause Notify will never fire when play video through HTTP -
this strange have no idea how search specifically. googled , there seems has asked no solution replied. video file on server, say, http: //xxx.com/xxx.flv, , play using video & netstream. here's code(assume varibles have been defined):
nc = new netconnection(); nc.connect(null); ns = new netstream(nc); ns.inbufferseek = true; ns.play("http: //xxx.com/xxx.flv"); ns.addeventlistener(netstatusevent.net_status,statuscontrol); function statuscontrol(e:netstatusevent){ trace(e.info.code); } according doc, should "netstream.pause.notify" when call ns.pause(), truth is, never happened. here am. idea?
edit: because of flvplayback thing met before, try find how different flash player versions affect. , think found something, if publish fp 10/10.1/10.2, not dispatch netstream.pause/unpause.notify, ones 10.3+ work fine. problem need publish fp 10 & 10.1, videos company converted seem act nicely fp 10 & 10.1, , can't change that. wait help~
ns.pause() doesn't work reliably listen when video not playing anymore. try listening ns.stop() instead has same basic functionality.
Comments
Post a Comment