mirror of
https://github.com/iv-org/invidious.git
synced 2025-12-18 01:44:26 -05:00
Code easy to read by suggestion from code review
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
This commit is contained in:
parent
c3ea7fb72c
commit
00ae96a7e5
2 changed files with 33 additions and 7 deletions
|
|
@ -83,7 +83,20 @@ 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