hello all
  I followed the example in adobe doc that used VideoDisplay control
with FMS,but i can't get the exactly result.
  here is my mainly codes (forgive me for codes)
   demo.mxml:
   <mx:VideoDisplay id="myVid"  autoPlay="true"
                 autoBandWidthDetection="true" 
                 source="rtmp://localhost/videodisplay/greenday.flv"/>
   main.asc:
   application.onConnect = function(p_client, p_autoSenseBW) {
    this.acceptConnection(p_client);

    if (p_autoSenseBW)
        this.calculateClientBw(p_client);
    else
        p_client.call("onBWDone");
   }

   Client.prototype.getStreamLength = function(p_streamName) {
    return Stream.length(p_streamName);
  }

  application.calculateClientBw = function(p_client) {
   
    p_client.call("onBWDone");
  }
 I placed the greenday.flv file in the directory Flash Media Server
2\applications\videodisplay\streams\_definst_ , and main.asc file in
the directory Flash Media Server 2\applications\videodisplay\scripts.
Before i run demo.swf ,i already start fms service.
 Is something i need to do to get the right result? thanks a lot.


Reply via email to