Play next media if 1st file is not available?


no_avatar
Ozomatli
 
Mensajes: 15
Registrado: Sab Oct 19, 2013 12:59 am
 Dom Jun 02, 2019 10:09 pm • a través de Web
Hello

I help maintain a online radio station and your Media Player runs perfect for this. The Auto play functions correctly.

Our problem is that currently the radio goes offline sometimes... and we need an audio file to play when the radio is offline.

We add the shoutCAST radio URL 1st so that it the first thing to autoplay... but when it goes off, we want the (next #2) media to play.

With simple HTML5 and our browsers this is possible with the following:

Código: Seleccionar todo
<audio controls="controls" autoplay="autoplay" loop="loop" preload="metadata">
<source src="http://162.210.196.142:_radio_url/>

<source src="/media/some_music_file.mp3">
</audio>


Can we make it possible for the media player to skip to #2 file when #1 is missing or offline?

edit: Yes this is assuming if the user only refreshes the page or visits for the first time and the radio is off already, only then the next fie can be played.

Thank you
Avatar de Usuario
IvanPF
Administrador
 
Mensajes: 2010
Registrado: Vie Jun 17, 2011 12:15 am
Ubicación: España (Spain)
 Lun Jun 03, 2019 9:36 am • a través de Web
Hi,

I will try to add it in the next version.
Meanwhile, you can use the code that you have put, using the blank block and the [html] tag

¿Quién está conectado?

Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 0 invitados