-
Notifications
You must be signed in to change notification settings - Fork 653
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
[coil-video] Failed to load video on imageView #454
Comments
I am sorry !! By mistake I submitted the issue without finishing fill the form |
Hmm it looks like the logs didn't capture the exception. Can you add |
Indeed, you were right! By adding that line in my image loader creation, the exception was displayed. It does not manage to access to this video url meanwhile this is a valid uri with a file having compatible extension, I tried with another video : http://videocdn.bodybuilding.com/video/mp4/62000/62792m.mp4 with the same exception thrown. |
Maybe it's due to using HTTP instead of HTTPS? Either way, Coil only supports decoding video frames from local files/uris. If you need a video to test, you could copy the video from the sample app. |
Yesterday I cheated by replacing that url by HTTPS but I got the same error. |
There's already a disclaimer in the docs: |
My bad. So can we expect in future releases to support remote URIs with HTTP/HTTPS schemes ? |
Unfortunately, I don't think it's likely. If you're interested, I wrote up my thoughts here, but basically the Android APIs require a local file and Coil intentionally abstracts the data source from the |
I got answers on my doubts, I can close that issue. Thank you!! |
Describe the bug
I have a recycler view with 3 elements : an image , a gif and a video. But the video does not work and display first the placeholder and after the error drawables.
Expected behavior
The item of my recycler view should display video as same as image and gif which worked well.
To Reproduce
How can we reproduce this?
I injected the image loader as a dependency through Dagger.
I used my own ImageView extension.
The url of the video
Logs/Screenshots
Screenshot
Logs
Version
Android 30
io.coil-kt:coil-base:0.11.0
io.coil-kt:coil-video:0.11.0
Device is a Pixel 3A XL virtual device
The text was updated successfully, but these errors were encountered: