Skip to main content
Inspiring
May 22, 2014
Question

Problem with AMS VirtualDirectory

  • May 22, 2014
  • 0 replies
  • 271 views

Hello Everyone

I have problem to virtual directory in Flash Media Server 5.

I did this works.

1- VirtualDirectoryForFile enable="true" in the rootinstall/conf/Server.xml

2- add this tags in the Application.XML in the Livepkgr folder:

<VirtualDirectory>

        <Streams>streams/_definst_/;opt/adobe/ams/applications2</Streams>

</VirtualDirectory>

<FileObject>

    <VirtualDirectory>streams/_definst_/;opt/adobe/ams/applications2</VirtualDirectory>

</FileObject>

Now asfter restart AMS in linux ( ./server restart ) when I publish my video on the Server create the video files on the livepkgr/streams/_definst/mystreamName.

I record F4V file same time when video is streaming on the server and I save it in the _definst_ directory by default. So I need to move this F4V file into the VOD currect folder at the ams/application2.

To record F4V file I used this codes in the main.asc

var s_vod = Stream.get("mp4:" + streamName.name + '.f4v');

s_vod.liveEvent = liveEventName;

s_vod.play(streamName.name,-1,-1);

s_vod.record();

Please advise me to move F4V video to current VOD directory.

Thanks in advance.

This topic has been closed for replies.