mirror of
https://github.com/iv-org/invidious.git
synced 2025-12-18 01:44:26 -05:00
improve readable and fix YT overwrite bug
This commit is contained in:
parent
1d67e13d9c
commit
cb27c6a33a
2 changed files with 51 additions and 96 deletions
|
|
@ -75,7 +75,7 @@ function return_message(message, target_window) {
|
|||
}
|
||||
if (message.message_kind === 'event') {
|
||||
if (message.eventname === 'timeupdate' || message.eventname === 'loadedmetadata') {
|
||||
additional_info['value'] = { getvolume: player.volume(), getduration: player.duration(), getcurrenttime: player.currentTime(), getplaystatus: player.paused(), getplaybackrate: player.playbackRate(), getloopstatus: player.loop(), getmutestatus: player.muted(), getfullscreenstatus: player.isFullscreen(), getavailableplaybackrates: options.playbackRates, gettitle: player_data.title, getplaylistindex: video_data.index, getplaylistid: video_data.plid};
|
||||
additional_info['value'] = { getvolume: player.volume(), getduration: player.duration(), getcurrenttime: player.currentTime(), getplaystatus: player.paused(), getplaybackrate: player.playbackRate(), getloopstatus: player.loop(), getmutestatus: player.muted(), getfullscreenstatus: player.isFullscreen(), getavailableplaybackrates: options.playbackRates, gettitle: player_data.title, getplaylistindex: video_data.index, getplaylistid: video_data.plid };
|
||||
}
|
||||
}
|
||||
if (message.eventname === 'error') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue