And I'm now busy writing JSON deserialize code that doesn't care about the fact that the JSON created by the callback function is not valid, so that I can read previous, current, and next track.
don't give up so quickly. I also won't give up quickly.
You sent me a website without comments and I didn't even know what you wanted to show me. After you commented, I saw that you wanted to show me that it does work.
I originally read _on the jPlayer website_ that jPlayer so far doesn't display metadata, so I believed them. Apparently that isn't true any longer.
I'm currently trying it for myself, so maybe it'll work.
It works basically but it only displays the names of the shows (current and next). I don't need the show names. It should display the artist/track names (last, current, next).
I don't see any documentation for this in the manual.
I just put the 'now and next' widget code under the player code. The other place you can get the metadata from is from Icecast. You can parse the xml status page
"Current" is filled with the next title already about a minute before the next title actually starts. This also happens in the Airtime frontend and the Airtime "listen" player. Something is out of sync here. What is happening? can that be fixed?
Or <gasp> is the server so slow (it seems to be slow) that buffering the audio file takes a minute?
-Michael
Post edited by Michael Peters at 2017-07-18 10:52:26