-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Provide an API for metadata & frame extraction without playback #3609
Comments
The easiest option may be to create a player which is paused ( |
Thank you for your reply, but I wonder if there is a chance to extract metadata without initializing and preparing player? You wrote about the easiest way, so is there another option? Will it take a lot of effort to implement it without using player? |
@andrewlewis - Should we turn this into a general enhancement request for providing metadata APIs (or alternatively, should we file a new one and dupe this one to it)? |
Marking as an enhancement for now. |
Use PixelCopy API for the first SurfaceCapturer implementation. This supports devices from API 24+. Github: #3609. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=197732711
Can you please also consider adding metadata extraction of video files? |
@AndroidDeveloperLB That will be included. There is already pending work in that area and we will notify this thread if we publish something. |
@tonihei That's great news. |
@AndroidDeveloperLB @mhabzda some sample code in my project is available here: https://github.com/ened/flutter_plugin_media_info/blob/master/android/src/main/java/asia/ivity/mediainfo/MediaInfoPlugin.java#L139-L188 . |
@ened Sadly now that Android Q isn't nice to file path, I think you should provide an alternative, that uses Uri or InputStream. |
Just adding a clarification for #7285: this API would also support video thumbnail extraction. |
Issue: #3609 PiperOrigin-RevId: 326991376
Issue: #3609 PiperOrigin-RevId: 327176362
Hello. Do you happen to have any updates regarding the frame extraction API? |
We don't have any updates on this yet I'm afraid. |
Coil has this feature that allows to extract the first frame from video: I set a transparent background for the player and placed AsyncImage below that. It does work, but flicks with black. Not sure how to fix this thing |
Issue description
I'm trying to extract track information such as title and an artist from the local mp3 file before playing it.
I managed to get track metadata in 'onTracksChanged' callback, but I need access to it earlier. I have File object and its uri and I tried to use Mp3Extractor directly, which needs DataSource, but I'm not sure how to create it.
Could you provide me with the information if such a thing is possible and how to do it?
Version of ExoPlayer being used
2.5.4
The text was updated successfully, but these errors were encountered: