Looking to develop a Firefox extension for hosting "Yt-Music parties" where users can sync up with the host YtMusic.
The "movie_player" element houses various functions and variables that could be valuable, such as the current song time.
Strange enough, the getCurrentTime() function works in the web console but not within my extension code. Is additional permission required?
Appreciate any insight you can provide.
const ytPlayer = document.getElementById('movie_player')
const test = ytPlayer.getCurrentTime()
console.log(test)