Ensure generated bundles contain a single license header instead of repeating the same notice across bundled modules. Normalize all copyright years to 2016 and remove duplicate license headers from generated bundles. This reduces the final bundle size while preserving license information in the distributed artifacts.
60 lines
987 B
JavaScript
60 lines
987 B
JavaScript
/*! @license
|
|
* Shaka Player
|
|
* Copyright 2016 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
goog.provide('shaka.device.Vizio');
|
|
|
|
goog.require('shaka.device.AbstractDevice');
|
|
goog.require('shaka.device.DeviceFactory');
|
|
goog.require('shaka.device.IDevice');
|
|
|
|
|
|
/**
|
|
* @final
|
|
*/
|
|
shaka.device.Vizio = class extends shaka.device.AbstractDevice {
|
|
/**
|
|
* @override
|
|
*/
|
|
getVersion() {
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* @override
|
|
*/
|
|
getDeviceName() {
|
|
return 'Vizio';
|
|
}
|
|
|
|
/**
|
|
* @override
|
|
*/
|
|
getDeviceType() {
|
|
return shaka.device.IDevice.DeviceType.TV;
|
|
}
|
|
|
|
/**
|
|
* @override
|
|
*/
|
|
supportsMediaCapabilities() {
|
|
return false;
|
|
}
|
|
|
|
/**
|
|
* Check if the current platform is Vizio TV.
|
|
* @return {boolean}
|
|
* @private
|
|
*/
|
|
static isVizio_() {
|
|
return navigator.userAgent.includes('VIZIO SmartCast');
|
|
}
|
|
};
|
|
|
|
if (shaka.device.Vizio.isVizio_()) {
|
|
shaka.device.DeviceFactory.registerDeviceFactory(
|
|
() => new shaka.device.Vizio());
|
|
}
|