Fix for player access out of its creation thread

This commit is contained in:
Mauricio Colli 2019-12-31 02:51:32 -03:00
parent 8deb027e29
commit a3075dce2e

View file

@ -319,6 +319,7 @@ public class MediaSourceManager {
private Observable<Long> getEdgeIntervalSignal() {
return Observable.interval(progressUpdateIntervalMillis, TimeUnit.MILLISECONDS)
.observeOn(AndroidSchedulers.mainThread())
.filter(ignored ->
playbackListener.isApproachingPlaybackEdge(playbackNearEndGapMillis));
}