Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

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

7 Community Answers

Todd

JW Player Support Agent  
0 rated :

You may need to configure your secureToken as documented at https://support.jwplayer.com/customer/en/portal/articles/1430358-using-rtmp-streaming
Please also check with Wowza to see if this is required for their tokens.

var playerInstance = jwplayer("myElement");
playerInstance.setup({
	file: "rtmp://example.com/vod/mp4:myVideo.mp4",
	height: 360,
	width: 640
	image: "/assets/myVideo.jpg",
	rtmp: {
		securetoken: "Testif093n203a"
	}
});

a...

User  
0 rated :

Thanks for reply Todd ,

I have tried the above solution but still video not playing.

I have use secureToken without encoding and with base64 url safe encoding but not succeed.

Todd

JW Player Support Agent  
0 rated :

Your best option at this point is to check with Wowza. We are not aware of any other configuration changes that need to be made in our player for secureTokens.

ankit.patidar

User  
0 rated :

I am trying for secure streaming with https://github.com/jwplayer/jwplayer

I am using Ubuntu 14.04 LTS and Adobe AIR SDK not available for ubuntu.

Todd

JW Player Support Agent  
0 rated :

Have you tried with a cloud-hosted player or the self-hosted player from a JW Player account? I am not sure if the open source version of our player supports secure streaming, but I will check with our engineers and get back to you. You can also ask the engineers directing via GitHub.

a...

User  
0 rated :

I have try it with another way .

I have downloaded the source code for jw player from https://github.com/jwplayer/jwplayer#build-instructions

update my secure token in source code and try to compile but getting below error:

Warning: To compile ActionScript, you must set environment variable $AIR_HOME or $FLEX_HOME for this task to locate mxmlc. Used --force, continuing.



Todd

JW Player Support Agent  
0 rated :

We do not support the GitHub versions of the player. My suggestion would be to use a cloud-hosted player from your JW Player account dashboard.

Please see our basic player embed document at http://support.jwplayer.com/customer/portal/articles/1406723-mp4-video-embed and our RTMP secure token code example at https://support.jwplayer.com/customer/en/portal/articles/1430358-using-rtmp-streaming for more details.

This question has received the maximum number of answers.