Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Content Folder Access From Remote Server

  1. #1
    Join Date
    Mar 2012
    Posts
    20

    Default Content Folder Access From Remote Server

    I have set up a page on a remote server where videos are recorded to the Wowza server using a Flash camera client embedded in a web page. Videos are saved with the current unix time applied as the file name. I would like to access a list of all the file names in the content folder, turn them into links and play them dynamically with JWPlayer.

    I have done all this before with PHP but not from a remote server and from the Wowza content folder. I assume there is some way to do all this remotely. Or must I move my client files to the same server?

    Basically I do not know how to access the files for playback unless I can somehow dynamically get their names from the remote http server.

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Take a look at this example:

    http://www.wowza.com/forums/content....eVideoNameList

    It is included in the Wowza Module Collection

    Richard

  3. #3
    Join Date
    Mar 2012
    Posts
    20

    Default

    I installed the jar file. The next step is this.

    "Add this Module last in the list of your Application.xml"

    Sorry I am a complete noob. Which Application.xml is that? Do I create a new application?

    As far as the client end goes, I suppose I am going to have to use actionscript in Flash. Is that right.

    I need a little more hand holding to understand how all this fits together. I am gathering that the simple modular solutions offered are very few.

    Java is the server and Flash is the client? Is that right. If there is a tutorial that explains all this can you direct me to it?

  4. #4
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    We have a ton of Tutorials, User Guide, Quickstart Guides here:

    http://www.wowza.com/forums/content....f-All-Articles

    And there are Flash and other client type examples in the /examples folder where Wowza is installed. There are links to 3rd party, more production ready Flash players (JW Player and Flowplayer) in the All-Articles list above.

    Richard

  5. #5
    Join Date
    Mar 2012
    Posts
    20

    Default

    I am just not seeing anything that does this. I want to view the file names of files in the content folder. Do you know a more specific link that would be of help?

    Thanks

  6. #6
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    This is an example of how to list file names from the content folder:
    http://www.wowza.com/forums/content....eVideoNameList

    The ModuleVideoNameList is included in the Wowza Modules Collection, so you don't have to build it, but you do need to add some Actionscript to a Flash application, either a Flash CS or Flash Builder (Flex) project.

    Richard

  7. #7
    Join Date
    Mar 2012
    Posts
    20

    Default

    I added the following to Application.xml in the conf folder.

    <Module>
    <Name>ModuleVideoNameList</Name>
    <Description>List videos in content folder</Description>
    <Class>com.wowza.wms.plugin.collection.module.ModuleVideoNameList</Class>
    </Module>

    Can you tell me what code I need to compile and how to call it? Or just how to get started?

  8. #8
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    It's in the collection:

    http://www.wowza.com/downloads/forum...collection.zip

    Download, unzip, copy the .jar file to Wowza /lib folder, then restart Wowza.

    If you want to customize the output, you will have to build that code in the Wowza IDE:
    http://www.wowza.com/media-server/developers#wowza-ide

    A guide for building Modules is include.

    Richard

  9. #9
    Join Date
    Mar 2012
    Posts
    20

    Default

    Got the IDE going.

    Are flash clients the only way to serve up Wowza media in browsers?

    Here is what I need to do.

    The user records a video from a web browser or phone. (I will figure all that out. A browser camera is pre-compiled for JW Player.)

    The video files are given dynamic names. user_date.flv Something like that.

    I need to know how to access the files to at least see them. In the long run I plan on doing much more than that but it would be a good start. I can't believe how much distance there is between the basic tutorials and doing meaningful things. I guess I thought there would be more modular solutions available.

    I plan to keep after it. I must. But I can use all the help I can get. I would think that dynamic file names and how to browse them would be so common. I guess they are not.

    Things like that are so easy with server side scripting, like PHP. I am assuming that that there is no scenario where I would use any of that on the video server itself. Is that right? I mean all interaction with the video files is done remotely using clients. Is that right?
    Last edited by mj9999; 03-07-2012 at 02:30 PM.

  10. #10

    Default

    "I need to know how to access the files to at least see them."

    One typical way would be to use your webserver. For example, if your Apache document root is /var/www you can edit your Application.xml <ContentDir> property to be "/var/www/content". Then you can view your files by browsing to "www.yourdomain.com/files".

    "Things like that are so easy with server side scripting, like PHP. I am assuming that that there is no scenario where I would use any of that on the video server itself."

    In the case of Wowza the server side scripting would be a Wowza Java module. How easy it is, is equal to PHP, right? You'll want to check out the File Mover Module:
    http://www.wowza.com/forums/content....opy-Recordings

    The source for it is here:
    http://www.wowza.com/forums/showthre...om-Move-Module

    If I understand what you're looking to do, you might not need a Wowza module. In your web CMS, you'll have the user's name and the date. You'll have the Flash client (user) publish a stream name with that info, and have your Wowza application use a "live-record" streamtype. You'll keep track of the filenames in your CMS in conjunction with a database.

Page 1 of 2 12 LastLast

Similar Threads

  1. Restrict public access to subfolders in application content folder
    By sam.shm in forum Live Streaming and Encoders
    Replies: 2
    Last Post: 06-22-2014, 03:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •