-
Notifications
You must be signed in to change notification settings - Fork 685
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
Support loading frame image from video #25
Comments
This is a good candidate for a custom I probably wouldn't add this to the base artifact, but it might make sense as an extension library. |
Thinking about this more, this would be a good candidate for a I think a custom Decoder that uses Going to tag this as help wanted in case someone wants to take a stab at it. Otherwise, I can work on this once some of the other bugs are fixed. |
Hi there, any chance of having it in near future ? |
@Hospes Unfortunately custom frame positions aren't likely to be supported soon. I'd like to add support for this, however Here's why it's not easy to support custom frame positions currently:
I've got some partial work trying to implement a solution here: #122 If anyone has an idea of how to work around these limitations without changing the |
What about using NanoHttpd to serve the input stream over on APIs lower than 23? That alows seeks AFAIK. |
@mario How does it allow seeking? On pre-23, |
@colinrtwhite you serve the input stream via local http server and access it through ranges as a regular Uri. |
@mario Would the code to serve the input stream go in the |
@colinrtwhite I am of the opinion that in should definitely go in Decoder as Fetcher doesn't need knowledge of this. As for how I'd access it in ranges - MediaMetadataRetriever does this automatically by requesting 65k bytes while iterating through the stream - it's the job of the http server (powered by nanoHTTPD or even better AndroidAsync) to read the Range header and respond with the appropriate chunk. |
|
This is now supported in the latest snapshot. Documentation. |
Is your feature request related to a problem? Please describe.
load(file)
method cannot load the video cover.Describe the solution you'd like
Glide
is very compatible with image and video files. Loading video sequence frames is also very convenient,such as:The text was updated successfully, but these errors were encountered: