mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-31 09:19:16 +02:00
Reconnect on loss method based on decoded mp3 frames
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user