Created
October 18, 2017 18:32
-
-
Save dimapaloskin/e268e5356df160599244418d256e3f4e to your computer and use it in GitHub Desktop.
Netflix seek
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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