Sam Broadcaster Statistics - How to configure

Overview
The MediaCP Wowza Edition supports the Statistic relay of SAM Broadcaster. (Only available from version 2.1.5.6 onwards)

Server Configuration & Prerequisites
SAM Broadcaster looks for the connectionscount.xml at the base of the domain name.
For example: http://yourdomain.com/connectionscount.xml

If you have your control panel installed at http://yourdomain.com/mediacp/ then this will not work.
You will need to configure a .htaccess file at the base of your website that redirects the connectionscount.xml to your mediacp
Linux .htaccess Configuration
1. Login via SSH to your server and cd to your web directory (cd /var/www/html for example)
2. Type "nano .htaccess" and enter the following:
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^connectioncounts\.xml$ mediacp/system/mpmdigest.php$1 [L]
</IfModule>
3. Save the file and that is it - you can now use SAM Broadcaster Statistic Relay

If this does not work, you need to check your httpd.conf and make sure AllowOverride is set to ALL then restart apache.
Windows .htaccess Configuration
1. Login via Remote Desktop, open File Explorer and navigate to your MediaCP directory.
2. Right click and copy the .htaccess and paste it in the base of your website directory.
3. Open the .htaccess in wordpad and paste the following:
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^connectioncounts\.xml$ mediacp/system/mpmdigest.php$1 [L]
</IfModule>
4. Save the file and that is it - you can now use SAM Broadcaster Statistic Relay
SAM Broadcaster Statistics Relay Usage
Please Note: This will only work while the service is online and broadcasting.
1. Start SAM Broadcaster.
2. From the Main Menu select Window and select Statistics Relays if it is not already ticked.
3. Under the "Statistics Relays" click on the "+" (Plus) symbol.
4. Select Wowza statistic relay and press OK.
5. Configuration
- Server Version is "v2"
- Username is your Publish Point Name in the control panel.
- Password is the password configured for the service.
- Host will be the same domain name you use for the control panel
- Stats Port is the same port you use for the control panel, in most cases this is 80.
6. Select the Stream box and your service should drop down in the selection.
  • 10 Users Found This Useful
Was this answer helpful?

Related Articles

Troubleshooting Facebook Stream Targets (NGINX-RTMP)

Troubleshooting steps for facebook stream target disconnect. Check abuse log to ensure no...

Stream Target is not working or stuck on Starting

If the status is stuck on Starting it likely means that Wowza is having difficulties connecting...

Do i need to reinstall Wowza Media Server?

Our installation software will install a fresh version of the very latest Wowza Media Server...

iPhone Video & Audio Streaming

For Audio/Video Streaming to an iPhone, we find a Baseline 3.1 (not lower) profile is required....

Upgrading Wowza Media Server

It is important to follow our steps to Upgrading Wowza Media Server to avoid problems. Please...