(avcC)
| 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(); |