I think better using "RCTEventEmitter" than 'setInterval' when we use "getCurrentTime".
What do you think about it?
That would be nice, and I think it would be possible for iOS, but not for Android. Android's MediaPlayer doesn't support a way to observe changes in current time.
So we have to decide if we want to support this for iOS and not for Android, what do you think @trepidity? And it would be something for a future release I think, if we decide to support this.
My first thought is no. Features that do not have parity across all systems is contrary React/React-Native.
Does adding this feature make implementation for the first-timer easier or harder?
I could see adding it as an "advanced" or undocumented API feature.
Perhaps in Android this can be implemented as a TimerTask that keeps checking on the player.getCurrentPosition.
This way the experience is consistent across OS.
Most helpful comment
Perhaps in Android this can be implemented as a
TimerTaskthat keeps checking on theplayer.getCurrentPosition.This way the experience is consistent across OS.