(item: PlayerTime, player: HTMLVideoElement)
| 101 | let videoIdentifier = ''; |
| 102 | |
| 103 | function playerExtras(item: PlayerTime, player: HTMLVideoElement) { |
| 104 | const tempVideoIdentifier = player.currentSrc; |
| 105 | if (item.current > 1 && videoIdentifier !== tempVideoIdentifier) { |
| 106 | videoIdentifier = tempVideoIdentifier; |
| 107 | logger.log('New player detected', player.currentSrc); |
| 108 | |
| 109 | setFullscreen(player); |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | async function setFullscreen(player) { |
| 114 | if (!(await api.settings.getAsync('autofull'))) return; |
no test coverage detected