Results 1 to 4 of 4

Thread: Remote server module method calling from javascript

  1. #1

    Question Remote server module method calling from javascript

    Hello and good time of day.

    Got it (remote server module method calling) to work with flash.

    But is this possible to work with RMI from JavaScript (and HTML5 players).

    Thanks in advance.

  2. #2
    Join Date
    Jan 2015


    Hi Eliont,

    Can you provide more details on your user requirements? Some remote calls may be possible by executing REST API calls, which can be done from JavaScript as a simple HTTP request.


  3. #3


    Thanks, i check it.

    What is done:
    			private function send_metadata():void {
    				var JSONMetadata:Object = new Object();
    				JSONMetadata.txt = 'Metadata';
    				NetConnection.defaultObjectEncoding =;
    				var nc:NetConnection = new NetConnection();   
    				nc.connect("rtmp://localhost:1935/live");"injectEvent", null, "video", JSONMetadata);

    	public void injectEvent(IClient client, RequestFunction function,
    			AMFDataList params) {
    		String streamname = params.getString(PARAM1);
    		AMFDataObj question = params.getObject(PARAM2);
    		IMediaStream stream = client.getAppInstance().getStreams()
    		if(stream != null) {
    			getLogger().info("event injected into " + streamname);
    			stream.sendDirect("question", question);
    		} else
    			getLogger().info("stream " + streamname + " wasn't found to inject into");

                    //Handle onMetaData and onCuePoint event callbacks: solution at
                    //See another solution at
                    var infoClient:Object = new Object();
                    infoClient.onMetaData = function oMD():void { };
                    infoClient.onCuePoint = function oCP():void { };   
                    infoClient.question = function question(data:Object):void
                    ns.client = infoClient;
    What is needed: do something alike with HTML5 player.

  4. #4


    What is needed: do something alike with HTML5 player.
    Any suggestions?

Similar Threads

  1. Replies: 1
    Last Post: 03-26-2014, 03:00 PM
  2. HTML5 (Javascript) access to Shared Objects
    By dougwolf in forum General Forum
    Replies: 10
    Last Post: 05-08-2013, 02:55 PM
  3. Replies: 3
    Last Post: 02-25-2013, 05:47 AM
  4. How to call a server side method using JavaScript instead of Flash's NetConnection?
    By slalompoint in forum Server-side Modules and Code Samples Discussion
    Replies: 4
    Last Post: 12-17-2011, 04:14 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