I want to listen netflix player for every time is updated. Here my code:
const videoPlayer = netflix.appContext.state.playerApp.getAPI().videoPlayer;
const player = videoPlayer.getVideoPlayerBySessionId(videoPlayer.getAllPlayerSessionIds()[0]);
Above code is working. Problem is:
player.addEventListener("timeupdate", function(e){
console.log("time updated");
// Other code will be here ...
});
I tried this but "time updated" never write.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…