![](https://secure.gravatar.com/avatar/cc86810fe76c3d3a03fc1f3b4f4f0b37?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
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
});