title: How can I play a RTMP video through netConnection and netStream
body: <p>I am working on a prototype in which I have to play a video through RTMP protocol. My code is following : </p>
  
  <pre><code>private function init():void
      {
          streamID:String = "mp4:myVideo";
          videoURL = "rtmp://fms.xstream.dk/*********.mp4";
          vid = new video();
          vid.width = 480;
          vid.height = 320;
  
          nc = new NetConnection();
          nc.client = {onBWDone: function():void
              {
              }};
          nc.addEventListener(NetStatusEvent.NET_STATUS, onConnectionStatus);
          nc.connect(videoURL);           
      }
  
      private function onConnectionStatus(e:NetStatusEvent):void
      {
          if (e.info.code == "NetConnection.Connect.Success")
          {
              trace("Creating NetStream");
              netStreamObj = new NetStream(nc);
              netStreamObj.client = new CustomClient();
              netStreamObj.play(streamID);
              vid.attachNetStream(netStreamObj);
              addChild(vid);
              intervalID = setInterval(playback, 1000);
          }
      }
  
      private function playback():void
      {
          trace((++counter) + " Buffer length: " + netStreamObj.bufferLength);
      }
  
  
  
  
  
  class CustomClient 
  {
  public function onMetaData(info:Object):void
  {
      trace("metadata: duration=" + info.duration + " width=" + info.width + " height=" + info.height + " framerate=" + info.framerate);
  }
  public function onCuePoint(info:Object):void
  {
      trace("cuepoint: time=" + info.time + " name=" + info.name + " type=" + info.type);
  }
  </code></pre>
  
  <p>}</p>
  
  <p>But it not playing, not occurring any error and not plying, If anyone have any idea, please help me.</p>