Help troubleshooting cache being ignored
See original GitHub issueI’m currently stuck to version 2.11.4 of Exoplayer. I created a migration path from 2.9 to this version and the database seems to be upgraded properly.
Now, when I try to play the content, it seems to always pick the content from the internet, not loading if I’m offline.
The mediaSource
is set based on
dataSourceFactory = new CacheDataSourceFactory(
pair.second,
upstreamFactory,
new FileDataSource.Factory(),
null,
CacheDataSource.FLAG_IGNORE_CACHE_ON_ERROR,
null);
return new ProgressiveMediaSource
.Factory(dataSourceFactory)
.createMediaSource(uri);
EDIT: For now the upstream is
FileDataSource
so I’m sure it won’t use the internet to fetch any missing data.
I’m unsure how to debug to find out what is wrong…
EDIT 18 Feb
I had a partial (or false-positive) success yesterday but most of the problem still happens.
My “success” was when it managed to play the 1st minute of the call but then got errors not finding parts of the stream.
The ActionFile
content was saved with a custom Action
( #8543 ), with some specifics behaviors on getSegment
block. I wonder if I need to port the DESERIALIZER
to the newer version to be able to play it properly.
If it works best, feel free to contact me through email.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top GitHub Comments
Marking as
needs more info
. As of now it sounds like this is probably an issue with your upgrade procedure from a non-standard previous implementation.@ojw28 sorry for the long delay, after fixed I had to run against the clock. In the end, using
DownloadHelper.createMediaSource(downloadRequest, cacheDataSourceFactory);
addressed the missing problems. Thanks for all your help!