- Notifications
You must be signed in to change notification settings - Fork 7.6k
Closed
Labels
Milestone
Description
RxJava 2.2.18
RxJava/src/main/java/io/reactivex/Scheduler.java
Lines 97 to 101 in 2cb20bd
| static final long CLOCK_DRIFT_TOLERANCE_NANOSECONDS; | |
| static { | |
| CLOCK_DRIFT_TOLERANCE_NANOSECONDS = TimeUnit.MINUTES.toNanos( | |
| Long.getLong("rx2.scheduler.drift-tolerance", 15)); | |
| } |
Would you please allow to set CLOCK_DRIFT_TOLERANCE_NANOS in seconds/milliseconds?
I have a code which controls player position to play short pieces (few seconds) of media and pause them when the position is reached. Such as player may have various playback issues (fast/slow playback, delay in initialization) i use Flowable.interval(50ms) to check its state/position periodically. However when system time synchronization occurs during playback flowable stops fire events until time become the same as it was before synchronization
Here how it looks in my log
14:21:43.273 z1 D PlaybackDurationControlCompletable.onTick: player position is unchanged, skipping check 14:21:37.727 z1 D some other event, time syncrhonization occurrs // ... no onTick events for 6 seconds 14:21:43.372 z1 D PlaybackDurationControlCompletable: Initializing position 41769; elapsedTimerTime=5757