Results 1 to 2 of 2

Thread: Advantages/disadvantages of Remote Shared Objects

  1. #1

    Default Advantages/disadvantages of Remote Shared Objects

    I wonder if there are any advatages or disadvantages of using remote shared objects compaired to calling function directly from server to client?

    Is there really any disadvantage doing..

    List<IClient> myClients = getAppInstance(client).getClients();
    		
    Iterator<IClient> itc = myClients.iterator();
    
    while(itc.hasNext())
    {
    IClient nextclient=itc.next();
    nextclient.call("Somefunction", null, someparam);
    }
    ..compaired to listening to updating and listening to shared object changes?

    Are there any security issues with remote shared objects that have to be taken into consideration?

    Thank you for any help.
    Last edited by olarsson; 02-17-2014 at 06:33 PM.

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    You can use IApplicationInstance.broadcastMsg() to send a call to all RTMP clients, instead iterating through clients.

    SharedObjects are good for some tasks, but you can get more control using IClient.call() and IApplicationInstance.broadcastMsg()on the server-side, and NetConnection.call() and NetStream.send() on the client-side. The ServerSideModules example that ships with Wowza is a working reference of these methods and the data types that you can pass back and forth.

    Richard

Similar Threads

  1. Shared Objects across applications
    By GraemeBull in forum General Forum
    Replies: 12
    Last Post: 10-23-2011, 02:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •