ffmeg as worker can be found at https://github.com/Kagami/ffmpeg.js/
Final build can be obtained via wget https://unpkg.com/ffmpeg.js@3.1.9001/ffmpeg-worker-mp4.js
// Fullscreen controller used on www.windy.com | |
const d = document | |
, el = $('#fullscreen') | |
, isFullscreen = () => d.fullscreen || d.webkitIsFullScreen || d.mozFullScreen | |
, onFullChange = () => el.innerHTML = isFullscreen() ? '' : '-' // Change of icon | |
d.addEventListener('fullscreenchange', onFullChange ) | |
d.addEventListener('webkitfullscreenchange',onFullChange ) | |
d.addEventListener('webkitfullscreenchange',onFullChange ) | |
d.addEventListener('mozfullscreenchange',onFullChange ) |
ffmeg as worker can be found at https://github.com/Kagami/ffmpeg.js/
Final build can be obtained via wget https://unpkg.com/ffmpeg.js@3.1.9001/ffmpeg-worker-mp4.js