in Technology

Screen Sharing in Flash Media Server 2 Public Beta

Macromedia’s Flash Media Server 2 goes public but restricted to USA, Europe and Japan. Well, looks like it is already time for a vacation to the United States!

Good News: I overheard that there is the Screenshare.dll somewhere in the modules/codecs folder. (In that case, why not try looking for the G711 Codec too.)
Bad News: I am 99% positive, Screen Sharing Code will go away in the final release. ;-)

Note: The G711 Codec block is a logarithmic scalar quantizer designed for narrowband speech. Narrowband speech is defined as a voice signal with an analog bandwidth of 4 kHz and a Nyquist sampling frequency of 8 kHz. The block quantizes a narrowband speech input signal so that it can be transmitted using only 8-bits. The G711 Codec block has three modes of operation: encoding, decoding, and conversion.

Well, it might help doing something where Flash Player can take in phone calls and vice versa!

  1. I need too this works, can u share me plz source code, fileS or etc.. thanks for advance..

  2. I need too this works, can u share me plz source code, fileS or etc.. thanks for advance..

  3. import flash.display.*;
    var so:SharedObject = null;
    var ldr:Loader = new Loader();
    addChild(ldr);

    // Current release of FMS only understands AMF0 so tell Flex to
    // use AMF0 for all NetConnection objects.
    NetConnection.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0;
    init();

    function init():void{
    // Create the NetConnection and listen for NetStatusEvent and SecurityErrorEvent events
    nc = new NetConnection();
    nc.addEventListener(NetStatusEvent.NET_STATUS, netStatus);
    nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR, netSecurityError);
    nc.connect(?rtmp://127.0.0.1/echo?);
    }

    function shared_sync(event:SyncEvent) :void {
    trace(?test?);
    var list:Object=event.changeList;
    for (var n in list) {
    so_data=so.data[list[n].name];
    var byteArr:ByteArray = new ByteArray();
    for(i=0;i<so_data.length;i++){
    byteArr[i]=so_data[i];

    }
    ldr.loadBytes(byteArr);

    trace(?Length of shared Object?+so.data[list[n].name].length);
    }

    };

    function netStatus(event:NetStatusEvent):void {
    trace(?netStatus: ? + event);
    var info:Object = event.info;
    trace(info.code);
    // lots more code here?
    if (info.code == ?NetConnection.Connect.Success?) {
    trace(?Connect success?);
    so = SharedObject.getRemote
    (?test?, nc.uri, true);
    so.addEventListener(SyncEvent.SYNC, shared_sync);

    so.connect(nc);
    }
    else{
    trace(?error?);
    }

    }

    function netSecurityError(event:SecurityErrorEvent):void {
    trace(?netSecurityError: ? + event);
    }

  4. import flash.display.*;
    var so:SharedObject = null;
    var ldr:Loader = new Loader();
    addChild(ldr);
    
    // Current release of FMS only understands AMF0 so tell Flex to
    // use AMF0 for all NetConnection objects.
    NetConnection.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0;
    init();
    
    function init():void{
    // Create the NetConnection and listen for NetStatusEvent and SecurityErrorEvent events
    nc = new NetConnection();
    nc.addEventListener(NetStatusEvent.NET_STATUS, netStatus);
    nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR, netSecurityError);
    nc.connect(?rtmp://127.0.0.1/echo?);
    }
    
    function shared_sync(event:SyncEvent) :void {
    trace(?test?);
    var list:Object=event.changeList;
    for (var n in list) {
    so_data=so.data[list[n].name];
    var byteArr:ByteArray = new ByteArray();
    for(i=0;i<so_data.length;i++){
    byteArr[i]=so_data[i];
    
    }
    ldr.loadBytes(byteArr);
    
    trace(?Length of shared Object?+so.data[list[n].name].length);
    }
    
    };
    
    function netStatus(event:NetStatusEvent):void {
    trace(?netStatus: ? + event);
    var info:Object = event.info;
    trace(info.code);
    // lots more code here?
    if (info.code == ?NetConnection.Connect.Success?) {
    trace(?Connect success?);
    so = SharedObject.getRemote
    (?test?, nc.uri, true);
    so.addEventListener(SyncEvent.SYNC, shared_sync);
    
    so.connect(nc);
    }
    else{
    trace(?error?);
    }
    
    }
    
    function netSecurityError(event:SecurityErrorEvent):void {
    trace(?netSecurityError: ? + event);
    }
    
  5. please send me your project (Screen Sharing in Flash Media Server 2 Public Beta). with file fla.thanks

  6. please send me your project (Screen Sharing in Flash Media Server 2 Public Beta). with file fla.thanks

Comments are closed.