Eliminate bunch of ExoPlayer warnings
This commit is contained in:
parent
6da2b399e8
commit
6e76610f30
2 changed files with 2 additions and 2 deletions
|
@ -556,7 +556,7 @@ public abstract class BasePlayer implements
|
||||||
}
|
}
|
||||||
|
|
||||||
private Disposable getProgressReactor() {
|
private Disposable getProgressReactor() {
|
||||||
return Observable.interval(PROGRESS_LOOP_INTERVAL_MILLIS, TimeUnit.MILLISECONDS)
|
return Observable.interval(PROGRESS_LOOP_INTERVAL_MILLIS, TimeUnit.MILLISECONDS, AndroidSchedulers.mainThread())
|
||||||
.observeOn(AndroidSchedulers.mainThread())
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
.subscribe(ignored -> triggerProgressUpdate(),
|
.subscribe(ignored -> triggerProgressUpdate(),
|
||||||
error -> Log.e(TAG, "Progress update failure: ", error));
|
error -> Log.e(TAG, "Progress update failure: ", error));
|
||||||
|
|
|
@ -318,7 +318,7 @@ public class MediaSourceManager {
|
||||||
//////////////////////////////////////////////////////////////////////////*/
|
//////////////////////////////////////////////////////////////////////////*/
|
||||||
|
|
||||||
private Observable<Long> getEdgeIntervalSignal() {
|
private Observable<Long> getEdgeIntervalSignal() {
|
||||||
return Observable.interval(progressUpdateIntervalMillis, TimeUnit.MILLISECONDS)
|
return Observable.interval(progressUpdateIntervalMillis, TimeUnit.MILLISECONDS, AndroidSchedulers.mainThread())
|
||||||
.filter(ignored ->
|
.filter(ignored ->
|
||||||
playbackListener.isApproachingPlaybackEdge(playbackNearEndGapMillis));
|
playbackListener.isApproachingPlaybackEdge(playbackNearEndGapMillis));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue