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

How do you play VoD flv file with a security token in JW Player?


I have a flash VoD file I want to play on an NGINX RTMP media server
Video plays fine in VLC

I tried playing it in JW Player with the two alternatives below. None work, what am I doing wrong?

jwplayer("player").setup({
primary: 'flash',
type: 'rtmp',
streamer: "rtmp://usmedia3.test.tv/vod/?t=4B6DFA1DD3114A0B8BEEA01DC433C1A9",
file: "flv:v_google-1421929816.flv",
image: "{{ MEDIA_URL }}{{ video.thumbnail }}",
width: "100%",
aspectratio: "16:9",
});

jwplayer("myElement").setup({
file: "rtmp://usmedia3.test.tv/vod/flv:v_google-1421929816.flv",
height: 360,
//image: "/assets/myVideo.jpg",
rtmp: {
securetoken: "4B6DFA1DD3114A0B8BEEA01DC433C1A9"
},
width: 640
});

4 Community Answers

Cooper Reid

JW Player Support Agent  
0 rated :

It looks like your second method is the right syntax. Are you able to debug the request coming to your server to see if that securetoken param is being sent?
http://support.jwplayer.com/customer/portal/articles/1430358-using-rtmp-streaming
-Cooper

goldengoose182

User  
0 rated :

Yes, I can play the VoD files with no problem on these 2 online players:
http://www.jwplayer.com/wizard/
http://www.ideaweb.it/eng/player.cfm

I cannot play the VoD flv file on your JW online wizard: www.jwplayer.com/wizard

goldengoose182

User  
0 rated :

Or maybe I formatted the rtmp path and port wrong in your online wizzard field. Can you tell me how I must format the rtmp path to play the above VoD file on your online wizard?

http://www.jwplayer.com/wizard/

Cooper Reid

JW Player Support Agent  
0 rated :

You don’t need two separate parameters, you can simply use the file parameter:
file: “rtmp://usmedia3.test.tv/vod/flv:v_google-1421929816.flv?t=4B6DFA1DD3114A0B8BEEA01DC433C1A9”
-Cooper

This question has received the maximum number of answers.