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.
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.
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.
“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 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:
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.
I’m sorry to say there is not a pre-made example for browsing your server’s file structure. You’d have to write something. Most likely it would be in conjunction with your website’s Content Management System so you can manage user permissions, sessions, browser detection, URI presentation, etc…
Edit: There is the ModuleVideoNameList which Richard mentioned originally which shows a simple Flash example for browsing the content folder. You’ll need to customize your flash player using the example there.
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?