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

How play from RTMP stream and play next video when finish or stop


Hi, I wish play from rtmp stream and if stream finish or stop I wish the player play next video in playlist.

And for ex. if I have this playlist:

rtmp://localhost/live/stream
video.mp4

jw player always play video.mp4 and that is wrong because that video file is only to use then the stream end or stop to avoid users to refresh the page or click reload to view stream again, any know how I can make that.

Thnks.

4 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Can you provide a link?

z...

User  
0 rated :

Im working in localhost for now... If I have in playlist a rtmp stream and a mp4 file how I can play always the rtmp first?

z...

User  
0 rated :

This is my code for test:
<body>
<div id='playerBaldMvrouibM'></div>
<script type='text/javascript'>
jwplayer('playerBaldMvrouibM').setup({
playlist: [{
sources: [{
file: "rtmp://localhost/livestream"
},{
file: "wait.mp4"
}]
}],
title: 'Testing RED5 Live Streaming',
width: '50%',
aspectratio: '4:3',
autostart: 'true'
});
</script>
</body>

Ethan Feldman

JW Player Support Agent  
0 rated :

That should be fine, can you put a link up?

This question has received the maximum number of answers.