Skip to content

Instantly share code, notes, and snippets.

@Venryx
Forked from dimapaloskin/Netflix.seek.js
Created December 12, 2020 00:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Venryx/f6d905a62f335d1bddc61f2f2fe8b272 to your computer and use it in GitHub Desktop.
Save Venryx/f6d905a62f335d1bddc61f2f2fe8b272 to your computer and use it in GitHub Desktop.
Netflix seek
const videoPlayer = netflix
.appContext
.state
.playerApp
.getAPI()
.videoPlayer;
// Getting player id
const videoPlayer = videoPlayer
.getAllPlayerSessionIds()[0]
const player = videoPlayer
.getVideoPlayerBySessionId(playerSessionId)
const currentTime = player.getCurrentTime()
player.seek(currentTime - 1000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment