WebSite X5Help Center

 
Steve B.
Steve B.
User

Radio player to continue whilst on any page.  en

Autor: Steve B.
Visited 1486, Followers 1, Udostępniony 0  

Hi

I am about to design a website for a community radio station. There will be code supplied for the radio player. I need the radio player to continue to play whilst the visitor is on any page of the website. (ie it doesn't turn off when they change the page). If I make the header bigger and put it in there will that work?

Thanks in advance.

Posted on the
8 ODPOWIEDZI - 1 POMOCNY - 1 PRAWIDłOWA ODPOWIEDź
Aleksej H.
Aleksej H.
Moderator

Hello. Haven't tried it, but I think it depends on the code. Try it.

Czytaj więcej
Posted on the from Aleksej H.
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

... by logic it is not possible ...
... a single-page structure must be used...
..........................................

... or you have to build an EXTRA HTML structure with two FRAMES...
... or integrate the EXTRA code of SCMPLAYER, depending on the audio stream, of which possibly post the LINK here...

.

ciao

.

Czytaj więcej
Posted on the from  ‪ KolAsim ‪ ‪
Axel  
Axel  
User

@KolAsim,

SCM Player seems nice. surprised

But on my demo here, the player does not start automatically !!!! ... and the script is on normally  !!! 
Here my demo page.... 
https://wsx5demo.afsoftware.fr/music.html


And how to hide the player (should be better). Here it is on the top !!
and displayed for all pages...

My integrated script is here.

<!-- SCM Music Player https://www.scmplayer.net -->
<script type="text/javascript" src="https://www.scmplayer.net/script.js"
data-config="{'skin':'skins/tunes/skin.css','volume':50,'autoplay':true,'shuffle':false,'repeat':1,'placement':'top','showplaylist':false,'playlist':[{'title':'AF Software music !!! ','url':'https://wsx5demo.afsoftware.fr/afs-demo/audio/piste1.mp3'}]}" ></script>
<!-- SCM Music Player script end -->

Ok the music is played  in Continous Playback Cross Pages... but not clean

Any advice ??

Enjoy!
Axel

Czytaj więcej
Posted on the from Axel  
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

ciao Axel, ...autoplay works regularly ......
... obviously it will not work on "mobile" devices, where it is inhibited ...
...!... by concept, ... it was never good to hide the audio player in order to stop the sound...!...
... ... ... ... ... ... ... 

... to have the background sound on several pages also in the "mobile" you have to use the structure of the first EXTRA option mentioned above, with the FRAME...

.

ciao

.

Czytaj więcej
Posted on the from  ‪ KolAsim ‪ ‪
Axel  
Axel  
User

Hi KolAsim,

Here in my case autoplay does not works !

Agree with you to have the player displayed to stop the music if necessary.

Czytaj więcej
Posted on the from Axel  
 ‪ KolAsim ‪ ‪
 ‪ KolAsim ‪ ‪
Moderator

... I checked again ...
... autoplay OK for PC + firefox...

... I leave this Topic; ... eventually we will meet elsewhere ... ciao  ... ;-)

.

Czytaj więcej
Posted on the from  ‪ KolAsim ‪ ‪
Axel  
Axel  
User

Ha ok... issue with Chrome...

see you later tongue-out

Czytaj więcej
Posted on the from Axel  
John S.
John S.
User

Hello Steve

It is not recommended to automatically start audio. Most visitors find it very annoying.

I suggest you make a player on a page - a page only for the player.

On the page you could show more players - each with a pre-defined station or number. Then the user could choose the music he wants to hear.

Then you could have a link to that page. The link could be in the header, and the link could be an image.

The link should open in a separate tab or window.

This way the user will have full control of the player. He decides when it should start and it can be ended by closing the tab (or window).

While the player is active in another tab, then the user can continue browsing through your site by selecting the tab from where the player was "called".

This is a "clean" solution. No special code, and it should function in all browsers.

Just a suggestion

Czytaj więcej
Posted on the from John S.