Hello,
We have implemented a simple algorithm to calculate the time difference between a key on the remote is pressed and released (duration of a key being pressed) in order to fast forward or rewind the stream in steps (1x, 2x, 4x, etc.) We got it working for the left and right arrow keys, however it does not work MediaFastForward
and MediaRewind
keys. keyup event handler is being fired automatically after approximately 1500 ms (1,5 seconds).
The article below states that long pressing MediaFastForward
and MediaRewind
keys trigger MediaTrackNext
and MediaTrackPrevious
functions, however we need disable the default behavior. How can we do that?
Thanks in advance.