Skip to main content
Participant
June 13, 2007
Question

setVirtualPath

  • June 13, 2007
  • 2 replies
  • 243 views
Hi, fms developers.
I need some help with Streams.setVirtualPath function.

i know how to use vhost.xml but i cant use it in my case, cause we have a lot of directories. but i can dynamically compose path to my flvs.
i found one function that, i think, can help me - Stream.setVirtualPath, but i dont understand how to use it.

1* so, for example, i have my flv here:
/mnt/files/07/03/14/my_flv_file.flv

2* and i want to play it for all clients with that code:
var s = Stream.get("ab");
// ?? Stream.setVirtualPath();
s.play("virtual_directory_name/my_flv_file", 0, -1, false);

3* i tried something like this:
Stream.setVirtualPath("virtual_directory_name", "/mnt/files/07/03/14");
but with no success

what im doing wrong?
    This topic has been closed for replies.

    2 replies

    Participant
    December 11, 2007
    same here... any joy with this chap?
    Participating Frequently
    November 21, 2007
    Hi,
    did you find the solution ?

    I've got the same problem...but I'm losing inside the adobe's manual for fms
    If you find it please make me know.
    thanks
    ast