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

Fallback Code...m3u8 to SWF/Flash to webm to ogv


I need code that will play JW video (m3u8) but, if browser is not HTML will fall back to SWF/Flash. And if user is on Android will show webm ogv.

Please anyhelp would be appreciated.

i have commercial JW

3 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi, there.

When you are using a M3U8 file (HLS stream), our player will play it in HTML5 where it can and, if it can’t, it will use Flash Player to render the content. So, I believe that will give you what you are looking for in terms of falling back to Flash.

As for providing a different stream for Android, you would have to create some custom JavaScript to check the user-agent of the browser and load a different file if that browser is Chrome for Android. It’s important to realize, however, that HLS streams are natively supported on Android, so I’m not sure it would be necessary to show the WebM file if you are already providing a HLS stream for other browsers.

You can read more about the browsers and devices we support, along with the media formats supported in those browsers and devices, on the following support articles:
Browser & Device Reference
Media Format Reference

Please let me know if you need any more help or have any other questions.

Thank you!

lmd5

User  
0 rated :

We are having issues with 7.3 and swf not maintaining the information on the video location when we render the video on a page that utilizes show/hide logic such as an accordion or tabs. When the page is first rendered the videos are ok. But when we hide them in the accordion, and then try to view the video on the accordion show, the video location is lost.

Alex

JW Player Support Agent  
0 rated :

Hi, there.

Providing assistance with embedding our player in custom elements, such as modals or accordions, is outside of the scope of support we can provide. I will suggest that you make sure, however, that collapsing the accordion is not removing the player from the DOM, but simply hiding it.

Please let me know if you need any more help or have any other questions.

Thank you!

This question has received the maximum number of answers.