Application.xml

Copy link to clipboard
Copied
I really need help with this issue, as I can not get this to work. I have an FMS server, but we are not using rtmp:. We are only using progressive download via http:// (mainly because we have a large apple thinkpad community which doesnt use flash). The FMS server does not have much space so we have media files (.mp4) sitting on another drive (the I drive) that is not the install directory. As of right now my application.xml file looks like this:
<Application>
Copy link to clipboard
Copied
I would suggest you trying below things:
Copy the whole webroot folder on your I drive ( i.e. I: )
Now configure DocumentRoot in httpd.conf to point to webroot folder on I: i.e. DocumentRoot "I:/webroot"
Create "video" folder under "webroot" and place all the media files which you want to have for progressive download
Now open your client and put the following URL in it:- http://servername/video/[filename].[extension] example :- http://servername/video/sample.flv
try above steps and let me know if it works or not.
Copy link to clipboard
Copied
I have exact same issue as "wpgiv03". I have the FMS 3.5 configured for rtmp streaming of mp3 and now need to enable http progressive download with a network drive (Celera mount). I can see that the virtual directory map doesn't work for an absolute path to the local server (say, <Streams>web;c:\foo</Streams>) or network drive or mount point (<Streams>web;z:\foo</Streams> or <Streams>web;\\samba\foo</Streams>) for http proxy port 8134 (http://localhost:8134/vod/web/1.mp3) and if I were to put the mp3 file directly under webroot/vod/web/1.mp3, then the previous URL works. I cannot store all the contents to the local hard drive and need to be able to http progressive download from the remote mount.
If you have a possible workaround for this, please let me know. Any helpful suggestion welcome. Thanks in advance!
Copy link to clipboard
Copied
Did you try what i suggested in my reply to "wpgiv03". If yes , what were your findings?
Copy link to clipboard
Copied
Hi SE 0208,
Thanks for your reply. I tried your suggestion, unfortunately, it didn't work for me.
#DocumentRoot "../webroot"
DocumentRoot "I:/webroot"
DirectoryIndex index.html index.html.var index.php index.php3 index.php4 index.php5 index.py index.pl index.rb
httpd.conf
<Directory />
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
Satisfy all
</Directory>
#<Directory "../webroot">
<Directory "I:/webroot">
Options -Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
application.xml
<StreamManager>
<VirtualDirectory>
<!-- Specifies application specific virtual directory mapping for recorded streams. -->
<Streams>/;${VOD_COMMON_DIR}</Streams>
<Streams>/;${VOD_DIR}</Streams>
<Streams>/;I:/webroot</Streams>
</VirtualDirectory>
</StreamManager>
media path
I:\webroot\clips\110.mp3
URL tried:
http://localhost:8134/clips/110.mp3
Am I doing any step wrong?
Thanks!
Copy link to clipboard
Copied
Did you create folder called "clips" under webroot i.e. under I:\webroot - you created "clips" folder and kept 110.mp3 there?
Copy link to clipboard
Copied
That's correct.
Copy link to clipboard
Copied
Sorry i did not get you clearly - are you saying you created "clips" folder and placed mp3 file and its still not working. By the way what are you using as your client?
Copy link to clipboard
Copied
Yes, I created the folder and the file is in there. It didn't work for me. Do you see any problems with the changes I made? I think I followed the steps you suggested.
Client = normal browser, with this link in address bar. Like I mentioned before, if the asset is on local drive and I don't map it to something but just place it under webroot/vod/<foldername>/<myfile>.mp3 then I'm able to access it just as http://localhost:8134/vod/<foldername>/<myfile>.mp3
For rtmp I used the fla file and compiled it to swf as suggested per documentation and it worked like a charm. It could easily access the remote directory too (UNC path name), without mapping to a drive.
Copy link to clipboard
Copied
What you are doing wrong the way you play it - putting it in address bar won't work.If you want to see it working, please use player like VideoPlayer which comes with FMS installation or you can use FLVPlayback component. In both cases you stream url or source as "http://servername/video/sample.flv" where "video" is folder in webroot (i think your case it would be clips) and sample.flv is the file. Videoplayer.html should be able to play mp3 files but i am not sure about FLVPlayback component.

Copy link to clipboard
Copied
Well, I can say I am using .mp4's and they also do not work.
Copy link to clipboard
Copied
Thanks for your response. Well the issue that I have is that I'm trying to do invoke this from Android device and it won't support the default videaplayer which is a swf.So I really need some way of accessing this over plain http or http proxy via browser or some standard client available for the end users.

Copy link to clipboard
Copied
Yes, I am in a similar situation. I have a group of iPad users who do not run flash. So I need to have them do their download via http://.

Copy link to clipboard
Copied
In my mind there are 3 files which need to be edited to make this work (application.xml, httpd.conf, fms.ini). I have edited all 3 files to look as they do below. Please tell me what I have done wrong. Are they edited incorrectly?
httpd.conf
<Directory "I:/webroot">
Options -Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
application.xml
<StreamManager>
<VirtualDirectory>
<!-- Specifies application specific virtual directory mapping for recorded streams. -->
<Streams>/;${VOD_COMMON_DIR}</Streams>
<Streams>/;${VOD_DIR}</Streams>
<Streams>/;I:/webroot</Streams>
</VirtualDirectory>
</StreamManager>
fms.ini
# VOD_COMMON_DIR denotes the full path of sample "VOD" application's
# folder for storing onDemand and Progressive Download .flv/.mp3 files.
# File stored in this folder can be streamed and are also PD-able.
# Note : If you are using the default installation of Apache as a webserver,
# and if you modify VOD_COMMON_DIR, please change the document root
# accordingly in httpd.conf.
# For example:
# VOD_COMMON_DIR = <FMS_Installation_Dir>\webroot\vod
#
VOD_COMMON_DIR = I:\webroot
media path
I:\webroot\vod\santest.mp4
URL tried:
http://servername/vod/santest.mp4
Please keep in mind if I set all 3 files to their original setting (which is the install root off C) this URL works fine.
Copy link to clipboard
Copied
There are few things i would like to write down:
In response to wpgiv03 - When it comes to iPad we cannot as of now do much as iPad does not support Flash Player
I do not know what exactly does viola mean when he says "Android device and it won't support the default videaplayer which is a swf" - I do not have android phone (hope to own some day) - but latest Android supports FP 10.1 and you should be able to play any swfs. Is it the problem only with default videoplayer or with any swfs - try opening videoplayer.html instead of directly using swf (because i think it passes the url of file to play via by appending to url)
Now coming to final thing , before trying http , wpgiv03 can you confirm that virtual directory setting is working for rtmp - in that way we can rule out if there is any permission issues - if you are not able to play even via rtmp then i suspect there is some permission issue

Copy link to clipboard
Copied
I understand iPad users do not use flash. That is why I am not using the rtmp for them. I need to use the http (Progressive Download) for all iPad users. Everything works fine for these users when the video plays from C:\Program Files (x86)\Adobe\Flash Media Server 3.5\webroot\vod. When I edit the Application.xml, httpd.conf, and fms.ini to reflect the media sitting on I:\webroot\vod all video fails. I have verified all permissions are set the same on both drives (C:\ and I:\ are exactly the same).
Viola is speaking of a cell phone application, and as I suspect all for her works fine if she is not using http or if she is pulling the video from the install root (which is most likely c:\).
Copy link to clipboard
Copied
Hmmm... did you try just playing rtmp streams just to see if it can play streams from your I: drive.

Copy link to clipboard
Copied
Again, this is still not corrected. I can not seem to get a solid answer as to what file I need to edit. All I am trying to do is rather than have my media progressive download from c:\Install root\adobe\flash media server 3.5\webroot\vod have it download from I:\video. Seems simple enough.....right? I keep getting conflicting info as to what file I need to edit. Do I need to edit one or all of the below files to reflect the new location of the media files? I have edited allof these files to reflect the new drive and NOTHING WORKS. I am pulling my hair out........
application.xml
fms.ini
httpd.conf
vhost.ini
Copy link to clipboard
Copied
Screw FMS. I switched to windows media streaming server for playing media over http from remote unc path.
SE_0208: No Android OS on any device doesn't support flash unless it is 2.2 ver or it's HTC Hero device.
