简体   繁体   中英

With Flash + Adobe Media Server, how do I access a video on a directory other than _definst_

I'm using Adobe Media Server 5 to stream my videos.

I can connect to my app and play videos by calling

NetConnection.connect([rtmp link]/[application])

And then

NetStream.play([name of video])

All the files that I play by using this method are in [application]\\streams\\_definst_\\

If I want to play a file from, say \\streams\\output instead, how would I do that?

I tried creating an Application.xml with storageDir set to the output directory, but that didn't work.

This is how I did it with my Application.xml file

<Application> 
    <StreamManager> 
        <VirtualDirectory> 
            <Streams>/;[path to app]streams\output</Streams>
        </VirtualDirectory>
    </StreamManager> 
</Application>

This, however, changes the default file that streams publish to as well.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM