Created
November 3, 2021 02:19
-
-
Save wjx0912/1366aeef46067cc7de718c8c4bbe00b0 to your computer and use it in GitHub Desktop.
netflix get video size
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 api = window.netflix.appContext.state.playerApp.getAPI(); | |
const sessionId = api.videoPlayer.getAllPlayerSessionIds()[0]; | |
const player = api.videoPlayer.getVideoPlayerBySessionId(sessionId); | |
player.getVideoSize(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment