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

Loading New Content - JW Player 6 - Autostart


Hello,

I've got the player running successfully here: http://shoeshinedesign.com/stage/wof2012/videos-test.php

I can't load the second video into the player when clicked. It doesn't autostart or show the image.

It will play, however, if you hit the play button again.

Am I missing something?
Thanks!

10 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

You have:

jwplayer().load({
file:‘rtmp://qps-Flash.OnstreamMedia.com/ondemand/mp4:FlashDMSP/culinaryins/Basic_Kitchen_Techniques/bkp_spiceblends_220k.mp4’,
image:‘http://www.ciavideos.com/wp-content/uploads/2012/12/AlmondBoard_13.jpg’
}); return false;

But it needs to be:

jwplayer().load({
file:‘rtmp://qps-Flash.OnstreamMedia.com/ondemand/mp4:FlashDMSP/culinaryins/Basic_Kitchen_Techniques/bkp_spiceblends_220k.mp4’,
image:‘http://www.ciavideos.com/wp-content/uploads/2012/12/AlmondBoard_13.jpg’
});jwplayer().play(); return false;

JW Player

User  
0 rated :

Thank you! That fixes it.

Ethan Feldman

JW Player Support Agent  
0 rated :

Np!

JW Player

User  
0 rated :

this option not work in IE9 and Iphone, and android

<script type='text/javascript'>
jwplayer("player").setup({
playlist: [{
width: '800',
height: '488',
image: "http://www.sitehosting.com.br/imagens/hospedagemestreaming.png",
sources: [{
file: "http://streaming29.sitehosting.com.br:1935/94fm640/94fm640/playlist.m3u8"
},{
file: "rtmp://streaming29.sitehosting.com.br/94fm640/94fm640"
}]
}],
primary: "html5"

});jwplayer().play(); return false;


</script>

JW Player

User  
0 rated :

now work

jwplayer("player").setup({
playlist: [{
width: '800',
height: '488',
image: "http://www.sitehosting.com.br/imagens/hospedagemestreaming.png",
sources: [{
file: "http://streaming29.sitehosting.com.br:1935/94fm640/94fm640/playlist.m3u8"
},{
file: "rtmp://streaming29.sitehosting.com.br/94fm640/94fm640"
}]
}],
startparam:'starttime',
primary: 'html5',
autostart: 'true'

});

Ethan Feldman

JW Player Support Agent  
0 rated :

So you mean this works,right?

JW Player

User  
0 rated :

one problem, width and height not work

any size width and height that I use, the player remains the same size.

Ethan Feldman

JW Player Support Agent  
0 rated :

Where is this running?

JW Player

User  
0 rated :

@Josimar In jwplayer 6 when you load a file using the .load() method you can't put the width and height as attributes of the item, you must use the .resize() method to change the dimensions of the player:

bc.. jwplayer("player").load([{
image: "http://www.sitehosting.com.br/imagens/hospedagemestreaming.png",
sources: [{
file: "http://streaming29.sitehosting.com.br:1935/94fm640/94fm640/playlist.m3u8"
},{
file: "rtmp://streaming29.sitehosting.com.br/94fm640/94fm640"
}]
}],
startparam:'starttime',
primary: 'html5',
autostart: 'true'
}).resize( 800, 488 );

Ethan Feldman

JW Player Support Agent  
0 rated :

Ah, thanks

This question has received the maximum number of answers.