rx-player
Version:
Canal+ HTML5 Video Player
45 lines (44 loc) • 1.55 kB
JavaScript
;
/**
* Copyright 2015 CANAL+ Group
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
/**
* This file exports a Player class with a default feature set.
* This is the class used from a regular build.
*/
var patch_webkit_source_buffer_1 = require("./compat/patch_webkit_source_buffer");
var list_1 = require("./features/list");
var api_1 = require("./main_thread/api");
var global_scope_1 = require("./utils/global_scope");
(0, patch_webkit_source_buffer_1.default)();
api_1.default.addFeatures([
list_1.SMOOTH,
list_1.DASH,
list_1.DIRECTFILE,
list_1.EME,
list_1.NATIVE_TTML_PARSER,
list_1.NATIVE_SAMI_PARSER,
list_1.NATIVE_VTT_PARSER,
list_1.NATIVE_SRT_PARSER,
list_1.HTML_TTML_PARSER,
list_1.HTML_SAMI_PARSER,
list_1.HTML_VTT_PARSER,
list_1.HTML_SRT_PARSER,
]);
exports.default = api_1.default;
if (typeof __GLOBAL_SCOPE__ === "boolean" && __GLOBAL_SCOPE__) {
global_scope_1.default.RxPlayer = api_1.default;
}