
Secure Streaming useing secureToken mechanism in Wowza streamin engine
I have used jw 7.3.6 without secure string and it is working but when i use secureToken for secure streaming then its not working.Below i have mentioned sample 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>
please help