MCPcopy Create free account
hub / github.com/ZLMediaKit/pymkui / formatVideoDecoderConfigure

Function formatVideoDecoderConfigure

frontend/js/lib/decoder.js:6599–6613  ·  view source on GitHub ↗
(avcC)

Source from the content-addressed store, hash-verified

6597 return false;
6598 })();
6599 function formatVideoDecoderConfigure(avcC) {
6600 let codecArray = avcC.subarray(1, 4);
6601 let codecString = "avc1.";
6602 for (let j = 0; j < 3; j++) {
6603 let h = codecArray[j].toString(16);
6604 if (h.length < 2) {
6605 h = "0" + h;
6606 }
6607 codecString += h;
6608 }
6609 return {
6610 codec: codecString,
6611 description: avcC
6612 };
6613 }
6614
6615 if (!Date.now) Date.now = function () {
6616 return new Date().getTime();

Callers 1

decoder.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected