-
Notifications
You must be signed in to change notification settings - Fork 381
Cache issue for some video #128
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
Comments
Is there any log output from ExoMedia that points to any specific issues? |
This was found in Log output:
|
Video, causing that exception: https://onex1.blob.core.windows.net/posts/3-android-post-item-1457057048.mp4 |
I'm unable to duplicate this issue with the video you provided. Would you please answer the following questions to better help us diagnose the issue:
|
Tested on ASUS ZenFone 2 with Android 5.0.1. Some times this bug appears, but some times not. Mostly, it appears after downloading and viewing full video and dragging seek bar. But if bug appears, the video becames completly unplayable until the app is reinstalled. I guess the problem with invalid local cache management (i think localy cached file became broken and the reader could not obtain metadata from it). I have the following layout structure:
So, maybe you can advice me a workaround which provides correct EMVideoView releasing in described above layout structure? I am calling .release() method for previously initialized views before populating a new views, or maybe i should call reset locally cached streams or provides correct release procedure. Thanks. |
Thanks for the info. I'll try to reproduce it again when I get some time. In the meantime, calling In this case I would have the |
hi, i have just started using this library but i seem to see that this library fails to cache for both audio and video stream playback. Also this point it may be of or not related but the player seems to behave better in the emulator than the real device i don't know if anyone has noticed this ,this a thought.... |
The ExoPlayer doesn't keep a cache in the normal sense. Instead it keeps a buffer for the current playing media. If you need to create an actual cache then you will need to override the RenderBuilders and provide your own DataSource which performs the caching for you. (see #86 and the related changes) |
Thanks for the reply i have been implementing this for HLS and DASH streams but for mp3 and mp4 ...its a different issue bro. i am really stuck as in no where to get help ..... Anyways thanks for the response and time. From: Brian Wernick notifications@github.com The ExoPlayer doesn't keep a cache in the normal sense. Instead it keeps a buffer for the current playing media. If you need to create an actual cache then you will need to override the RenderBuilders and provide your own DataSource which performs the caching for you. (see #86#86 and the related changes) You are receiving this because you commented. |
Here's an OkHttp implementation of a |
@softgears In the current source code I am still having issues reproducing this. It may have been fixed by any of the many changes for the 3.0 release or by an ExoPlayer update. I have created a branch (issue_128) for testing |
I have a recycleview with EMVideoView inside each item. When i try to play video from URL: https://onex1.blob.core.windows.net/posts/3-android-post-item-1456900560.mp4 (recorded on Android camera) it cache and plays well, but when i close app and open it again - video from this URL is wont playing (stuck on preparing stage).
When i remove app and install it again, all works fine in first launch, in second - stucks. This appears to be a caching issue. This appear to be not for all video. For video like: https://onex1.blob.core.windows.net/posts/3-post-item-1453872771.54758.mp4 (recorded on iPhone camera) it always works fine.
So, is there a way to clear local exo player cache?
The text was updated successfully, but these errors were encountered: