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

Intro movie


Hello;

I searched alot in this forum but couldn't find my answer.
The problem is this....
Before the live stream starts i want to play a short intro (videohive)
When i use multiple files like this

<div id="my-video"></div>
<script type="text/javascript">// <![CDATA[

jwplayer("my-video").setup({
playlist: [{
sources: [{
file: "http://www.testspel.nl/intro.mp4"
},{
file: "rtmp://XXX.76.184.XXX/x11XXX/bs6"

}]
}],
logo: {
file: 'http://www.testspel.nl/logo5.png',
link: 'http://bvls2016.sc'
},

autostart: true,
width: "100%",
aspectratio: "16:9",
stretching: "exactfit",
hlshtml: true

});

// ]]>
</script>


The 2 different files play normal when i add just 1 into the player but when i insert script as described above the first video(intro) plays and then te second video won't load.

How can i get this to work that the second video(stream) load automatic after the intro is finisched.

Thanks in advance

John

4 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi John,

My name is Alex and I am one of the Team Leads of the Support Team at JW Player. I will be more than happy to assist you with your questions.

If you have the videos inside of a “sources” block, they won’t get played one after the other. The way your player would currently work is that it would try to play intro.mp4 and if for some reason it could not play it, it would fall back to the RTMP live stream. If you move those two files outside of your “sources” block but still inside the “playlist” block, it would act like a normal playlist with the RTMP stream playing after the intro.mp4. The code would end up looking like this:

<div id="my-video"></div>
<script type="text/javascript">

  jwplayer("my-video").setup({
    playlist: [{
      file: "http://www.testspel.nl/intro.mp4"
      },{
      file: "rtmp://XXX.76.184.XXX/x11XXX/bs6"
    }],
    logo: {
      file: 'http://www.testspel.nl/logo5.png',
      link: 'http://bvls2016.sc'
    },

    autostart: true,
    width: "100%",
    aspectratio: "16:9",
    stretching: "exactfit",
    hlshtml: true

  });
</script>

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

Thank you!

b...

User  
0 rated :

Hello Alex;

First off thanks for your help,it realy hold me out of sleep last 3 days haha.
After reading your reaction i ahev to say that i just use the jwplayer for a couple days and have to learn how things will work.
You are talking about the playlist,but there is no external playlist there is just 1 file ( intro.mp4) hosted on the website, and there is the live stream. hosted somewhere else on the net with different rtpm adresses.

I have used your code above and have to tell you that it's isnt working.
After the page is loading the intro.mp is playing but when the intro finished the stream is just not playing,it just give
me the reload picture in middle of screen.
I can send you the link to see it in action but there is a chance when you going to take a look that the stream isn't active anymore
and the stream never will load.
http://free-cool-games.com/bvls-12.html

Thanks in advance

b...

User  
0 rated :

Ok have it working now.
It seems it didn't work with jwplayer six.
Changing the player to version 7 and it works.

Thanks for great help


John

Alex

JW Player Support Agent  
0 rated :

Good to hear you have it working!

This question has received the maximum number of answers.