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

HLS VS HTML5 JW Player 6.9 Release Candidate


Hello. I received JW Player 6.9 Release Candidate. I installed it. But I get FLASH player still go on by default instead of HTML5. How do I make HTML5 to start instead of FLASH?

Page with a player on my site is this one here:
http://www.emoe.tv/google-tv/player.php?id=1596&type=recorded&alias=&date=1596&offset=420

Code is as follows:
<script type="text/javascript">
jwplayer("player6QVf7Mc6igor").setup({
autostart: true,
height: "100%",
width: "100%",
controls: false,
quality: true,
volume: 100,
stretching: "uniform",
playlist: [
{file: "http://64.62.164.140:1935/ortondemand/_definst_/mp4:ort/ort.stream-2014-6-22-9.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ortondemand/_definst_/mp4:ort/ort.stream-2014-6-22-10.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ortondemand/_definst_/mp4:ort/ort.stream-2014-6-22-11.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ortondemand/_definst_/mp4:ort/ort.stream-2014-6-22-12.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ortondemand/_definst_/mp4:ort/ort.stream-2014-6-22-13.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ortondemand/_definst_/mp4:ort/ort.stream-2014-6-22-14.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ortondemand/_definst_/mp4:ort/ort.stream-2014-6-22-15.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ortondemand/_definst_/mp4:ort/ort.stream-2014-6-22-16.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ortondemand/_definst_/mp4:ort/ort.stream-2014-6-22-17.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ortondemand/_definst_/mp4:ort/ort.stream-2014-6-22-18.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ortondemand/_definst_/mp4:ort/ort.stream-2014-6-22-19.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ortondemand/_definst_/mp4:ort/ort.stream-2014-6-22-20.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ortondemand/_definst_/mp4:ort/ort.stream-2014-6-22-21.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ortondemand/_definst_/mp4:ort/ort.stream-2014-6-22-22.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ortondemand/_definst_/mp4:ort/ort.stream-2014-6-22-23.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ortondemand/_definst_/mp4:ort/ort.stream-2014-6-23-0.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ortondemand/_definst_/mp4:ort/ort.stream-2014-6-23-1.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ortondemand/_definst_/mp4:ort/ort.stream-2014-6-23-2.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ortondemand/_definst_/mp4:ort/ort.stream-2014-6-23-3.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ortondemand/_definst_/mp4:ort/ort.stream-2014-6-23-4.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ortondemand/_definst_/mp4:ort/ort.stream-2014-6-23-5.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ortondemand/_definst_/mp4:ort/ort.stream-2014-6-23-6.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ortondemand/_definst_/mp4:ort/ort.stream-2014-6-23-7.mp4/playlist.m3u8"},
]



});


var executed = false;
jwplayer('player6QVf7Mc6igor').onPlay(function() {
if (!executed) {
executed = true;
var date = new Date();
var minutes = date.getMinutes();
var shift = minutes*60;
jwplayer('player6QVf7Mc6igor').seek(shift);
} });

</script>

17 Community Answers

info

User  
0 rated :

I tried to follow these instructions to force HTML5 to playback my playlist:
http://support.jwplayer.com/customer/portal/questions/6062373-force-html5-player

>>>> BUT URL ON THAT PAGE:
http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/18508/jw-embedder-modes
SIMPLY DOESN'T WORK.

Ethan Feldman

JW Player Support Agent  
0 rated :

If you are using HLS, it will only run on the desktop in HTML5 mode in Safari on OSX. HLS is not supported on desktop browsers in HTML5 <video> yet, other than in Safari (latest version) on OSX.

info

User  
0 rated :

Didn't you tell me that in JW Player 6.9 HLS was going to be supported on Android as well?

This is the post where I was told that:
http://support.jwplayer.com/customer/en/portal/questions/7362195-jwplayer-would-not-switch-to-the-next-file-in-playlist-?new=7362195

Ethan Feldman

JW Player Support Agent  
1 rated :

It will, but you need to add this to your setup:

androidhls: true,

;)

info

User  
0 rated :

Thank you. I tried, but still get error on Android:
"Error Loading Player. No playable sources found."

Page with a player. Try it on Android phone:
http://www.emoe.tv/google-tv/player.php?id=1596&type=recorded&alias=&date=1596&offset=420


Bellow is code of the player after I added "androidhls: true,":


<script type="text/javascript">
jwplayer("player6QVf7Mc6igor").setup({
autostart: true,
height: "100%",
width: "100%",
controls: false,
quality: true,
volume: 100,
androidhls: true,
stretching: "uniform",

modes: [
{ type: "html5" },
{ type: "flash", src: "player.swf" }
],

playlist: [
{file: "http://64.62.164.140:1935/ross1ondemand/_definst_/mp4:ross1/ross1.stream-2014-6-23-14.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ross1ondemand/_definst_/mp4:ross1/ross1.stream-2014-6-23-15.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ross1ondemand/_definst_/mp4:ross1/ross1.stream-2014-6-23-16.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ross1ondemand/_definst_/mp4:ross1/ross1.stream-2014-6-23-17.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ross1ondemand/_definst_/mp4:ross1/ross1.stream-2014-6-23-18.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ross1ondemand/_definst_/mp4:ross1/ross1.stream-2014-6-23-19.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ross1ondemand/_definst_/mp4:ross1/ross1.stream-2014-6-23-20.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ross1ondemand/_definst_/mp4:ross1/ross1.stream-2014-6-23-21.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ross1ondemand/_definst_/mp4:ross1/ross1.stream-2014-6-23-22.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ross1ondemand/_definst_/mp4:ross1/ross1.stream-2014-6-23-23.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ross1ondemand/_definst_/mp4:ross1/ross1.stream-2014-6-24-0.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ross1ondemand/_definst_/mp4:ross1/ross1.stream-2014-6-24-1.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ross1ondemand/_definst_/mp4:ross1/ross1.stream-2014-6-24-2.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ross1ondemand/_definst_/mp4:ross1/ross1.stream-2014-6-24-3.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ross1ondemand/_definst_/mp4:ross1/ross1.stream-2014-6-24-4.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ross1ondemand/_definst_/mp4:ross1/ross1.stream-2014-6-24-5.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ross1ondemand/_definst_/mp4:ross1/ross1.stream-2014-6-24-6.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ross1ondemand/_definst_/mp4:ross1/ross1.stream-2014-6-24-7.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ross1ondemand/_definst_/mp4:ross1/ross1.stream-2014-6-24-8.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ross1ondemand/_definst_/mp4:ross1/ross1.stream-2014-6-24-9.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ross1ondemand/_definst_/mp4:ross1/ross1.stream-2014-6-24-10.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ross1ondemand/_definst_/mp4:ross1/ross1.stream-2014-6-24-11.mp4/playlist.m3u8"},
{file: "http://64.62.164.140:1935/ross1ondemand/_definst_/mp4:ross1/ross1.stream-2014-6-24-12.mp4/playlist.m3u8"},
]

});


var executed = false;
jwplayer('player6QVf7Mc6igor').onPlay(function() {
if (!executed) {
executed = true;
var date = new Date();
var minutes = date.getMinutes();
var shift = minutes*60;
jwplayer('player6QVf7Mc6igor').seek(shift);
} });

</script>

Ethan Feldman

JW Player Support Agent  
1 rated :

modes: [
{ type: “html5” },
{ type: “flash”, src: “player.swf” }
],

JW5 code in your JW6 set up.

Also http://www.emoe.tv/google-tv/player.php?id=1596&type=recorded&alias=&date=1596&offset=420 is still running 6.8!

info

User  
0 rated :

My apology. You were right. I changed the path to 6.9 now. But still now I get error:
"Cannot read property 'sources' of undefined".

How do I fix that? Thank you so much. I really appreciate your help.

info

User  
0 rated :

I set the androidhls to false for now. Because I get the error:
"Cannot read property 'sources' of undefined".

But when androidhls is false Flash player works. Is there anything specific that should be done for HTML5 player to playback Playlists? What am I doing wrong in my setup?

Thank you so much!

info

User  
0 rated :

The video is still here with 6.9th JWPlayer now.
http://www.emoe.tv/google-tv/player.php?id=1596&type=recorded&alias=&date=1596&offset=420

Ethan Feldman

JW Player Support Agent  
0 rated :

Still 6.8. You are linking to your cloud hosted player here, not the CDN version of 6.9. I would suggest simply waiting for the final release then.

info

User  
0 rated :

How will it make a difference?

This last time I pointed to the "jwplayer" directory that I downloaded from the URL you guys have specified for 6.9.

File that I downloaded was this:
jwplayer-6.9.4858.zip

How do I point to the CDN version of 6.9? We need a solution ASAP.

These are the problems basically we are facing with 6.8 on Android's Chrome browser:

Problem #1:
Fast Forward and Rewind are simply not working if we attempt to achieve it programmatically. Player will never set a scrubber to the right location. Even if you move scrubber manually using player's controls on the screen to fast forward, it would always jump somewhere to the first quarter of the video.
We use following code for fast forward for example:
jwplayer('player6QVf7Mc6igor').seek(jwplayer('player6QVf7Mc6igor').getPosition()+300)

Problem #2:
After 20 to 30 minute playback, video always freezes.

These are all your bugs that we hope are fixed in 6.9 with Flash or with HTML5.

info

User  
0 rated :

The problems that we are experiencing are on Google TVs, which are developed by Google and run on same Android just as any other Android device.

Ethan Feldman

JW Player Support Agent  
0 rated :

Google TV is not tested.

I would do the following.

Create a brand new test page, just using 6.9, can you do that?

info

User  
0 rated :

Ahhhh. OK. I understood what was the problem. I had META tags specified for both self-hosted and cloud hosted player. I removed a META tag for the cloud hosted player, now that same page for sure points to 6.9.

I didn't get error this time, but on Android still don't see it working. Black screen comes on.

http://www.emoe.tv/google-tv/player.php?id=1596&type=recorded&alias=&date=1596&offset=420

On my MAC stream works looks like. On Android black screen.

info

User  
0 rated :

After we make it work on Android also I have one more question. How can I force the HTML5 player to go on on all browsers even those that do support Flash?

Thank you Ethan. I understand I am pain in the back, but I really need to make it work ASAP. Can't wait. Please help. Thank you so much!

info

User  
0 rated :

On Android still don't see it working. Black screen comes on.

http://www.emoe.tv/google-tv/player.php?id=1596&type=recorded&alias=&date=1596&offset=420

On my MAC stream works looks like. On Android black screen.

Ethan Feldman

JW Player Support Agent  
0 rated :

Ah, it is a blank screen on Android because controls are false. Mobile do not support autostart and setting controls to false will not let the player be clickable. Please set controls to true to test.

This question has received the maximum number of answers.