mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-10-29 22:32:59 +00:00
Fix for player access out of its creation thread
This commit is contained in:
@@ -319,6 +319,7 @@ public class MediaSourceManager {
|
|||||||
|
|
||||||
private Observable<Long> getEdgeIntervalSignal() {
|
private Observable<Long> getEdgeIntervalSignal() {
|
||||||
return Observable.interval(progressUpdateIntervalMillis, TimeUnit.MILLISECONDS)
|
return Observable.interval(progressUpdateIntervalMillis, TimeUnit.MILLISECONDS)
|
||||||
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
.filter(ignored ->
|
.filter(ignored ->
|
||||||
playbackListener.isApproachingPlaybackEdge(playbackNearEndGapMillis));
|
playbackListener.isApproachingPlaybackEdge(playbackNearEndGapMillis));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user