View WWDC Videos In Chrome

var videoUrl = $('video>source').first().attr('src'); var scriptUrl = 'https://cdn.jsdelivr.net/hls.js/latest/hls.js' $.getScript(scriptUrl).done(() =>{ var v = $('<video/>', {id: 'video', controls: 'controls', class: 'video center'}); $('video').parent().empty().append(v); var hls = new Hls(); hls.attachMedia(v[0]); hls.on(Hls.Events.MEDIA_ATTACHED, function () { hls.loadSource(videoUrl); hls.on(Hls.Events.MANIFEST_PARSED, function (event, data) { video.playbackRate = 2.0 video.play(); }); }); })
Apple says 'no video for you' if you try to watch keynotes or WWDC streams in chrome. Paste the snippet above into the chrome console and you're good to go, and videos play at 2x speed.

1 Response

1. You will have to enable unsafe scripts in chrome (hit the shield in the top right of the address bar)
2. Yes you can use it with the 'Custom Javascript' chrome extension https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija/related?hl=en

Write a comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.