Closed macabu closed 5 years ago
I recently moved this code into @videojs/vhs-utils
as it was used in 3-4 different places. I currently have a node support pull request that does nearly the same thing as this. When that lands we will update master and get node support! https://github.com/videojs/vhs-utils/pull/1
FYI this is now out as 4.4.2
Currently if you try to parse a playlist with
#EXT-X-KEY
tags it will fail, sincedecodeB64ToUint8Array
uses awindow.atob
function which does not exist in NodeJS.Added a check if the function is undefined, and use the
Buffer.from
implementation from NodeJS. As far as I have seen,Buffer.from
exists since NodeJS 4.x Browser support is, of course, unchanged.