/** * AUTHOR: James O'Reilly * kremens@gmail.com */ package com.flashconnections.ui.component.mediaPlayer { import flash.net.NetConnection; import flash.events.NetStatusEvent; import flash.net.NetStream; public class actionscript_video_com_flashconnections_ui_component_mediaPlayer_NetStreamExt extends flash.net.NetStream { public function actionscript_video_com_flashconnections_ui_component_mediaPlayer_NetStreamExt(netC:NetConnection) { super(netC); // Listen for stream status this.addEventListener(NetStatusEvent.NET_STATUS, streamNetStatus); } // Event handler invoked every time a status change or error is // posted for the NetStream object private function streamNetStatus(event:NetStatusEvent):void { trace("stream status: "); for (var prop:String in event.info) { trace("\t" + prop + ": " + event.info[prop]); } } public function onMetaData (info:Object):void { trace("stream metadata: "); for (var prop:String in info) { trace("\t" + prop + ": " + info[prop]); } } public override function toString():String { return "com.flashconnections.ui.component.mediaPlayer.actionscript_video_com_flashconnections_ui_component_mediaPlayer_NetStreamExt"; } } }