Skip to content

Commit

Permalink
Eliminate bunch of ExoPlayer warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander authored and Alexander-- committed Dec 1, 2019
1 parent 6da2b39 commit 6e76610
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ public void triggerProgressUpdate() {
}

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())
.subscribe(ignored -> triggerProgressUpdate(),
error -> Log.e(TAG, "Progress update failure: ", error));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ private synchronized void maybeSynchronizePlayer() {
//////////////////////////////////////////////////////////////////////////*/

private Observable<Long> getEdgeIntervalSignal() {
return Observable.interval(progressUpdateIntervalMillis, TimeUnit.MILLISECONDS)
return Observable.interval(progressUpdateIntervalMillis, TimeUnit.MILLISECONDS, AndroidSchedulers.mainThread())
.filter(ignored ->
playbackListener.isApproachingPlaybackEdge(playbackNearEndGapMillis));
}
Expand Down

0 comments on commit 6e76610

Please sign in to comment.