Files
Álvaro Velad Galván 4f62ce8b24 build: Reduce bundle size by deduplicating license headers (#10182)
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.
2026-06-05 12:43:28 +02:00

67 lines
1.1 KiB
JavaScript

/*! @license
* Shaka Player
* Copyright 2016 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
goog.provide('shaka.device.TiVoOS');
goog.require('shaka.device.AbstractDevice');
goog.require('shaka.device.DeviceFactory');
goog.require('shaka.device.IDevice');
/**
* @final
*/
shaka.device.TiVoOS = class extends shaka.device.AbstractDevice {
/**
* @override
*/
getVersion() {
return null;
}
/**
* @override
*/
getDeviceName() {
return 'TiVoOS';
}
/**
* @override
*/
getDeviceType() {
return shaka.device.IDevice.DeviceType.TV;
}
/**
* @override
*/
getBrowserEngine() {
return shaka.device.IDevice.BrowserEngine.CHROMIUM;
}
/**
* @override
*/
supportsSmoothCodecSwitching(keySystem) {
return false;
}
/**
* Check if the current platform is TiVoOS.
* @return {boolean}
* @private
*/
static isTiVoOS_() {
return navigator.userAgent.includes('TiVoOS');
}
};
if (shaka.device.TiVoOS.isTiVoOS_()) {
shaka.device.DeviceFactory.registerDeviceFactory(
() => new shaka.device.TiVoOS());
}