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

[bug] local file media cover #445

Closed
lovegaoshi opened this issue May 24, 2024 · 1 comment · Fixed by #449, #454, #460 or #461
Closed

[bug] local file media cover #445

lovegaoshi opened this issue May 24, 2024 · 1 comment · Fixed by #449, #454, #460 or #461

Comments

@lovegaoshi
Copy link
Owner

lovegaoshi commented May 24, 2024

currently local file's track.cover is set to null; reads the base64 of the ffmpeg extracted music cover; RNTP's notificationManager auto reads it from file, but sometimes its blurry. android auto fails to resolve it all together.

since we use ffmpeg, and used to have code to save current artwork into a local file; why not provide that and use it as a content resolved URI? instead of the whole convert to base64 thing?

ryanheise/audio_service#1049
https://stackoverflow.com/questions/3004713/get-content-uri-from-file-path-in-android

@lovegaoshi
Copy link
Owner Author

actually will be solved from KotlinAudio:


            getCachedArtworkBitmap()?.let {
                val savedBitmap = MediaStore.Images.Media.insertImage(context.contentResolver, it, "APMalbumart.png","APMalbumart.png")
                // putBitmap(MediaMetadataCompat.METADATA_KEY_ALBUM_ART, it)
                // putBitmap(MediaMetadataCompat.METADATA_KEY_DISPLAY_ICON, it)
                putString(MediaMetadataCompat.METADATA_KEY_ART_URI, savedBitmap)
            }

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