Setting up Wowza/RED5/Mod_h264:
Wowza/RED5/Mod_h264 support is already coded into 3.2 and 4.0 templates. Here's how to configure it.
Step 1) Have your host set up a Wowza/RED5 URL such as rtmp://members.yoursite.com/foldername/ where members.yoursite.com is the domain you wish to host your Wowza/RED5 server and foldername is the folder you want set up to server the content.
Your host should set this up so that /foldername/ goes maps to the document root of your website. Do NOT have them link directly to your /content/upload/ or /content/ directory or else your streaming will not work. Also, if your members area is set up within a subfolder (e.g: yoursite.com/members/), have them link to the folder above your members folder.
Step 2) On the Admin Panel, click Plug-Ins. Under Template Fields, click Manage.
Step 3a) Follow these steps if you're using Wowza or RED5
Under the Flash Player Settings, the following variables that need changing here: a) flashmoviestreamer: Change this value to your wowza/RED5 URL (e.g: rtmp://mysite.com/folder/). b) flashmovietype: Change this value to rtmp. c) flashmp4streamer: Change this value to your wowza/RED5 URL (e.g: rtmp://mysite.com/folder/). d) flashmp4type: Change this value to rtmp.
Step 3b) Follow these steps if you're using mod_h264
Under the Flash Player Settings, the following variables that need changing here: a) flashmp4streamer: Change this value so that it is blank. b) flashmp4type: Change this value to lighttpd.
Customizing Flash Player Appearance:
Within Plugins -> Template Fields -> Manage -> Flash Player Settings, the following settings affect the look and feel of the flash player.
flashvarsfrontcolor: Color of all icons and texts in the controlbar and playlist. flashvarsbackcolor: Background color of the controlbar and playlist. This is white with the default skin. flashvarslightcolor: Color of an icon or text when you rollover it with the mouse. flashvarsscreencolor: Background color of the display
Content Protection:
Since Wowza/RED5 is a RTMP media delivery server, it is no longer necessary to make flv / mp4 files available through your web server. You can specifically block out file types by adding the following to your .htaccess file:
<filesMatch "\.(mp4|flv)$"> deny from all </filesMatch>
This will prevent these type of files from being downloadable within your members area.
Protect Wowza Stream
Elevated X supports protection of the Wowza Stream like so:
rtmp://mysites.com/members/?key=<?php . md5($_SERVER['REMOTE_ADDR'] . "MY_SECRET_KEY") ?>
Here's how you can set this up:
1) Your flashmp4streamer will look like this:
rtmp://mysites.com/members/?key=##WOWZASECRETKEY##
2) Within cmsinclude.ini.php, you'll need to add this line:
WOWZASECRETKEY="MY_SECRET_KEY"
In this case, MY_SECRET_KEY should be replaced with the secret key your host has set up.
|