Question
setVirtualPath
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?
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?
