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

getting started w/ streaming


i have a Premium account w/ 1 uploaded video. i want to stream to iOS, Android and desktop browsers. the player is hosted @ JW. i can play a video on all platforms when i do this:

jwplayer('vodplayer').setup({
file: '//content.jwplatform.com/videos/F2JXXX.mp4',
image: '//content.jwplatform.com/thumbs/F2JXXX.jpg'
});

my understanding is that provides a progressive download for the single resolution i picked. what i want is to stream w/ adaptive bitrates. i have created a m3u8 file and hosted it on my own server. part of it looks like this:

#EXTM3U

#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1217000,RESOLUTION=1280x720
https://content.jwplatform.com/videos/F2JXXX-8mHlxrXX.m3u8

#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=824000,RESOLUTION=896x504
https://content.jwplatform.com/videos/F2JXXX-t2iG4XXc.m3u8

my setup now looks like this:

jwplayer('vodplayer').setup({
file: 'assets/manifests/video.m3u8',
image: '//content.jwplatform.com/thumbs/F2JXXX.jpg',
hlshtml: true
});

When i play in desktop Safari, i get a live stream and am unable to jump around (seek?) as i could with the mp4. It does not play in desktop Chrome at all: "Cannot load M3U8: Invalid manifest file".

if i grab one of the lines from the manifest file, e.g. https://content.jwplatform.com/videos/F2JXXX-8mHlxrXX.m3u8, it not only plays fine in desktop Chrome, but in both that and desktop Safari, it seeks as the mp4 did.

What am i doing wrong?

5 Community Answers

Donni

JW Player Support Agent  
0 rated :

We generate HLS streams for you. This is the URL scheme //content.jwplatform.com/manifests/mediaID.m3u8

Let me know if that helps,
Donni

v...

User  
0 rated :

thank you, i'm glad that is available. it will save me a ton of time.

i implemented the change, and it works well on desktop Safari and iOS Safari. on desktop Chrome (OSX 10.11.4, Chrome v51), it is working only intermittently.

right now, it is failing w/ this in the console:

Error playing media: GRcl3PUJ.js:1
MediaError.code: 4
http://content.jwplatform.com/manifests/F2JlIgPI.m3u8

undefined:1 Uncaught (in promise) DOMException: Failed to load because no supported source was found.

Donni

JW Player Support Agent  
0 rated :

Can you provide a link to a reproduction page so I can inspect your embed code?

v...

User  
0 rated :

i can provide such a link (and instructions) privately, i don't want to publish it. how can i provide it privately?

Donni

JW Player Support Agent  
0 rated :

As a Premium Subscriber, you are able to get support via e-mail. Log into your JW Dashboard and click on SUPPORT > CONTACT SUPPORT at the top right of the page. Reference ticket #84736.

This question has received the maximum number of answers.