mirror of https://bitbucket.org/ausocean/av.git
48 lines
2.0 KiB
JavaScript
48 lines
2.0 KiB
JavaScript
/*
|
|
AUTHOR
|
|
Trek Hopton <trek@ausocean.org>
|
|
|
|
LICENSE
|
|
This file is Copyright (C) 2020 the Australian Ocean Lab (AusOcean)
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
You should have received a copy of the GNU General Public License in gpl.txt.
|
|
If not, see http://www.gnu.org/licenses.
|
|
|
|
For hls.js Copyright notice and license, see LICENSE file.
|
|
*/
|
|
|
|
import XhrLoader from './utils/xhr-loader.js';
|
|
|
|
// 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
|
|
export const hlsDefaultConfig = {
|
|
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
|
|
}; |