I'm using JW Player to display videos. My videos are uploaded directly onto JW Player server and it returns a video key for each one through BOTR API (Bits on the Run) that belongs to JW service.
Here is how I display a video with video key
<iframe src="http://content.bitsontherun.com/players/myvideokey.js">
That way video will NOT be responsive although I tried many ways (designers.hubspot.com/docs/snippets/responsive/how-to-make-a-youtube-or-other-iframe-video-responsive).
Then I follow jw player instruction: http://www.jwplayer.com/blog/new-in-jw-player-responsive-design/ and it works like a charm but not all keys.
<script type="text/javascript">
jwplayer("container").setup({
file: "http://content.jwplatform.com/videos/myvideokey.mp4",
width: "100%",
aspectratio: "16:9",
autostart: true,
repeat: true
});
</script>
My problem is that: Some of my video keys work but not others. That means some keys only work with iframe way but in the second way it shows this error "Video cannot be played" (it does not show "video not found").
All my video keys are in only one BOTR API account.
Great thanks to Ethan JWplayer and Andrew. I finally find out a way to solve the problem.
In setting page of my JWplayer reseller accounts, "secure embed and download video" option is selected. That's why I cannot access these videos by that way. I need to add signature and expiring time right after file url to make it work.
Here is an example: http://dashboard.jwplatform.com/videos/nPripu9l.mp4?exp=1271760610&sig=b59b91370f4faf4815b6736db10e5041
This article will solve the problem:
http://support.jwplayer.com/customer/portal/articles/1433647-token-signing-with-jw-platform