2 Replies Latest reply on Aug 28, 2013 4:14 PM by coderCurtis

    Where in the code does it connect to the video?

    coderCurtis Level 1

      I'm trying to add some security to my AMS/SMP setup, and I can't for the life of me figure out where It connects to the server.

       

      I can see on the server logs that it passes through Application.onConnect.

       

      I want to be able to send a key in with the connection attempt, like so:

       

      nc.connect("rtmp://www.example.com/someApplication", uniqueKey);

       

      But I can't figure out where any equivalent "nc.connect()" call is made.

        • 1. Re: Where in the code does it connect to the video?
          coderCurtis Level 1

          This forum seems dead.

           

          I found where. It's in the OSMF/org/osmf/net/NetNegotiator

           






          NetConnection(netConnections[attemptIndex]).connect.apply(netConnections[attemptIndex], args);

           

          I just push the variables I want into `args`.

           

          However, I want to push a flashvar into `args`. This is proving difficult because I can't access the `stage` from this place in the code.

           

          How can I get a flashvar over here?

          • 2. Re: Where in the code does it connect to the video?
            coderCurtis Level 1

            So I traced the function calls all the way back to NetLoader.as with executeLoad.

             

            However, executeLoad is inherited from LoaderBase.

             

            And a lot of different things have an executeLoad function. I can't find out where executeLoad is being called from. The trail ends here, it seems like.

             

            I still have no idea how to pass a simple variable or import a class from the StrobeMediaPlayer package to the OSMF package