Skip to main content
Jun 20, 2011 12:48 PM UTC
Answered

Dynamic virtual directory access

Hi!

I am running into some problems.  With our new LMS on logging in, the systems creates a link to content with an on-demand virtual directory.

Now with our old system this didnt happen and we could hardcode in fms.ini the guid's of the asset locations.

Can you think of anyway for me to incorporate this on-demand guid created on login in the fms.ini so that I can get the files to play using this virtuil directory?

    This topic is closed to new replies. Start a new post to keep the conversation going.
    Correct answer
    Jun 20, 2011 1:13 PM UTC

    I should clarify my response...

    What you'd do is pass the virtual path to the FMS app as an argument in your netconnection.connect call. Then, in your onconnect handler, you'd use Stream.setVirtualPath to create the virtual mapping, and then use client.virtualKey to assign the client's virtual key to the virtual key for the mapping.

    13 replies

    Jun 20, 2011 1:02 PM UTC

    Sure... you can use Stream.setVirtualPath

    http://help.adobe.com/en_US/flashmediaserver/ssaslr/WS5b3ccc516d4fbf351e63e3d11a11afc95e-7e42.html#WS5b3ccc516d4fbf351e63e3d11a11afc95e-7fbb

    Then, you just need to assign a virtual key to the client in your onConnect handler so the NetStream.play requests from the client can be mapped to the virtual path.

    Translate
    Correct answer
    Jun 20, 2011 1:13 PM UTC

    I should clarify my response...

    What you'd do is pass the virtual path to the FMS app as an argument in your netconnection.connect call. Then, in your onconnect handler, you'd use Stream.setVirtualPath to create the virtual mapping, and then use client.virtualKey to assign the client's virtual key to the virtual key for the mapping.

    Translate
    Jun 21, 2011 2:11 PM UTC

    Hi JayCharles,

    Where should I start writing my server-side flash code?

    I only have the basic Flash Media Server 4, not the interactive version, will this mean I cannot implement this solution?

    Translate