I want to create website with audio streaming. For this I am using Wowza streaming engine.
I have searched for solution but not getting the right direction. I have intergrate:- *jw player *flow Player *strobe player without security but I want secure streaming, For these I have read the https://streamtoolbox.com/wowza-security-and-stream-protection but not getting the solution.
I have used secureToken mechanism to secure RTMP streams and that I have user jw7.3.6 player.below I have mentioned code.
<?php
function base64url_encode($data) {
return rtrim(strtr(base64_encode($data), '+/', '-_'), '=');
}
$hash = base64url_encode('Shared Secret');//created from WOWZA streaming engine brower based panel Application -> vod -> playback sercurity ->edit
?>
Simple RTMP example
<br>
<div id="player"></div>
<script>
jwplayer("player").setup({
sources: [{
file: "rtmp://[my wowza ip]:1935/vod/sample.mp4?wowzatokenhash=<?php echo $hash; ?>"
}],
height: 360,
width: 640
});
</script>
but video not played.
For secure streaming in flow player i have used http://flash.flowplayer.org/demos/plugins/streaming/secure-wowza.html#html but it requires to compile the token inside the plugin but I did not find any way for this.
please help.
Thanks