Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug 871, 'IcMetadata.Info can be stale' #884

Open
wants to merge 11 commits into
base: minor
Choose a base branch
from

Conversation

mrelac
Copy link

@mrelac mrelac commented Nov 27, 2022

Android platform only: When a new track is selected that has a Metadata header with a metadataInterval of -1 (i.e. C.LENGTH_UNSET), onMetadata() is never called; thus, the stale metadata info from the last track is not cleared. This fix clears the metadata info under this condition.

mrelac and others added 11 commits November 20, 2022 12:33
…java print statements to onMetadata(). So fard, with the default media url, we get icyInfo.title (i.e. song) and url (i.e. artwork url).
…_radio to add the stations that highlight the problem. Also added a README file.
…e of C_LENGTH_UNSET doesn't

generate a call to onMetadata(), in onTracksChanged() simply set the icyInfo
instance variable to null to clear the stale data.
…he result should be a pristine, up-to-date copy of JustAudio with a couple of lines of changes/fixes.
@fedpinx
Copy link

fedpinx commented Jun 17, 2024

@ryanheise any plans to merge this?

@ryanheise
Copy link
Owner

I had plans to change the API altogether to be less tied to ICY metadata, however I think it's reasonable to probably merge this now. But have you tested it yourself and found it to work well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants