Reconnect on loss method based on decoded mp3 frames

This commit is contained in:
AmateurAudioDude
2024-08-03 00:54:17 +10:00
committed by GitHub
parent cb9336df10
commit aff24f3b0a
@@ -2,6 +2,7 @@
MPEG audio format reader is part of 3LAS (Low Latency Live Audio Streaming) MPEG audio format reader is part of 3LAS (Low Latency Live Audio Streaming)
https://github.com/JoJoBond/3LAS https://github.com/JoJoBond/3LAS
*/ */
window.startTimeConnectionWatchdog = performance.now();
var __extends = (this && this.__extends) || (function () { var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) { var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf || extendStatics = Object.setPrototypeOf ||
@@ -194,6 +195,7 @@ var AudioFormatReader_MPEG = /** @class */ (function (_super) {
}; };
// Is called if the decoding of the window succeeded // Is called if the decoding of the window succeeded
AudioFormatReader_MPEG.prototype.OnDecodeSuccess = function (decodedData, id, expectedTotalPlayTime, firstGranulePlayTime, lastGranulePlayTime) { AudioFormatReader_MPEG.prototype.OnDecodeSuccess = function (decodedData, id, expectedTotalPlayTime, firstGranulePlayTime, lastGranulePlayTime) {
window.startTimeConnectionWatchdog = performance.now();
var extractSampleCount; var extractSampleCount;
var extractSampleOffset; var extractSampleOffset;
var delta = 0.001; var delta = 0.001;