mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 17:59:55 +02:00
Improving the get restream credentials
This commit is contained in:
parent
654dda115a
commit
56cb1fd5cb
6058 changed files with 1166166 additions and 1430809 deletions
34
node_modules/mux.js/test/base64-to-uint8-array.js
generated
vendored
34
node_modules/mux.js/test/base64-to-uint8-array.js
generated
vendored
|
@ -1,17 +1,17 @@
|
|||
var window = require('global/window');
|
||||
// TODO: use vhs-utils here
|
||||
|
||||
var atob = (s) => window.atob ? window.atob(s) : Buffer.from(s, 'base64').toString('binary');
|
||||
|
||||
var base64ToUint8Array = function(base64) {
|
||||
var decoded = atob(base64);
|
||||
var uint8Array = new Uint8Array(new ArrayBuffer(decoded.length));
|
||||
|
||||
for (var i = 0; i < decoded.length; i++) {
|
||||
uint8Array[i] = decoded.charCodeAt(i);
|
||||
}
|
||||
|
||||
return uint8Array;
|
||||
};
|
||||
|
||||
module.exports = base64ToUint8Array;
|
||||
var window = require('global/window');
|
||||
// TODO: use vhs-utils here
|
||||
|
||||
var atob = (s) => window.atob ? window.atob(s) : Buffer.from(s, 'base64').toString('binary');
|
||||
|
||||
var base64ToUint8Array = function(base64) {
|
||||
var decoded = atob(base64);
|
||||
var uint8Array = new Uint8Array(new ArrayBuffer(decoded.length));
|
||||
|
||||
for (var i = 0; i < decoded.length; i++) {
|
||||
uint8Array[i] = decoded.charCodeAt(i);
|
||||
}
|
||||
|
||||
return uint8Array;
|
||||
};
|
||||
|
||||
module.exports = base64ToUint8Array;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue