question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(Feature Request) Double Tap or Drag to Seek for Mobile

See original GitHub issue

It would be fantastic if there could be an option to seek back and forth in the video by double tapping or dragging on mobile screens.

For my use case, easily jumping back and forwards in the video is really important. For desktops users I made keyboard bindings that trigger these commands:

forward jump:

this.player.seekTo(this.player.getCurrentTime() + seekInterval);

backward jump:

this.player.seekTo(this.player.getCurrentTime() - seekInterval);

I made separate buttons that the mobile users can use, but it would be really nice to have something right in the player itself that works by tapping on the sides of the video (similar to YouTube’s implementation or even better, by dragging on the video (like MX Player does – perhaps even with a seconds per cm of swipe flexibility like they have?).

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
adueckcommented, Jul 24, 2018

@oyeanuj Sure, here’s a really stripped down example. It’s a page in a next.js app without all the layout and formatting etc. But it shows the functionality of swiping and keyboard shortcuts for seeking. (I could post a fuller example with an app in a repo later after I work out some more features that I want to add)

https://gist.github.com/adueck/a8217fddcb4648c64fff29df83af2f59

0reactions
oyeanujcommented, Jul 28, 2018

@adueck This is awesome, thanks for sharing!

Read more comments on GitHub >

github_iconTop Results From Across the Web

(Feature Request) Double Tap or Drag to Seek for Mobile #446
It would be fantastic if there could be an option to seek back and forth in the video by double tapping or dragging...
Read more >
Reach the top of the iPhone screen with one hand
On an iPhone with a Home button: Lightly double-tap the Home button. To return to the full screen, tap the upper half of...
Read more >
OneNote: Please add feature: Double-click and drag to select
This is a glaring omission from OneNote: the ability to double-click and drag to select multiple words. Microsoft OneNote team, please add ...
Read more >
Use accessibility shortcuts - Android Accessibility Help
Start an app or switch between apps: Tap the floating accessibility button. Move the floating accessibility button: Drag and drop the floating accessibility ......
Read more >
How to Unlock Your Android Phone Screen Without the Power ...
Within the motions and gestures section, you will be able to find a number of handy settings, including double-tap to turn on and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found