Skip to Content
It is currently February 2nd, 2023, 4:08 am

All times are UTC - 6 hours [ DST ]




 [ 6 posts ] 
Author Message
PostPosted: July 16th, 2022, 8:17 pm 
Offline
Senior User
Senior User

Joined: July 23rd, 2007, 2:22 am
Posts: 176
Location: Vancouver, BC, Canada
Hi all, I just re-set up my site tonight and have it working but when the song changes now the page doesn't refresh anymore. I looked at the refresh code in the Playing file but can't understand the code. I'm afraid I don't have much more of a description than this, it's just like it stopped working for some reason. Any ideas on how I can get the page to refresh when the track changes?

_________________
Park Magic Radio
http://parkmagicradio.ca


Top
 Profile  
 
PostPosted: July 18th, 2022, 11:54 pm 
Offline
Senior User
Senior User

Joined: July 23rd, 2007, 2:22 am
Posts: 176
Location: Vancouver, BC, Canada
It's been a couple of days since I posted this, I was just wondering if anyone had any insight into this. I've had to set a meta refresh of 20 seconds on the entire page, but I was hoping to avoid having to do this, because every 20 seconds the entire screen refreshes. It works, but it's annoying, I'd rather have just the song area refresh like it did before. Thanks again.

_________________
Park Magic Radio
http://parkmagicradio.ca


Top
 Profile  
 
PostPosted: July 21st, 2022, 11:18 pm 
Offline
Senior User
Senior User

Joined: July 23rd, 2007, 2:22 am
Posts: 176
Location: Vancouver, BC, Canada
Since I received no help on this, and Spacial Support wasn't very helpful with custom code, I replaced my site pages with the default PHP web pages that came with Sam Broadcaster and have been building my site out to what it used to look like using some of my custom written code. Seems to work OK so far but I can't get the pop-up players working, so when you click on "Listen" it opens a player in another browser tab. It's a tedious task, but at least it plays.

The site is refreshing the song when the last song ends now, so I know it had something to do with my custom code.

Anyway, I'm satisfied that it's now working. It'll just take me awhile to replace the code to what I had before.

_________________
Park Magic Radio
http://parkmagicradio.ca


Top
 Profile  
 
PostPosted: July 22nd, 2022, 5:06 pm 
Offline
New User
New User

Joined: November 24th, 2018, 2:54 pm
Posts: 2
dan40 wrote:
Since I received no help on this, and Spacial Support wasn't very helpful with custom code, I replaced my site pages with the default PHP web pages that came with Sam Broadcaster and have been building my site out to what it used to look like using some of my custom written code. Seems to work OK so far but I can't get the pop-up players working, so when you click on "Listen" it opens a player in another browser tab. It's a tedious task, but at least it plays.

The site is refreshing the song when the last song ends now, so I know it had something to do with my custom code.

Anyway, I'm satisfied that it's now working. It'll just take me awhile to replace the code to what I had before.


This is the code we use for Popup Player. You can edit the popup size and change the text from Open Popup to something like, Listen Live.
Code:
<a href="#" onclick="window.open('Edit this line with your URL to your player', 'popup_player', 'width=350, height=150'); return false;">Open Popup</a>


Top
 Profile  
 
PostPosted: July 27th, 2022, 12:09 am 
Offline
Senior User
Senior User

Joined: July 23rd, 2007, 2:22 am
Posts: 176
Location: Vancouver, BC, Canada
MLachney wrote:
This is the code we use for Popup Player. You can edit the popup size and change the text from Open Popup to something like, Listen Live.
Code:
<a href="#" onclick="window.open('Edit this line with your URL to your player', 'popup_player', 'width=350, height=150'); return false;">Open Popup</a>


Thank you!

_________________
Park Magic Radio
http://parkmagicradio.ca


Top
 Profile  
 
PostPosted: August 24th, 2022, 4:15 pm 
Offline
Junior User
Junior User

Joined: April 27th, 2020, 6:15 pm
Posts: 44
We had this issue constantly, Locally we setup a script using chokidar filewatcher. We customized the files sam outputs on song change to be JSON files. When the file changes, chockidar fires a signal that updates the record on our mongoDB database, which in turn is connected via websockets to our frontend, which updates the song, queue, history... We got fedup with the PHP stuff...

This probably does not help you in the least, but just wanted you to know that there are workarounds that work flawlessly. Using meta refresh is very labor intensive for your server, especially when there are hundreds of listeners.


Top
 Profile  
 
Display posts from previous:  Sort by  
 [ 6 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group