1 Reply Latest reply on Nov 1, 2010 9:19 AM by bringrags

    How to use OSMF with FMS and VirtualKeys ?

    phiphou

      Hi everybody.

       

      I use FMS 4 and its virtual keys feature. So, I need to pass a client object to the server when I connect to my FMS app.

       

      Somethig like that works :

       

      nc = new NetConnection();

      //nc.addEventListener(NetStatusEvent.NET_STATUS, onStatus);

      nc.client = new Client();

       

      var userObj:Object = new Object();

      userObj.userType = "paid";

       

      nc.connect("rtmp://" + serverName + "/" + appName,userObj);

      ......

      var ui:UIComponent = new UIComponent();

      var videoRemote:Video = new Video();

      ui.addChild(videoRemote);

       

      addElement(ui);

      .....

      nsPlay = new NetStream(nc);

      videoRemote.attachNetStream(nsPlay);

      nsPlay.play( "myVideo");

       

      I want to be able to do something similar with the VideoPlayer component. You can even use the new Hero framework if you want.

       

      Regards,

       

      Phiphou