Skip to main content
Participant
March 4, 2010
Question

Use a File-plugin to map destination for publishing files?

  • March 4, 2010
  • 1 reply
  • 901 views

I have an odd situation, and I'm not sure if a file plug-in might be a good solution. I need to create a situation where we can save FLVs to a location that can be accessed via http, not rtmp. We need to save files to FMS over rtmp, but perform play actions over http. Has anyone used a file plug-in to map the destination save directory to somewhere outside the FMS file system, or do you know if this is possible? Any other ideas are welcome as well.

Thanks

    This topic has been closed for replies.

    1 reply

    Adobe Employee
    March 4, 2010

    If I understand it correctly, what you want to do is publish a stream to FMS and on server record it to a file system from where you can access it via http. If that is the case you can surely do this through the file plug-in. Just write a custom file plug-in with your implementation of write() function. Since this is going to be asynchronous, make sure you call the onWrite() function once you are done with your write. This should work.

    BTW any specific reason for playing over http instead of rtmp?

    mmeccaAuthor
    Participant
    March 4, 2010

    It is an unlikely situation, but our client prefers that the media get served from an environment that can be akamaized, for cost management.

    Just curious, have you written a plug-in for FMS before? I'm primarily a web developer and am not 100% confident of the ins-and-outs of C++. I feel like I might need a specialist.

    m

    Adobe Employee
    March 4, 2010

    If it's about delivering media over http you can try rtmpt protocol (rtmp tunneled over http).

    Is it possible for you to share more about the environment from which the media will be served?

    To make things easy, FMS comes with sample plug-in implementations and you can find one for file plug-in in /modules/fileio and you are good to go. I am pretty much sure you don't need a specialist for this