2020-01-24 12:11:43 +03:00
|
|
|
/*
|
|
|
|
AUTHOR
|
|
|
|
Trek Hopton <trek@ausocean.org>
|
2020-01-02 11:06:52 +03:00
|
|
|
|
2020-01-24 12:11:43 +03:00
|
|
|
LICENSE
|
|
|
|
This file is Copyright (C) 2020 the Australian Ocean Lab (AusOcean)
|
2020-01-02 11:06:52 +03:00
|
|
|
|
2020-01-24 12:11:43 +03:00
|
|
|
It is free software: you can redistribute it and/or modify them
|
|
|
|
under the terms of the GNU General Public License as published by the
|
|
|
|
Free Software Foundation, either version 3 of the License, or (at your
|
|
|
|
option) any later version.
|
2020-01-02 11:06:52 +03:00
|
|
|
|
2020-01-24 12:11:43 +03:00
|
|
|
It is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
for more details.
|
2020-01-02 11:06:52 +03:00
|
|
|
|
2020-01-24 12:11:43 +03:00
|
|
|
You should have received a copy of the GNU General Public License in gpl.txt.
|
|
|
|
If not, see http://www.gnu.org/licenses.
|
2020-01-02 11:06:52 +03:00
|
|
|
|
2020-01-24 12:11:43 +03:00
|
|
|
For hls.js Copyright notice and license, see LICENSE file.
|
|
|
|
*/
|
2020-01-02 11:06:52 +03:00
|
|
|
|
2020-01-24 12:11:43 +03:00
|
|
|
import XhrLoader from './utils/xhr-loader.js';
|
2020-01-02 11:06:52 +03:00
|
|
|
|
|
|
|
// If possible, keep hlsDefaultConfig shallow
|
|
|
|
// It is cloned whenever a new Hls instance is created, by keeping the config
|
|
|
|
// shallow the properties are cloned, and we don't end up manipulating the default
|
2020-01-24 12:11:43 +03:00
|
|
|
export const hlsDefaultConfig = {
|
2020-01-02 11:06:52 +03:00
|
|
|
startPosition: -1, // used by stream-controller
|
|
|
|
manifestLoadingTimeOut: 10000, // used by playlist-loader
|
|
|
|
manifestLoadingMaxRetry: 1, // used by playlist-loader
|
|
|
|
manifestLoadingRetryDelay: 1000, // used by playlist-loader
|
|
|
|
manifestLoadingMaxRetryTimeout: 64000, // used by playlist-loader
|
|
|
|
startLevel: void 0, // used by level-controller
|
|
|
|
levelLoadingTimeOut: 10000, // used by playlist-loader
|
|
|
|
levelLoadingMaxRetry: 4, // used by playlist-loader
|
|
|
|
levelLoadingRetryDelay: 1000, // used by playlist-loader
|
|
|
|
levelLoadingMaxRetryTimeout: 64000, // used by playlist-loader
|
|
|
|
fragLoadingTimeOut: 20000, // used by fragment-loader
|
|
|
|
fragLoadingMaxRetry: 6, // used by fragment-loader
|
|
|
|
fragLoadingRetryDelay: 1000, // used by fragment-loader
|
|
|
|
fragLoadingMaxRetryTimeout: 64000, // used by fragment-loader
|
|
|
|
loader: XhrLoader,
|
|
|
|
fLoader: void 0, // used by fragment-loader
|
|
|
|
pLoader: void 0, // used by playlist-loader
|
|
|
|
xhrSetup: void 0, // used by xhr-loader
|
2020-01-24 12:11:43 +03:00
|
|
|
};
|