
JWPlayer 6 and private RTMP streaming from Cloudfront
With JWPlayer 5 you load a new video stream like this:
bc.. jwplayer(playerID).load({ file: 'myfile.mp4?[longboringprivatequerystringstuff]', provider: "rtmp", streamer: "rtmp://abc123etcetcetc.cloudfront.net/cfx/st" }).play();
In JWPlayer 6 this gives the following error:
Error loading media:
File not found
How should I change the code so that I can play RTMP stream in JW Player 6?
The documentation implies that you only need to specify the file as everything is worked out from the file parameter - this needs to be the full URL now.
Doing this also hasn't worked for me:
bc.. jwplayer(playerID).load({ file: 'rtmp://abc123etcetcetc.cloudfront.net/cfx/st/mp4:myfile.mp4?[longboringprivatequerystringstuff]' }).play();
In fact - doing this causes the player to attempt an HTTP request of the URL rather than splitting it up and attempting to stream.
Unfortunately this is only running on my local machine and the content is sensitive so I can't provide any online demos.
Thanks
Chris