()
| 206 | // updateFullscreenButton changes the icon of the full screen button |
| 207 | // and tooltip to reflect the current full screen state of the video |
| 208 | function updateFullscreenButton() { |
| 209 | fullscreenIcons.forEach((icon) => icon.classList.toggle('hidden')); |
| 210 | console.log("Full Screen toggle"); |
| 211 | if (document.fullscreenElement) { |
| 212 | fullscreenButton.setAttribute('data-title', 'Exit full screen (f)'); |
| 213 | } else { |
| 214 | fullscreenButton.setAttribute('data-title', 'Full screen (f)'); |
| 215 | } |
| 216 | } |
| 217 | |
| 218 | // togglePip toggles Picture-in-Picture mode on the video |
| 219 | async function togglePip() { |
nothing calls this directly
no outgoing calls
no test coverage detected