Attention: You must use the secure RTMPE protocol along with SecureToken when connecting to Wowza to fully protect content from the latest “leech” program:
Below are the instruction to add SecureToken protection to JW player. As of JW Player 4.1 SecureToken is now built into the player (thank you Jeroen!!!).
Download and install Wowza Pro 1.7.2 or greater
Install the Wowza Pro SecureToken example by double clicking on [wowza-pro-install-dir]/examples/SecureToken/install.sh (this will setup the Wowza Pro application securetoken with a secureTokenSharedSecret of #ed%h0#w@1)
Start Wowza Pro
Download the JW player 4 for Flash source code from here: JW Player for Flash (JW Player is commercial software).
Edit [jw-source-code]/com/jeroenwijering/models/RTMPModel.as and enter the secure token value (around line 186):
from: TEA.decrypt(evt.info.secureToken,model.config['token'])); to: TEA.decrypt(evt.info.secureToken,"#ed%h0#w@1"));
Open [jw-source-code]/player.fla in Flash CS3 and select File: Publish to generate a new [jw-source-code]/player.swf file
Edit [jw-source-code]/readme.html and change the flashvars param in the script section (around line 60):
Where [wowzapro-ip-address] is the ip address of the server running Wowza Pro. Note the RTMPE protocol.
Note: Once you have it working with the example shared secret, you can update the shared secret to your own value by following these steps:
- Edit [wowza-pro-install-dir]/conf/securetoken/Application.xml and change the secureTokenSharedSecret property to the new value and restart Wowza Pro_- Edit [jw-source-code]/com/jeroenwijering/models/RTMPModel.as and change the string passed to the secureTokenResponse callback to the same value as above and use Flash CS to re-publish the player.swf file_-