Quantcast
Channel: Squeezebox : Community : Forums
Viewing all articles
Browse latest Browse all 6235

How to provide metadata through plugin the correct way?

$
0
0
Hi,

i am currently developing a plugin for streaming audio files from the ARD Audiothek. The problem i am facing now, is that can't find a nice way to display metadata in the player. My first try was to add a pseudo protocol handler, which worked for single files but not for playlists. Now i created a protocol handler which inherits from Slim::Player::Protocols::HTTPS und replaces my custom protocol "ardaudiothek://episode/{id}" with the correct streaming url, which is fetched from the ARD Audiothek api. The reason i created the "ardaudiothek://..." protocol is that i wanted favorites to be independent from the streaming url because this can change from time to time (files are cached in Akamai servers).

So now when i select play on an episode its displayed in the player(i refer here to the one in LMS web page) with the metadata from getMetadataFor of my protocol handler, but a few seconds later it switches to metadata provided by the streamed mp3 file. This behaviour is probably related to the fact that i just replace my protocol with the streaming url which is of format "https://akamai..." and it then will be streamed by the HTTPS Protocol handler.

Is there a way to prevent the metadata in the player to be replaced by the wma from the mp3 file or to tell the player to just use the provided data from my protocol handler and then stream with the HTTPS one?
Btw: I don't want to use the mp3 metadata because in a lot of cases it is missing entries or provides wrong information. Metadata from the API is just better and complete.

This is the link to current branch of the plugin repo:
https://github.com/mzedd/LMS-ARD-Aud...rotocolhandler

Thanks for your help :)

Viewing all articles
Browse latest Browse all 6235

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>