Created a bookmarklet to stream video using HLS in browser

Avatar image for amason
amason

6

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 1

Code and info: https://gist.github.com/andymason/3bdfc9d6a8bec155de86ba155761c94d

TLDR; Drop flash and use the HLS stream in browser for lower CPU usage and dynamic bitrate switching.

So I noticed high CPU usage when playing Doom and watching the gang play mario party. Turns out Flash was using ~20% cpu decoding the video stream.
Having experimented with hls.js I made a quick bookmarklet that will replace the existing player and use the HLS stream.

HLS supports dynamic bitrate switching so the videos should start faster and buffer less.

Because the GiantBomb video server's don't send Access-Control-Allow you'll need to install a chrome plugin or similar.

On my system CPU went from 20% usage down to 2%

Enjoy.