Skip to main content
June 20, 2011
Answered

Dynamic virtual directory access

  • June 20, 2011
  • 1 reply
  • 1167 views

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 has been closed for replies.
    Correct answer

    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.

    1 reply

    June 20, 2011

    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.

    Correct answer
    June 20, 2011

    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.

    June 21, 2011

    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?