2015-10-10 04:41:21 +08:00
|
|
|
/*
|
|
|
|
** NOTE: This file is generated by Gulp and should not be edited directly!
|
|
|
|
** Any changes made directly to this file will be overwritten next time its asset group is processed by Gulp.
|
|
|
|
*/
|
|
|
|
|
2015-07-26 08:14:14 +08:00
|
|
|
/// <reference path="Typings/jquery.d.ts" />
|
|
|
|
/// <reference path="Typings/underscore.d.ts" />
|
2014-03-22 22:59:41 +08:00
|
|
|
var Orchard;
|
|
|
|
(function (Orchard) {
|
2015-02-24 19:47:57 +08:00
|
|
|
var Azure;
|
2014-03-22 22:59:41 +08:00
|
|
|
(function (Azure) {
|
2015-02-24 19:47:57 +08:00
|
|
|
var MediaServices;
|
2014-03-22 22:59:41 +08:00
|
|
|
(function (MediaServices) {
|
2015-02-24 19:47:57 +08:00
|
|
|
var VideoPlayer;
|
2014-03-22 22:59:41 +08:00
|
|
|
(function (VideoPlayer) {
|
|
|
|
var Injectors = Orchard.Azure.MediaServices.VideoPlayer.Injectors;
|
|
|
|
$(function () {
|
|
|
|
$(".cloudmedia-videoplayer-container").each(function (index, elem) {
|
|
|
|
var container = elem;
|
|
|
|
var assetData = $(elem).data("cloudvideo-player-assetdata");
|
|
|
|
var playerWidth = $(elem).data("cloudvideo-player-width");
|
|
|
|
var playerHeight = $(elem).data("cloudvideo-player-height");
|
|
|
|
var applyMediaQueries = $(elem).data("cloudvideo-player-applymediaqueries");
|
|
|
|
var autoPlay = $(elem).data("cloudvideo-player-autoplay");
|
|
|
|
var contentBaseUrl = $(elem).data("cloudvideo-player-content-baseurl");
|
|
|
|
var errorText = $(elem).data("cloudvideo-player-errortext");
|
|
|
|
var altText = $(elem).data("cloudvideo-player-alttext");
|
|
|
|
var retryText = $(elem).data("cloudvideo-player-retrytext");
|
|
|
|
function invokeInjectors() {
|
|
|
|
$(container).empty();
|
|
|
|
var alternateContent = [
|
|
|
|
$("<span>").addClass("cloudvideo-player-error-text").text(errorText),
|
|
|
|
$("<button>").addClass("cloudvideo-player-retry-button").text(retryText).click(function () {
|
|
|
|
invokeInjectors();
|
|
|
|
}),
|
|
|
|
$("<span>").addClass("cloudvideo-player-alt-text").text(altText)
|
|
|
|
];
|
|
|
|
// Construct a chain of injectors (each will invoke the next on failure).
|
|
|
|
var altInjector = new Injectors.AltInjector(container, playerWidth, playerHeight, assetData, applyMediaQueries, true, null, alternateContent);
|
|
|
|
var html5Injector = new Injectors.Html5Injector(container, playerWidth, playerHeight, autoPlay, assetData, applyMediaQueries, true, altInjector);
|
|
|
|
var dashInjector = new Injectors.DashInjector(container, playerWidth, playerHeight, autoPlay, assetData, applyMediaQueries, true, html5Injector);
|
|
|
|
var smpInjector = new Injectors.SmpInjector(container, playerWidth, playerHeight, autoPlay, assetData, applyMediaQueries, true, dashInjector, contentBaseUrl);
|
|
|
|
var firstInjector = smpInjector;
|
|
|
|
firstInjector.invoke();
|
|
|
|
}
|
|
|
|
invokeInjectors();
|
|
|
|
});
|
|
|
|
});
|
2015-02-24 19:47:57 +08:00
|
|
|
})(VideoPlayer = MediaServices.VideoPlayer || (MediaServices.VideoPlayer = {}));
|
|
|
|
})(MediaServices = Azure.MediaServices || (Azure.MediaServices = {}));
|
|
|
|
})(Azure = Orchard.Azure || (Orchard.Azure = {}));
|
2015-03-04 09:22:19 +08:00
|
|
|
})(Orchard || (Orchard = {}));
|
2015-07-26 08:14:14 +08:00
|
|
|
|
2024-04-16 22:55:04 +08:00
|
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNsb3VkbWVkaWEtdmlkZW9wbGF5ZXItbWFpbi5qcyIsImNsb3VkbWVkaWEtdmlkZW9wbGF5ZXItbWFpbi50cyJdLCJuYW1lcyI6WyJPcmNoYXJkIiwiT3JjaGFyZC5BenVyZSIsIk9yY2hhcmQuQXp1cmUuTWVkaWFTZXJ2aWNlcyIsIk9yY2hhcmQuQXp1cmUuTWVkaWFTZXJ2aWNlcy5WaWRlb1BsYXllciIsImludm9rZUluamVjdG9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