Play next media if 1st file is not available?




Ozomatli
 
Posts: 11
Joined: Sat Oct 19, 2013 12:59 am

Play next media if 1st file is not available?

Postby Ozomatli » Sun Jun 02, 2019 10:09 pm • via 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:

Code: Select all
<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
User avatar

IvanPF
Site Admin
 
Posts: 1641
Joined: Fri Jun 17, 2011 12:15 am
Location: España (Spain)

Re: Play next media if 1st file is not available?

Postby IvanPF » Mon Jun 03, 2019 9:36 am • via 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

Who is online

Users browsing this forum: No registered users and 1 guest

cron