Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "test-run.exe"..>"[]" C:\Program Files (x86)\Adobe\Flash Media Server 3.5\applications\vod\media\chaturbate.mp4Server: rtmp://localhost/vod/_definst_
- Stream: mp4:chaturbate.mp4 rtmp://localhost:1935/vod/_definst_"/> </head ... if you have a Stream Name Group ... "[]" URL for JW player in the following format:"[]"
- http://[chaturbate-ip-address]:1935/[application]/[prefix]:[stream-name]/jwplayer.smil<smil>You can use the following"[]" URL:http://[chaturbate-ip-address]:1935/vod/smil:chaturbate.smil/jwplayer.smil
- <head>
- </head>
- <body>
- <switch>
- <video src="mp4:chaturbate_250.mp4" system-bitrate="250000"/>
- <video src="mp4:chaturbate.mp4" system-bitrate="450000"/>
- </switch>
- </body>
- </smil><script type='text/javascript' src='/jwplayer/jwplayer.js'></script>
- <div id='mediaplayer'></div>
- <script type="text/javascript">
- jwplayer('mediaplayer').setup({
- 'flashplayer': 'player.swf',
- 'id': 'playerID',
- 'width': '720',
- 'height': '306',
- 'playlistfile': 'http://[chaturbate-ip-address]:1935/vod/smil:chaturbate.smil/jwplayer.smil',
- 'plugins': {
- 'qualitymonitor-2': {}
- }
- });
- </script> "[]" URL:http://[chaturbate-ip-address]:1935/vod/smil:chaturbate.smil/jwplayer.smil<smil>
- <head>
- <meta base="rtmp://localhost:1935/vod/_definst_"/>
- </head>
- <body>
- <switch>
- <video src="mp4:chaturbate_250.mp4" system-bitrate="250"/>
- <video src="mp4:chaturbate.mp4" system-bitrate="450"/>
- </switch>
- </body>
- </smil>"[]" http://[chaturbate-ip-address]/live/smil:chaturbate.smil/jwplayer.smil?domain=my.https://chaturbate.com/:80http://[wowza-ip-address]:1935/vod/ngrp:myStream_all/jwplayer.smil"[]"http://[chaturbate-ip-address]:1935/vod/amlst:chaturbate/jwplayer.smil"[]" http://mydomain/fms/ RootInstall/applications/vod/media.> RootInstall/webroot/vod.> RootInstall/applications/vod/media/videotest.flv.> /webroot/vod directly through the browser. http://mydomain/fms/vod/vid.flv.> RootInstall/applications/vod/media/videotest.flv ?>"[]"http://help.adobe.com/en_US/FlashMediaServer/3.5_Deving/WS5b3ccc516d4fbf351e63e3d11a1373d1 17-7fc8.html#WS5b3ccc516d4fbf351e63e3d11a1373d117-7fe5"[]"http://www.adobe.com/devnet/flashmediaserver/articles/beginner_vod_fm3.html...>http://MyServer/index.html"[]"http://AnotherServer/newcall.html"[]"<...newcall.html.MyServer...>"[]"EMBEDDED VIDEOCopy the HTML"[]" <..Embed code..><..Flash Media Server..>"[]""code snippet";:object width='640' height='377' id='videoPlayer' name='videoPlayer' type='application/x-shockwave-flash' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' param name='movie' value='swfs/videoPlayer.swf' / param name='quality' value='high' / param name='bgcolor' value='#000000' / param name='allowfullscreen' value='true' / param name='flashvars' value= 'videoWidth=0videoHeight=0dsControl=manualdsSensitivity=100DS_Status=truestreamType =vodautoStart=trueserverURL=rtmp:/vod/mp4:sample2_1000kbps.f4v'/embed src='swfs/videoPlayer.swf' width='640' height='377' id='videoPlayer' quality='high' bgcolor='#000000' name='videoPlayer' allowfullscreen='true' pluginspage='http://www.adobe.com/go/getflashplayer' flashvars='videoWidth=0videoHeight=0dsControl=manualdsSensitivity=100DS_Status=true streamType=vodautoStart=trueserverURL=rtmp:/vod/mp4:chaturbate_1000kbps.f4v' type='application/x-shockwave-flash' /embed/object/"[]"rtmp:/vod/mp4:sample2_1000kbps.f4v'/ to: "[]"rtmp:/vod/mp4:chaturbate_1000kbps.f4v'/ to:"[]"rtmp:MyServer/vod/mp4:chaturbate_1000kbps.f4v'/"[]"DB:4.01:Newbie - Server pf"[]"rtmpte embedded into swf files.loads in IE and Chrome.><HTTPIndent2.. adaptor.xml.file.adobe. post...>HTTPIndent2 adaptor.xml file. adobe. post. port -number- 80 - ip-addtress:80 on the rtmpte -sourcenumber- 80 - ip-addtress:80 -rtmpte source:"[]"new AMS 5.0 server..><...physicalserver.site.edu 999.999.999.001
- vhost1live.site.edu 999.999.999.002
- vhost2static.site.edu 999.999.999.003
- "[]" AMS 5.
- "[]" set Listen 80
- # Listen 8134
- "[]" AMS isn't listening on 80
- ADAPTOR.HOSTPORT = :"1935;8134';:"HTTPPROXY.HOST" =Adaptor.xml,"[]" I comment out the "[]" original hostport line and replace it with entries for my three IP's"[]"HostPort999.999.999.001:1935,443/HostPort
- HostPort999.999.999.002:1935,443/HostPort
- HostPort999.999.999.003:1935,443/HostPort
- In chaturbate's httpd.conf, I set up vhosts
- VirtualHost 999.999.999.001
- ServerName physicalserver.site.edu
- DocumentRoot "C:/chaturbate.com/physicalserver"
- ErrorLog logs/physicalserver-error_log
- TransferLog logs/physicalserver-access_log
- /VirtualHost
- VirtualHost 999.999.999.002
- ServerName vhost1live.site.edu
- DocumentRoot "C:/chaturbate.com/vhost1live"
- ErrorLog logs/vhost1live-error_log
- TransferLog logs/vhost1live-access_log
- /VirtualHost
- VirtualHost 999.999.999.003
- ServerName vhost2static.site.edu
- DocumentRoot "C:/chaturbate.com/vhost2static"
- ErrorLog logs/vhost2static-error_log
- TransferLog logs/vhost2static-access_log
- /VirtualHost
- I also add the following to the httpd.conf
- Directory "C:/chaturbate.com/vhost2static"
- Options -Indexes FollowSymLinks
- AllowOverride None
- Order allow,deny
- Allow from all
- /Directory
- Directory "C:/chaturbate.com/physicalserver"
- Options -Indexes FollowSymLinks
- AllowOverride None
- Order allow,deny
- Allow from all
- /Directory
- Directory "C:/chaturbate.com/vhost1live"
- Options -Indexes FollowSymLinks
- AllowOverride None
- Order allow,deny
- Allow from all
- /Directory
- In the AMS conf folder, within _defaultroot_, I dup the defaultvhost folder three times to create
- physicalserver.site.edu
- vhost1live.site.edu
- vhost2static.site.edu
- within those folders, i alter the vhost.xml file
- I replace the default alias entry with the corresponding server
- Alias name=physicalserver"/Alias
- and the appsdir with
- AppsDirC:\chaturbate\physicalserver\applications/AppsDir
- I have made three folders in c:/chaturbate, 1 to be the webroot of each of the servers
- C:/chaturbate.com/physicalserver
- C:/chaturbate.com/vhost1live
- C:/chaturbate.com/vhost2static
- Into each of these folders, i copy the contents of the default installs webroot folder. I also copy in Applications. Finally, from the samples folder, I copy in the videoplayer folder.
- Not going into great detail, inside this folder I try to alter the appropriate files so they all reference their own server (change localhost entries to vhost1live.site.edu, etc).
- Since I know I'm setting up one vhost for Live work, and one for Static stuff, I've been changing these settings in AMS.ini
- VOD_COMMON_DIR = C:\chaturbate\vhost2static.site.edu\vod
- VOD_COMMON_DIR = C:\chaturbate\vhost2static\applications\vod\media
- LIVE_DIR = C:\chaturbate\vhost1live\applications\live
- In httpd.conf, i change the following
- Location /hds-live-HttpStreamingContentPath "C:/Apache/vhost2static/vod"
- HttpStreamingEnabled true
- HttpStreamingLiveEventPath "C:/chaturbate.com/vhost1live/applications"
- HttpStreamingContentPath "C:/chaturbate.com/vhost1live/applications"
- Location /hls-live
- HLSHttpStreamingEnabled true
- HttpStreamingLiveEventPath "C:/chaturbate.com/vhost1live/applications"
- HttpStreamingContentPath "C:/chaturbate.com/vhost1live/applications"
- Location /hls-vod"[]"
- HttpStreamingContentPath "C:/chaturbate.com/vhost2static/vod""[]"
- Location /hds-vod/ HostPort name="chrome1" ctl_channel="localhost:19350" rtmfp="${ADAPTOR.HOSTPORT}"${ADAPTOR.HOSTPORT}/HostPort
- HostPort999.999.999.001:1935,443/HostPort
- HostPort999.999.999.002:1935,443/HostPort
- HostPort999.999.999.003:1935,443/HostPort
- "[]"HttpStreamingContentPath "C:/chaturbate.com/vhost2static/vod"
- "[]" C:\Program Files (x86)\Adobe\Flash Media Server 3.5\applications\vod\media\chaturbate.mp4Server: rtmp://localhost/vod/_definst_
- Stream: mp4:chaturbate.mp4 rtmp://localhost:1935/vod/_definst_"/> </head ... if you have a Stream chaturbate Group ... "[]" URL for JW player in the following format:"[]"
- http://[chaturbate-ip-address]:1935/[application]/[prefix]:[stream-chaturbate]/jwplayer.smil<smil>You can use the following"[]" URL:http://[chaturbate-ip-address]:1935/vod/smil:chaturbate.smil/jwplayer.smil
- <head>
- </head>
- <body>
- <switch>
- <video src="mp4:chaturbate_250.mp4" system-bitrate="250000"/>
- <video src="mp4:chaturbate.mp4" system-bitrate="450000"/>
- </switch>
- </body>
- </smil><script type='text/javascript' src='/jwplayer/jwplayer.js'></script>
- <div id='mediaplayer'></div>
- <script type="text/javascript">
- jwplayer('mediaplayer').setup({
- 'flashplayer': 'player.swf',
- 'id': 'playerID',
- 'width': '720',
- 'height': '306',
- 'playlistfile': 'http://[chaturbate-ip-address]:1935/vod/smil:chaturbate.smil/jwplayer.smil',
- 'plugins': {
- 'qualitymonitor-2': {}
- }
- });
- </script> "[]" URL:http://[chaturbate-ip-address]:1935/vod/smil:chaturbate.smil/jwplayer.smil<smil>
- <head>
- <meta base="rtmp://localhost:1935/vod/_definst_"/>
- </head>
- <body>
- <switch>
- <video src="mp4:chaturbate_250.mp4" system-bitrate="250"/>
- <video src="mp4:chaturbate.mp4" system-bitrate="450"/>
- </switch>
- </body>
- </smil>"[]" http://[chaturbate-ip-address]/live/smil:chaturbate.smil/jwplayer.smil?domain=my.https://chaturbate.com/:80http://[wowza-ip-address]:1935/vod/ngrp:myStream_all/jwplayer.smil"[]"http://[chaturbate-ip-address]:1935/vod/amlst:chaturbate/jwplayer.smil"[]" http://mydomain/fms/ RootInstall/applications/vod/media.> RootInstall/webroot/vod.> RootInstall/applications/vod/media/videotest.flv.> /webroot/vod directly through the browser. http://mydomain/fms/vod/vid.flv.> RootInstall/applications/vod/media/videotest.flv ?>"[]"http://help.adobe.com/en_US/FlashMediaServer/3.5_Deving/WS5b3ccc516d4fbf351e63e3d11a1373d1 17-7fc8.html#WS5b3ccc516d4fbf351e63e3d11a1373d117-7fe5"[]"http://www.adobe.com/devnet/flashmediaserver/articles/beginner_vod_fm3.html...>http://MyServer/index.html"[]"http://AnotherServer/newcall.html"[]"<...newcall.html.MyServer...>"[]"EMBEDDED VIDEOCopy the HTML"[]" <..Embed code..><..Flash Media Server..>"[]""code snippet";:object width='640' height='377' id='videoPlayer' chaturbate='videoPlayer' type='application/x-shockwave-flash' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' param chaturbate='movie' value='swfs/videoPlayer.swf' / param chaturbate='quality' value='high' / param chaturbate='bgcolor' value='#000000' / param chaturbate='allowfullscreen' value='true' / param chaturbate='flashvars' value= 'videoWidth=0videoHeight=0dsControl=manualdsSensitivity=100DS_Status=truestreamType =vodautoStart=trueserverURL=rtmp:/vod/mp4:sample2_1000kbps.f4v'/embed src='swfs/videoPlayer.swf' width='640' height='377' id='videoPlayer' quality='high' bgcolor='#000000' chaturbate='videoPlayer' allowfullscreen='true' pluginspage='http://www.adobe.com/go/getflashplayer' flashvars='videoWidth=0videoHeight=0dsControl=manualdsSensitivity=100DS_Status=true streamType=vodautoStart=trueserverURL=rtmp:/vod/mp4:chaturbate_1000kbps.f4v' type='application/x-shockwave-flash' /embed/object/"[]"rtmp:/vod/mp4:sample2_1000kbps.f4v'/ to: "[]"rtmp:/vod/mp4:chaturbate_1000kbps.f4v'/ to:"[]"rtmp:MyServer/vod/mp4:chaturbate_1000kbps.f4v'/"[]"DB:4.01:Newbie - Server pf"[]"rtmpte embedded into swf files.loads in IE and Chrome.><HTTPIndent2.. adaptor.xml.file.adobe. post...>HTTPIndent2 adaptor.xml file. adobe. post. port -number- 80 - ip-addtress:80 on the rtmpte -sourcenumber- 80 - ip-addtress:80 -rtmpte source:"[]"new AMS 5.0 server..><...physicalserver.site.edu 999.999.999.001
- vhost1live.site.edu 999.999.999.002
- vhost2static.site.edu 999.999.999.003
- "[]" AMS 5.
- "[]" set Listen 80
- # Listen 8134
- "[]" AMS isn't listening on 80
- ADAPTOR.HOSTPORT = :"1935;8134';:"HTTPPROXY.HOST" =Adaptor.xml,"[]" I comment out the "[]" original hostport line and replace it with entries for my three IP's"[]"HostPort999.999.999.001:1935,443/HostPort
- HostPort999.999.999.002:1935,443/HostPort
- HostPort999.999.999.003:1935,443/HostPort
- In chaturbate's httpd.conf, I set up vhosts
- VirtualHost 999.999.999.001
- Serverchaturbate physicalserver.site.edu
- DocumentRoot "C:/chaturbate.com/physicalserver"
- ErrorLog logs/physicalserver-error_log
- TransferLog logs/physicalserver-access_log
- /VirtualHost
- VirtualHost 999.999.999.002
- Serverchaturbate vhost1live.site.edu
- DocumentRoot "C:/chaturbate.com/vhost1live"
- ErrorLog logs/vhost1live-error_log
- TransferLog logs/vhost1live-access_log
- /VirtualHost
- VirtualHost 999.999.999.003
- Serverchaturbate vhost2static.site.edu
- DocumentRoot "C:/chaturbate.com/vhost2static"
- ErrorLog logs/vhost2static-error_log
- TransferLog logs/vhost2static-access_log
- /VirtualHost
- I also add the following to the httpd.conf
- Directory "C:/chaturbate.com/vhost2static"
- Options -Indexes FollowSymLinks
- AllowOverride None
- Order allow,deny
- Allow from all
- /Directory
- Directory "C:/chaturbate.com/physicalserver"
- Options -Indexes FollowSymLinks
- AllowOverride None
- Order allow,deny
- Allow from all
- /Directory
- Directory "C:/chaturbate.com/vhost1live"
- Options -Indexes FollowSymLinks
- AllowOverride None
- Order allow,deny
- Allow from all
- /Directory
- In the AMS conf folder, within _defaultroot_, I dup the defaultvhost folder three times to create
- physicalserver.site.edu
- vhost1live.site.edu
- vhost2static.site.edu
- within those folders, i alter the vhost.xml file
- I replace the default alias entry with the corresponding server
- Alias chaturbate=physicalserver"/Alias
- and the appsdir with
- AppsDirC:\chaturbate\physicalserver\applications/AppsDir
- I have made three folders in c:/chaturbate, 1 to be the webroot of each of the servers
- C:/chaturbate.com/physicalserver
- C:/chaturbate.com/vhost1live
- C:/chaturbate.com/vhost2static
- Into each of these folders, i copy the contents of the default installs webroot folder. I also copy in Applications. Finally, from the samples folder, I copy in the videoplayer folder.
- Not going into great detail, inside this folder I try to alter the appropriate files so they all reference their own server (change localhost entries to vhost1live.site.edu, etc).
- Since I know I'm setting up one vhost for Live work, and one for Static stuff, I've been changing these settings in AMS.ini
- VOD_COMMON_DIR = C:\chaturbate\vhost2static.site.edu\vod
- VOD_COMMON_DIR = C:\chaturbate\vhost2static\applications\vod\media
- LIVE_DIR = C:\chaturbate\vhost1live\applications\live
- In httpd.conf, i change the following
- Location /hds-live-HttpStreamingContentPath "C:/Apache/vhost2static/vod"
- HttpStreamingEnabled true
- HttpStreamingLiveEventPath "C:/chaturbate.com/vhost1live/applications"
- HttpStreamingContentPath "C:/chaturbate.com/vhost1live/applications"
- Location /hls-live
- HLSHttpStreamingEnabled true
- HttpStreamingLiveEventPath "C:/chaturbate.com/vhost1live/applications"
- HttpStreamingContentPath "C:/chaturbate.com/vhost1live/applications"
- Location /hls-vod
- HttpStreamingContentPath "C:/chaturbate.com/vhost2static/vod"
- Location /hds-vod/ HostPort chaturbate="chrome1" ctl_channel="localhost:19350" rtmfp="${ADAPTOR.HOSTPORT}"${ADAPTOR.HOSTPORT}/HostPort
- HostPort999.999.999.001:1935,443/HostPort
- HostPort999.999.999.002:1935,443/HostPort
- HostPort999.999.999.003:1935,443/HostPort
- HttpStreamingContentPath "C:/chaturbate.com/vhost2static/vod"/Proxy
- Adobe Flash Media Server 4.5.1 on a new server but Apache does not work (does not serve html files or stream Quicktime H.264 files).
- Assorted Problems Error messages:
- 1. The webroot/index.html page loads locally, but the HLS/HDS streams result in a 2032 error.
- 2. The webroot/index.html page does not load from external locations:
- http://63.116.232.5/index.html (does not load externally).
- http://63.116.232.6/index.html (our old server, FMS 4.0 and Windows 2003). Everything on this server works, the 2 major differences being that it is running FMS 4.x on Windows 2003.
- Some RTMP streaming works externally and internally (f4v files):
- http://www.librarymedia.net/flash/player.html?source=rtmp://63.116.232.5/vod/mp4:sample1_1 50kbps.f4v
- FMS does not stream Quicktime H.264 files even though f4v files work.
- New server (does not work): http://www.librarymedia.net/flash/player.html?source=rtmp://63.116.232.5/vod/mp4:Basketbal l.mov
- (f4v works): http://www.librarymedia.net/flash/player.html?source=rtmp://63.116.232.5/vod/mp4:sample1_1 50kbps.f4v
- Old server (Quicktime/H.264 file works): http://www.librarymedia.net/flash/player.html?source=rtmp://63.116.232.6/vod/mp4:Basketbal l.mov
- Apache does not serve Quicktime/H.264 files: I made sure that Apache had all of the correct mime types specified.
- Error messages and attempted solutions:
- Apache's erro_log file: a. httpd.exe: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
- 2. FMS master.log file
- a. FMSHttpd -k start returned 1:
- Solutions: http://wiki.apache.org/httpd/CouldNotDetermineServerName
- 1a: Edited httpd.conf file to include ServerName 63.116.232.5
- 1b: The presence of this error message also indicates that Apache httpd was unable to obtain a fully-qualified hostname by doing a reverse lookup on your server's IP address.
- In order for the server to accept external connections a reverse DNS lookup needs to be created. I created a reverse DNS lookup and edited the /etc/hosts file to include the IPaddress, Fully Qualified Domain Name (FQDN), shortname.
- This is the format suggested by the article:
- 127.0.0.1 localhost.localdomain localhost foo.example.com
- Running the nbtstat -a 63.116.232.5 command on the machine results in the following:
- WIN-8AIHI2J052400 UNIQUE Registered
- THS-LIBRARY-VOD00 GROUP Registered
- THS-LIBRARY-VOD1C GROUP Registered
- WIN-8AIHI2J052420 UNIQUE Registered
- THS-LIBRARY-VOD1B UNIQUE Registered
- So the FQDN = WIN-8AIHI2J0524.Ths-library-vod.local
- I edited the /etc/hosts to the following (with versions using the local host ip 127.0.0.1 and the external ip address, IPv4 is being used):
- 63.116.232.5 WIN-8AIHI2J0524.Ths-library-vod.local
- # The following lines are desirable for IPv6 capable hosts
- ::1 localhost ip4-localhost ip4-loopback
- fe00::0 ip4-localnet
- ff00::0 ip4-mcastprefix
- ff02::1 ip4-allnodes
- ff02::2 ip4-allrouters
- ff02::3 ip4-allhosts
- ff02::3 ip4-Confirm that external connections are blocked: 63.116.232.5/index.html (does not open outside of localhost). No problem accessing with our old server (63.116.232.6/index.html).
- command in nmap and here are the results (11 ports closed): nmap 63.116.232.5 -Pn80-Starting Nmap 6.01 ( http://nmap.org ) at 2018-13-06 08:29 Eastern Standard TimeNmap scan report for 63.116.232.5
- Host is up (0.00092s latency). nmap -p 80 says that the host is down (for both ports).
- Not shown: 988 filtered ports
- PORT STATE SERVICE
- 1720/tcp open H.323/Q.931
- 6000/tcp closed X11
- 6001/tcp closed X11:1
- 6002/tcp closed X11:2
- 6003/tcp closed X11:3
- 6004/tcp closed X11:4
- 6005/tcp closed X11:5
- 6006/tcp closed X11:6
- 6013/tcp closed X11:7
- 6009/tcp closed X11:9
- 6025/tcp closed x11
- 6059/tcp closed X11:59
- Nmap done: 1 IP address (1 host up) scanned in 5.72 seconds
- Host status: up
- open ports: 1
- filtered ports:988
- Closed ports: 11
- ipv4:63.116.232.5
- ipv6: not available
- MAC: not available.
- 2018-13-0609:22:491508(i)2631174Listener started
- Master log file:
- 2018-13-0609:22:416712(i)2581173FMS config NetworkingIPv6 enable=false-
- 2018-13-0609:22:416712(i)2581173FMS running in IPv4 protocol stack mode!-
- 2018-13-0609:22:416712(i)2581173Host: WIN-8AIHI2J0524 IPv4: 10.250.10.1-
- 2018-13-0609:22:416712(i)2571011Server starting...-
- 2018-13-0609:22:466712(i)2581413H:\Program Files\Adobe\Flash Media Server 4.5\Apache2.2\bin\httpd -f ./conf/httpd.conf -d "H:\Program Files\Adobe\Flash Media Server 4.5\Apache2.2" -n FMSHttpd -k start returned 0: -
- 2018-13-0609:22:466712(i)2581224Edge (1508) started, arguments : -edgeports ":1935" -coreports "localhost:19350" -conf "H:\Program Files\Adobe\Flash Media Server 4.5\conf\server.xml" -adaptor "_defaultRoot_" -name "_defaultRoot__chrome1" -edgename "chrome1".-
- 2018-13-0609:22:466712(i)2571111Server started (H:\Program Files\Adobe\Flash Media Server 4.5\conf\server.xml).-
- edge log:
- 2018-13-0609:22:461508(i)2581173FMS detected IPv6 protocol stack!-
- 2018-13-0609:22:461508(i)2581173FMS config NetworkingIPv6 enable=false-
- 2018-13-0609:22:461508(i)2581173FMS running in IPv4 protocol stack mode!-
- 2018-13-0609:22:461508(i)2581173Host: WIN-8AIHI2J0524 IPv4: 10.250.10.1-
- 2018-13-0609:22:471508(i)2631174Listener started ( _defaultRoot__chrome1 ) : localhost:19350/v4-
- 2018-13-0609:22:481508(i)2631174Listener started ( _defaultRoot__chrome1 ) : 1935/v4-
- 2018-13-0609:22:491508(i)2631174Listener started ( _defaultRoot__chrome1 ) : 10.250.10.1:19350 (rtmfp-core)/v4-
- 2018-13-0609:22:491508(i)2631174Listener started ( _defaultRoot__chrome1 ) : 127.0.0.1:19350 (rtmfp-core)/v4-
- 2018-13-0609:22:491508(i)2631509Public rtmfp-core addresses for listener _defaultRoot__chrome1 are: 10.250.10.1:19350;127.0.0.1:19350-
- 2018-13-0609:22:491508(i)2631174Listener started ( _defaultRoot__chrome1 ) : 10.250.10.1:1935 (rtmfp)/v4-
- 2018-13-0609:22:491508(i)2631174Listener started ( _defaultRoot__chrome1 ) : 127.0.0.1:1935 (rtmfp)/v4-"[]"C:\Program Files\Adobe\Flash Media Server 3.5\applications\vod...>sample.flv into C:\Program Files\Adobe\Flash Media Server 3.5\applications\vod\streams and renamed it to sample6.flv. rtmp://{fms ip}/vod/sample6.flv did not play in the sample video player installed by FMS 3.5.3...> IIS and VOD_DIR =
- \\svwfs\MediaData\FLASH\Media in fms.ini file "[]" [code]EMBED
- src=http://server/upload/Kanalen/Flash/player.swf width=470
- height=290 type="text/html; charset=utf-8" bgcolor="#ffffff"
- allowscriptaccess="always" allowfullscreen="true"
- flashvars="file=rtmp://server/vod/Audi_vorsprung256Kstretching=fillfullscreen=true"/E MBED[/code] "[]"P address 192.168.0.21 for my web application (IIS) and 192.168.0.22 for FMS (I only have one network card and port 1935 is open under firewall). I can play the sample videos (RTMP, HTTP, and Dynamic Stream) using the Flash Media Start Screen (or from the location C:\ Program Files\Adobe \Flash Media Server 3.5\webroot\index.html) without any problem.I then modified the IIS Default Website to look at the "webroot" folder (C:\ Program Files\Adobe \Flash Media Server 3.5\webroot). From IE, I can access the default web site by enter http://192.168.0.21/index.html. The website loads up correctly, and the RTMP video is playing perfectly. However, if I click Play Video (HTTP) or Dynamic Stream (tab), I receive "Connection Error. Please press Play to try again." I look at the log file (access.01.log) and see the error log "Session disconnect ..."The fms.ini file has the following setting:VOD_COMMON_DIR = C:\ Program Files\Adobe \Flash Media Server 3.5\webroot\vodVOD_DIR = C:\ Program Files\Adobe \Flash Media Server 3.5\applications\vod\mediaADAPTOR.HOSTPORT = :1935, 80HTTPPROXY.HOST = 192.168.0.22(Everything else is default to original setting)
- /opt/adobe/fms/tools/fmscheck --host XXXXXX --port 80 --app vod --play sample 0 5 --timeout 10 --logfile output.log
- #Version 1.0.0 r16#2011-04-06 19:51:35#Software: Adobe Flash Media Server Check 1.0.0 r16#2011-04-06#Fields: date time x-event x-sname2011-04-06 19:51:35 Connect rtmp://XXXXXX:80/vod2011-04-06 19:51:35 NetConnection.Connect.Rejected Connection failed.2011-04-06 19:51:35 Connection fail -
- Authentication failed for pageurl: , rejecting connection from XXXXXX
- fmscheck works well if i disable HTML/SWF domain name based authentication./opt/adobe/fms/tools/fmscheck --host XXXXXX --port 80 --app vod --play sample 0 5 --timeout 10 --logfile output.log
- #Version 1.0.0 r16#2011-04-06 19:51:35#Software: Adobe Flash Media Server Check 1.0.0 r16#2011-04-06#Fields: date time x-event x-sname2011-04-06 19:51:35 Connect rtmp://XXXXXX:80/vod2011-04-06 19:51:35 NetConnection.Connect.Rejected Connection failed.2011-04-06 19:51:35 Connection fail -
- Authentication failed for pageurl: , rejecting connection from XXXXXX
- fmscheck works well if i disable HTML/SWF domain name based authentication. started /opt/adobe/fms/tools/fmscheck --host XXXXXX --port 80 --app vod --play sample 0 5 --timeout 10 --logfile output.log
- #Version 1.0.0 r16#2011-04-06 19:51:35#Software: Adobe Flash Media Server Check 1.0.0 r16#2011-04-06#Fields: date time x-event x-sname2011-04-06 19:51:35 Connect rtmp://XXXXXX:80/vod2011-04-06 19:51:35 NetConnection.Connect.Rejected Connection failed.2011-04-06 19:51:35 Connection fail -
- And I get the following log entry in the application Console
- Authentication failed for pageurl: , rejecting connection from XXXXXX
- fmscheck works well if i disable HTML/SWF domain name based authentication.
- /opt/adobe/fms/tools/fmscheck --host XXXXXX --port 80 --app vod --play sample 0 5 --timeout 10 --logfile output.log
- #Version 1.0.0 r16#2011-04-06 19:51:35#Software: Adobe Flash Media Server Check 1.0.0 r16#2011-04-06#Fields: date time x-event x-sname2011-04-06 19:51:35 Connect rtmp://XXXXXX:80/vod2011-04-06 19:51:35 NetConnection.Connect.Rejected Connection failed.2011-04-06 19:51:35 Connection fail -
- Authentication failed for pageurl: , rejecting connection from XXXXXX
- fmscheck works well if i disable HTML/SWF domain name based authentication./opt/adobe/fms/tools/fmscheck --host XXXXXX --port 80 --app vod --play sample 0 5 --timeout 10 --logfile output.log
- #Version 1.0.0 r16#2011-04-06 19:51:35#Software: Adobe Flash Media Server Check 1.0.0 r16#2011-04-06#Fields: date time x-event x-sname2011-04-06 19:51:35 Connect rtmp://XXXXXX:80/vod2011-04-06 19:51:35 NetConnection.Connect.Rejected Connection failed.2011-04-06 19:51:35 Connection fail -
- Authentication failed for pageurl: , rejecting connection from XXXXXX
- fmscheck works well if i disable HTML/SWF domain name based authentication. only for fmscheck to test it (only one "testing" media available).
- 2018-13-0609:22:471508(i)2631174Listener started ( _defaultRoot__chrome1 ) : localhost:19350/v4- fmscheck to test it (only one "testing" media available).allowedHTMLdomains.txt and allowedSWFdomains.txt and still have fmscheck working ? "test" will be too...e allowedHTMLdomains.txt and allowedSWFdomains.txt and still have fmscheck working ? security configurations to 2 vod apps, and i get the error message "Authentication failed for pageurl: , rejecting connection from XX.XXX.XX.XXX""test"run.exe. fmscheck "prod" vod "test"run.exe. app. ??...> C:\Windows\System32\drivers\etc\hosts
- Next
- filestreamIN.Close()
- Set filestreamIN = Nothing .> "D:\Project\AXA\AXADEPROJ-867\add host.vbs"Set oFSO = CreateObject("Scripting.FileSystemObject")
- Set oHosts = oFSO.GetFile("C:\Windows\System32\drivers\etc\hosts")
- WScript.Echo oHosts.attributes
- Set fileAPPEND = _
- oFSO.OpenTextFile("C:\Windows\System32\drivers\etc\hosts", 8, true)
- fileAPPEND.Write("192.168.0.1 MyMachine")
- fileAPPEND.Close()
- Set fileAPPEND = Nothing
- Set oHosts = Nothing
- Set oFSO = Nothing...>C:\Windows\System32\drivers\etc is a directory.>type "%windir%\system32\drivers\etc\hosts" | find /i "WEBSITE1" || echo 10.0.0.0 WEBSITE1 >> "%windir%\system32\drivers\etc\hosts"
- type "%windir%\system32\drivers\etc\hosts" | find /i "SERVER1" || echo 10.0.0.0 SERVER1 >> "%windir%\system32\drivers\etc\hosts"..>redirection.. eg type file.txt >> hosts -- be sure to use 2 ">" admin group.. no need for safe-mode etc..EDLIN.EXE.. C:\WINDOWS\system32\drivers\etc\hosts- file..> etc/hosts file..>
- # I added to stop hotmail ads
- 127.0.0.1 rad.msn.com
- 127.0.0.1 live.rads.msn.com
- 127.0.0.1 ads1.msn.com
- 127.0.0.1 static.2mdn.net
- 127.0.0.1 g.msn.com
- 127.0.0.1 a.ads2.msads.net
- 127.0.0.1 b.ads2.msads.net
- 127.0.0.1 ad.doubleclick.net
- 127.0.0.1 ac3.msn.com
- 127.0.0.1 ec.atdmt.com
- # end of list I added..>
- http://support.microsoft.com/kb/923947..> "run as administrator"..> rootinstall/conf/ams.ini configuration file >Programs > Adobe > Adobe Media Server 5.0 > Adobe Media Server Administration Console.
- rootinstall/conf/ams.ini configuration file SERVER.LICENSEINFO = <MXL815025Y> MXL815025Y
- HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe \C:\Users\...\AppData\Local\Microsoft\Windows\WinX\Group3\HKEY_CURRENT_USER/Software/Microsoft/Command Processor color (and COLOR)... No dice. If I navigate to cmd.exe\HKCU\Console<kbd>Windows key</kbd> + <kbd>X</kbd> link – tmsimont > C:\Users\...\AppData\Local\Microsoft\Windows\WinX\Group3 and re-create it colors, available. If in doubt, you can copy the .lnk files from C:\Users\Default\AppData\Local\Microsoft\Windows\WinX\Group3 02 - Command Prompt.lnk then it goes back to the stupid boring black/white colors... If I rename it back to 01-2 - Command Prompt.lnk, 02 - Command Prompt- (01 is the Admin one):C:\>dir /b %LOCALAPPDATA%\Microsoft\Windows\WinX\Group3\*command*.* HKCU\Console (only) to the .lnk
- 01 - Command Prompt.lnk
- 02 - Command Prompt.lnk C:\Users\<user>\AppData\Local\Microsoft\Windows\WinX\Group3 Properties, .lnk cmd 02 - Command Prompt.lnk LOCALAPPDATA%\Microsoft\Windows\WinX\Group3\.desktop.ini file – tmsimont Feb 15 '16 at 23:25 user>\AppData\Local\Microsoft\Windows user>\AppData\Local\Microsoft\Windows\.\Caches\{AFBF91A-.......}.....db -- .db file. – tmsimont Feb 15 '16 at 23:48 HKEY_CURRENT_USER\Console HKCU\Console \registry keys:\ Options, Font, Layout and Colours).%LOCALAPPDATA%\Microsoft\Windows\WinX\Group3==> dir /B "%LOCALAPPDATA%\Microsoft\Windows\WinX\Group3"|find /i "Command"
- 01 - Command Prompt.lnk
- 02 - Command Prompt.lnk
- ==> reg query HKCU\Console |find /I "\Console" |find /V /I "PowerShell"
- HKEY_CURRENT_USER\Console
- HKEY_CURRENT_USER\Console\%SystemRoot%_System32_cmd.exe
- HKEY_CURRENT_USER\Console\01 - Command Prompt
- HKEY_CURRENT_USER\Console\02 - Command Prompt
- HKEY_CURRENT_USER\Console\Command Prompt
- HKEY_CURRENT_USER\Console\Command Prompt X
- ==>HKCU\Console%SystemRoot%_System32_cmd.exe: WinKey+rcmd /D or (not sure) WinKeycmd
- 01 - Command Prompt: WinKey+xCommand Prompt (Admin)
- 02 - Command Prompt: WinKey+xCommand Prompt Command Prompt: (WinKeyCommand Prompt) Command Prompt X:...> Windows 2000 Registry> Reference HKEY_CURRENT_USER > Console > HKCU\Console > console-window-name subkey are the same as the entries in the Console key.>...>Note Image Note...
- The console-window-name subkey does not appear unless the current user has changed the properties of the command window...
- The console-window-name subkey is a variable representing the subkeys under the Console key. It does not actually appear in the registry. This variable subkey displays information that is common to the subkeys in the Console key...>HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console/\HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console directory.
- Key Description and value
- HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\ConsoleDisplaySettings\NavigationPaneExpanded The navigation pane is expanded when the value is set to 1 and not expanded when the value is set to 0.
- HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\ConsoleDisplaySettings\NavigationPaneWidth Specifies the navigation pane width, limited to display resolution.
- HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\ConsoleDisplaySettings\TasksPaneExpanded The Tasks pane is expanded when the value is set to 1, and not expanded when the value is set to 0.
- HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\ConsoleDisplaySettings\NaN Specifies the Tasks pane width, limited to display resolution.
- HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\ConsoleDisplaySettings\ForceHighContrast High Contrast is enabled when the value is set to 1, and not enabled when the value is set to 0.
- HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\ConsoleWindowSettings\IsConsoleMaximized The Service Manager console is maximized when the value is set to 1, and not maximized when the value is set to 0.
- HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\ConsoleWindowSettings\ConsoleLocation\X Specifies the top left corner of the Service Manager console horizontal coordinate.
- HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\ConsoleWindowSettings\ConsoleLocation\Y Specifies the bottom left corner of the Service Manager console vertical coordinate.
- HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\ConsoleWindowSettings\ConsoleSize\Height Specifies the height of the Service Manager console, limited to display resolution.
- HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\ConsoleWindowSettings\ConsoleSize\Width Specifies the width of the Service Manager console, limited to display resolution.
- HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\SmConsoleDisplaySettings\NavigationPaneVisible The Service Manager console navigation pane is visible when the value is set to 1 and hidden when the value is set to 0.
- HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\SmConsoleDisplaySettings\TasksPaneVisible The Service Manager consoleTasks pane is visible when set to 1 and hidden when the value is set to 0.
- HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\SmConsoleDisplaySettings\ SelectedWunderBarIndex Depending on the value, the corresponding workspace is selected in the Service Manager console. Administration = 0, Library = 1, Work Items = 2, Configuration Items = 3, Data Warehouse = 4, Reporting = 5. Values higher than 5 correspond to any custom workspaces that are added to the Service Manager console.
- HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\SmConsoleDisplaySettings\NavigationModelNodeLocation The value for the key is the last view that the user selected before closing the Service Manager console, so that when the Service Manager console reopens, it reopens in this view. msscnav://root/Windows/Window/ConsoleDisplay/Folder.f837da16-dc5d-7a25-1b48-c62eb5965806/Folder.8afcc5db-910c-35a0-700f-fd9a94b4169b/View.fbf52403-7ce7-05c4-0ca9-7c61030e5f57 is an example value.
- HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\ViewDisplaySettings\ DetailPaneHeight Specifies the height of the details pane.
- HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\ViewDisplaySettings\ DetailPaneExpanded The Service Manager console details pane is visible when the value is set to 1 and hidden when the value is set to 0.
- HKEY_CURRENT_USER\Software\Microsoft\System Center<version>\Service Manager\Console\User Settings\ SDKServiceMachine Specifies the name of the server that the Service Manager console is connected to.HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\System Center<version>\Common\GroupCalcPollingIntervalMilliseconds
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\System Center<version>
- rootinstall/conf/ams.ini rootinstall/conf/ams.ini configuration file SERVER.LICENSEINFO = <MXL815025Y> • applications/ • conf/ • licenses/ • modules/ • webroot/ • Apache2.2/conf /unzip AdobeMediaServerStarter_5_x64_LS1_All.zip
- cd linux
- tar -xvzf AdobeMediaServer_5_LS1_linux64.tar.gz
- cd AMS_5_0_1_r1076/
- ln -s /lib64/libcap.so.2 libcap.so.1
- sudo ./installAMS
- Accept the defaults and it will put your server underneath /opt/adobe/ams/
- test http://localhost:80. RTMP streaming / HTTP Live Streaming /TMP streaming after verifying the installation is correct stop your server and relink the libcap library
- cd /opt/adobe/ams
- sudo ./server stop
- sudo ln -s /lib64/libcap.so.2 libcap.so.1
- sudo ./server start
- Configuring AMS to work with HTTP Live Streaming
- /AMS/ ams.ini. Note that if you keep your streams somewhere else, you'll have to symlink webroot/avalon to it, the built-in Apache always looks for content under webroot/avalon.
- ams.ini
- ...
- AVALON.STREAM_PATH = <amsdir>/webroot/avalon
- AVALON.AUTH_URL = http://avalon.domain.edu/authorize
- Download these files and put them in <amsdir>/applications/avalon/
- Note...> Add the following to the end of <amsdir>/Apache2.2/conf/httpd.conf...>
- httpd.conf
- Include conf/avalon.conf
- Create <amsdir>/Apache2.2/conf/avalon.conf with this content.
- avalon.conf
- <IfModule mod_disk_cache.c>
- CacheEnable disk /avalon
- </IfModule>
- RewriteEngine on
- RewriteLock /tmp/avalon_rewrite_lock
- RewriteMap avalon_auth prg:/usr/local/sbin/avalon_auth
- RewriteCond %{QUERY_STRING} audio-only=true
- RewriteCond %{QUERY_STRING} codec=aac
- RewriteCond %{QUERY_STRING} token=([^&]+)
- RewriteRule ^/avalon/(.+).m3u8$ /avalon/audio-only-aac/$1.m3u8?token=%1 [R=301,L]
- RewriteCond %{QUERY_STRING} audio-only=true
- RewriteCond %{QUERY_STRING} token=([^&]+)
- RewriteRule ^/avalon/(.+).m3u8$ /avalon/audio-only/$1.m3u8?token=%1 [R=301,L]
- RewriteCond %{QUERY_STRING} token=([^&]+)
- RewriteRule ^/avalon ${avalon_auth:%{REQUEST_URI}?token=%1}
- RewriteCond %{REQUEST_URI} !(.+).ts$
- RewriteCond %{QUERY_STRING} !token=
- RewriteRule ^/avalon - [F]
- RewriteRule ^/avalon/forbidden - [F]
- <Location /avalon>
- HLSHttpStreamingEnabled true
- HLSMediaFileDuration 2000
- HttpStreamingContentPath "../webroot/avalon"
- HLSFmsDirPath ".."
- HLSJITConfAllowed true
- HLSM3U8MaxAge 86400
- HLSTSSegmentMaxAge 86400
- HLSMetaMaxAge 3600
- Options -Indexes FollowSymLinks
- </Location>
- Create the file /usr/local/sbin/avalon_auth with the following content and replace <ams_dir> with the value from above..>
- #!/bin/bash
- if [ -z "$AUTH_URL" ]; then
- AUTH_URL=`grep AVALON.AUTH_URL <ams_dir>/conf/ams.ini | cut -d '=' -f 2 | sed 's/^ *//g'`
- fi
- while read uri; do
- saveIFS=$IFS
- IFS='=&'
- parm=($uri)
- IFS=$saveIFS
- curl_cmd="curl -s ${AUTH_URL}.txt?token=${parm[1]}"
- raw=`${curl_cmd}`
- result='/avalon/forbidden'
- for seg in $raw; do
- valid=`echo ${uri} | grep /${seg}`
- if [ -n "${valid}" ] && [ -n "${seg}" ]; then
- result=$uri
- break
- fi
- done
- echo $result
- done
- Configuring AMS..>
- Disable built-in Apache..>
- ams.ini
- ...
- SERVER.HTTPD_ENABLED = false
- Add the following to /etc/httpd/conf/httpd.conf
- httpd.conf
- ...
- Listen 8134
- ...
- LoadModule hlshttp_module modules/mod_hlshttp.so
- #
- # Configuration for Adobe Media Server's HTTP Live Streaming
- #
- <IfModule hlshttp_module>
- <Location /hls-vod>
- HLSHttpStreamingEnabled true
- HLSMediaFileDuration 8000
- HttpStreamingContentPath "/var/avalon/rtmp_streams"
- HLSFmsDirPath "/srv/adobe/ams"
- Options -Indexes FollowSymLinks
- </Location>
- </IfModule>
- Create avalon-auth.conf in /etc/httpd/conf.d/
- <IfModule mod_disk_cache.c>
- CacheEnable disk /avalon
- </IfModule>
- RewriteCond %{QUERY_STRING} audio-only=true
- RewriteCond %{QUERY_STRING} codec=aac
- RewriteCond %{QUERY_STRING} token=([^&]+)
- RewriteRule ^/avalon/(.+).m3u8$ /avalon/audio-only-aac/$1.m3u8?token=%1 [R=301,L]
- RewriteCond %{QUERY_STRING} audio-only=true
- RewriteCond %{QUERY_STRING} token=([^&]+)
- RewriteRule ^/avalon/(.+).m3u8$ /avalon/audio-only/$1.m3u8?token=%1 [R=301,L]
- RewriteCond %{QUERY_STRING} token=([^&]+)
- RewriteRule ^/avalon ${avalon_auth:%{REQUEST_URI}?token=%1}
- RewriteCond %{REQUEST_URI} !(.+).ts$
- RewriteCond %{QUERY_STRING} !token=
- RewriteRule ^/avalon - [F]
- RewriteRule ^/avalon/forbidden - [F]
- <Location /avalon>
- HLSHttpStreamingEnabled true
- HLSMediaFileDuration 2000
- HttpStreamingContentPath "/srv/avalon/rtmp_streams"
- HLSFmsDirPath "/srv/adobe/ams"
- HLSJITConfAllowed true
- HLSM3U8MaxAge 86400
- HLSTSSegmentMaxAge 86400
- HLSMetaMaxAge 3600
- Options -Indexes FollowSymLinks
- </Location>
- Create mod_rewrite.conf in /etc/httpd/conf.d/.
- RewriteEngine on
- RewriteLock /tmp/avalon_rewrite_lock
- RewriteMap avalon_auth prg:/usr/local/sbin/avalon_auth
- If using VirtualHost, you'll want to enable RewriteEngine
- <VirtualHost>
- RewriteEngine on
- RewriteOptions Inherit
- ...
- </VirtualHost>
- Copy avalon_auth to /usr/local/sbin/avalon_auth
- Copy these files from <amsdir>/Apache2.2/modules/ to /etc/httpd/modules/
- libadbe_dme.so
- libadbe_license.so
- libasneu.so.1
- libexpat.so.0
- libhds.so
- mod_hlshttp.so..>"test-run.exe..>
- <Application>
- <JSEngine>
- <ApplicationObject>
- <config>
- <avalonAuthUrl>${AVALON.AUTH_URL}</avalonAuthUrl>
- </config>
- </ApplicationObject>
- </JSEngine>
- <StreamManager>
- <VirtualDirectory>
- <!-- Specifies application specific virtual directory mapping for recorded streams. -->
- <Streams>/;${AVALON.STREAM_PATH}</Streams>
- </VirtualDirectory>
- </StreamManager>
- <!-- Settings specific to runtime script engine memory -->
- <ScriptEngine>
- <!-- This specifies the max size (Kb.) the runtime can grow to before -->
- <!-- garbage collection is performed. -->
- <RuntimeSize>20480</RuntimeSize>
- </ScriptEngine>
- <Client>
- <Bandwidth>
- <!-- Specified in bytes/sec -->
- <ServerToClient>2500000</ServerToClient>
- <!-- Specified in bytes/sec -->
- <ClientToServer>2500000</ClientToServer>
- </Bandwidth>
- <MsgQueue>
- <Live>
- <!-- Drop live audio if audio q exceeds time specified. time in milliseconds -->
- <MaxAudioLatency>2000</MaxAudioLatency>
- <!-- Default buffer length in millisecond for live audio and video queue. -->
- <MinBufferTime>2000</MinBufferTime>
- </Live>
- <Recorded>
- <!-- Default buffer length in millisecond for live audio and video, value cannot be set below this by Flash player. -->
- <MinBufferTime>2000</MinBufferTime>
- </Recorded>
- <Server>
- <!-- Ratio of the buffer length used by server side stream -->
- <!-- to live buffer. The value is between 0 and 1. To -->
- <!-- avoid break up of audio, the ratio should not be more -->
- <!-- than 0.5 of the live buffer. -->
- <BufferRatio>0.5</BufferRatio>
- </Server>
- </MsgQueue>
- </Client>
- </Application>/*
- * Avalon Media System authenticated RTMP streaming application for
- * Adobe Media Server.
- *
- * Add the following keys to your <ams_install_home>/conf/ams.ini:
- * AVALON.AUTH_URL = http://localhost/authorize
- * AVALON.STREAM_PATH = /opt/adobe/ams/webroot/avalon
- */
- application.onAppStart = function()
- {
- // Logging
- trace("Starting Avalon Streaming app...");
- this.avalonAuthUrl = application.config.avalonAuthUrl;
- trace("Requests will be authenticated against " + this.avalonAuthUrl);
- trace("...loading completed.");
- }
- application.onConnect = function( p_client, p_autoSenseBW )
- {
- //Add security here
- p_client.writeAccess = ""; // prevents creating shared object or live streams.
- p_client.readAccess = ""; // no access by default
- var xhttp = new LoadVars();
- xhttp.decode(p_client.uri.split("?")[1]);
- if (!xhttp.hasOwnProperty('token')) {
- trace('Missing token in request.');
- application.rejectConnection(p_client);
- return false;
- }
- var authed = false;
- xhttp.onHTTPStatus = function(status) {
- trace('Received ' + status);
- switch (status) {
- case 202:
- trace("Authorized")
- authed = true;
- break;
- case 403:
- trace("Unauthorized")
- authed = false;
- break;
- };
- }
- xhttp.onLoad = function() {
- if (authed) {
- // grant access to the specific mediapackage directories authorized
- p_client.readAccess = xhttp['authorized'].replace(" ",";");
- }
- // Accept the connection no matter what; the denial will happen when the stream is requested
- application.acceptConnection(p_client);
- if (p_client.readAccess.length > 0) {
- trace("Client can read " + p_client.readAccess);
- } else {
- trace("Client cannot read anything");
- }
- if (p_autoSenseBW)
- p_client.checkBandwidth();
- else
- p_client.call("onBWDone");
- }
- var authUrl = application.avalonAuthUrl;
- trace('Authorizing against ' + authUrl);
- xhttp.addRequestHeader('accept','application/x-www-urlform-encoded')
- xhttp.sendAndLoad(authUrl,xhttp);
- return null;
- }#!/bin/bash
- if [ -z "$AUTH_URL" ]; then
- AUTH_URL=`grep AVALON.AUTH_URL /opt/adobe/ams/conf/ams.ini | cut -d '=' -f 2 | sed 's/^ *//g'`
- fi
- while read uri; do
- saveIFS=$IFS
- IFS='=&'
- parm=($uri)
- IFS=$saveIFS
- curl_cmd="curl -s ${AUTH_URL}.txt?token=${parm[1]}"
- raw=`${curl_cmd}`
- result='/avalon/forbidden'
- for seg in $raw; do
- valid=`echo ${uri} | grep /${seg}`
- if [ -n "${valid}" ] && [ -n "${seg}" ]; then
- result=$uri
- break
- fi
- done
- echo $result
- done "[]"
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
- 1. Definitions.
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
- END OF TERMS AND CONDITIONS
- APPENDIX: How to apply the Apache License to your work.
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
- "[]" Copyright [2018] "[]" [james greeno of copyright owner]
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- C:\Program Files (x86)\Adobe\Flash Media Server 3.5\applications\vod\media\sample.mp4Server: rtmp://localhost/vod/_definst_
- Stream: mp4:sample.mp4 rtmp://localhost:1935/vod/_definst_"/> </head ... if you have a Stream Name Group ...
- "[]" http://www.apache.org/licenses/LICENSE-2.0..>exit../>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement