The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: Radio information does not display appropriately
#1
Good day everyone in the community,

I'm having my best days with the moOde audio system but recently I've found that for some internet radio addresses in South Korea, seems like the information about the radio does not display on the webpage appropriately.

The list of URLs of trouble-marking internet radios is the following: Most of you may doubt the validity of the addresses listed above firstly, but I've double-checked every URL is working, those are accessible directly from the web browser(tested with Chrome).

Explaining the problem in detail, it seems like if I try to add and play those internet radio streams, while mpd plays the stream correctly, the webpage does not update the information itself. The title and the station information are stuck with what I've played just right before adding that troublemaker, and also the station entry was not added to the queue. The only way to get the queue and the information about the station displayed correctly is by adding another element after this tricky radio stream.

I've inspected what's going on the web UI with the developer tool of the Chrome browser, then found that there's an unhandled exception on playerlib.js, which seems like the code tries to access the non-existing MPD.json['file']['format'] field. Not sure but in my opinion, it might be related to the characteristics of the stream pls files listed above, which all try to broker continuously changing streaming URLs due to the ever-changing security keys of the radio station.

There might be more works to inspect, but I think this is a simple problem that can handled by adding an exception handler in the failing section of the playerlib.js.

I've attached screenshots and console error logs from the developer tool below, feel free to ask me for more details regarding this problem.

Best regards,
Stephen

Console Log
Code:
Uncaught TypeError: Cannot read properties of undefined (reading 'format')
   at Object.success (playerlib.js:1044:75)
   at u (jquery-1.8.2.js:974:30)
   at Object.fireWith [as resolveWith] (jquery-1.8.2.js:1082:7)
   at N (jquery-1.8.2.js:7788:14)
   at XMLHttpRequest.n (jquery-1.8.2.js:8500:8)

Screenshots

1. Everyting clean and okay.
[Image: WH6hJD0.png]

2. When I try to add (or play) the tricky one...
[Image: uJM7ADF.png]

3. The page is not displaying information of the radio stream correctly. (lookng same with the first screenshot, but the audio is playing!)
[Image: YwiiS1F.png]

4. Only way to display the information correctly is adding another element just right after...
[Image: rXMqx0g.png]

5. Then as you can see the information of the failing element is showing up on the queue.
[Image: ezJrIOP.png]
Reply


Messages In This Thread
Radio information does not display appropriately - by stevenoh0908 - 02-26-2024, 12:46 PM

Forum Jump: