Add unit tests covering version parsing, device identity, browser engine and version-specific behavior for the six device classes, using real user agent strings from the vendor specifications. While adding the TiVoOS test it became apparent that shaka.device.TiVoOS was only listed in build/types/devices, so the device was never required from the uncompiled entry points and therefore never registered in uncompiled/debug builds (nor available to the tests). Add the missing goog.require to shaka-player.uncompiled.js and transmuxer_worker.uncompiled.js. Co-authored-by: Claude Opus 4.8 <[email protected]>
156 lines
6.0 KiB
JavaScript
156 lines
6.0 KiB
JavaScript
/*! @license
|
|
* Shaka Player
|
|
* Copyright 2016 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @fileoverview Require all exported classes an app might use.
|
|
* @suppress {extraRequire}
|
|
*/
|
|
|
|
goog.require('shaka.Deprecate');
|
|
goog.require('shaka.Player');
|
|
goog.require('shaka.abr.SimpleAbrManager');
|
|
goog.require('shaka.ads.AdManager');
|
|
goog.require('shaka.cast.CastProxy');
|
|
goog.require('shaka.cast.CastReceiver');
|
|
goog.require('shaka.dash.DashJsonParser');
|
|
goog.require('shaka.dash.DashParser');
|
|
goog.require('shaka.device.AppleBrowser');
|
|
goog.require('shaka.device.Chromecast');
|
|
goog.require('shaka.device.DefaultBrowser');
|
|
goog.require('shaka.device.Hisense');
|
|
goog.require('shaka.device.PlayStation');
|
|
goog.require('shaka.device.TitanOS');
|
|
goog.require('shaka.device.TiVoOS');
|
|
goog.require('shaka.device.Tizen');
|
|
goog.require('shaka.device.Vizio');
|
|
goog.require('shaka.device.WebKitSTB');
|
|
goog.require('shaka.device.WebOS');
|
|
goog.require('shaka.device.Xbox');
|
|
goog.require('shaka.drm.FairPlay');
|
|
goog.require('shaka.hls.HlsParser');
|
|
goog.require('shaka.log');
|
|
goog.require('shaka.media.InitSegmentReference');
|
|
goog.require('shaka.media.ManifestParser');
|
|
goog.require('shaka.media.PreferenceBasedCriteria');
|
|
goog.require('shaka.media.PresentationTimeline');
|
|
goog.require('shaka.media.SegmentIndex');
|
|
goog.require('shaka.media.SegmentReference');
|
|
goog.require('shaka.metadata.Id3Utils');
|
|
goog.require('shaka.metadata.Id3V1Utils');
|
|
goog.require('shaka.metadata.IlstUtils');
|
|
goog.require('shaka.metadata.Metadata');
|
|
goog.require('shaka.metadata.VorbisUtils');
|
|
goog.require('shaka.msf.MSFParser');
|
|
goog.require('shaka.net.DataUriPlugin');
|
|
goog.require('shaka.net.HttpFetchPlugin');
|
|
goog.require('shaka.net.HttpXHRPlugin');
|
|
goog.require('shaka.queue.QueueManager');
|
|
goog.require('shaka.offline.OfflineManifestParser');
|
|
goog.require('shaka.offline.OfflineScheme');
|
|
goog.require('shaka.offline.Storage');
|
|
goog.require('shaka.offline.indexeddb.StorageMechanism');
|
|
goog.require('shaka.polyfill.Aria');
|
|
goog.require('shaka.polyfill.EmeEncryptionScheme');
|
|
goog.require('shaka.polyfill.Fullscreen');
|
|
goog.require('shaka.polyfill.Map');
|
|
goog.require('shaka.polyfill.MCapEncryptionScheme');
|
|
goog.require('shaka.polyfill.MediaSource');
|
|
goog.require('shaka.polyfill.MediaCapabilities');
|
|
goog.require('shaka.polyfill.Orientation');
|
|
goog.require('shaka.polyfill.PatchedMediaKeysApple');
|
|
goog.require('shaka.polyfill.PatchedMediaKeysWebkit');
|
|
goog.require('shaka.polyfill.PiPWebkit');
|
|
goog.require('shaka.polyfill.RandomUUID');
|
|
goog.require('shaka.polyfill.Symbol');
|
|
goog.require('shaka.polyfill.TypedArray');
|
|
goog.require('shaka.polyfill.URLSearchParams');
|
|
goog.require('shaka.polyfill.VTTCue');
|
|
goog.require('shaka.polyfill.VideoFrameCallback');
|
|
goog.require('shaka.polyfill.VideoPlayPromise');
|
|
goog.require('shaka.polyfill.VideoPlaybackQuality');
|
|
goog.require('shaka.polyfill');
|
|
goog.require('shaka.text.Cue');
|
|
goog.require('shaka.text.Mp4TtmlParser');
|
|
goog.require('shaka.text.Mp4VttParser');
|
|
goog.require('shaka.text.TextEngine');
|
|
goog.require('shaka.text.SpeechToText');
|
|
goog.require('shaka.text.SrtTextParser');
|
|
goog.require('shaka.text.TtmlTextParser');
|
|
goog.require('shaka.text.VttTextParser');
|
|
goog.require('shaka.text.WebVttGenerator');
|
|
goog.require('shaka.cea.CeaDecoder');
|
|
goog.require('shaka.cea.Mp4CeaParser');
|
|
goog.require('shaka.cea.TsCeaParser');
|
|
goog.require('shaka.transmuxer.AacTransmuxer');
|
|
goog.require('shaka.transmuxer.Ac3');
|
|
goog.require('shaka.transmuxer.Ac3Transmuxer');
|
|
goog.require('shaka.transmuxer.ADTS');
|
|
goog.require('shaka.transmuxer.Ec3');
|
|
goog.require('shaka.transmuxer.Ec3Transmuxer');
|
|
goog.require('shaka.transmuxer.H264');
|
|
goog.require('shaka.transmuxer.H265');
|
|
goog.require('shaka.transmuxer.LocTransmuxer');
|
|
goog.require('shaka.transmuxer.Mp3Transmuxer');
|
|
goog.require('shaka.transmuxer.MpegAudio');
|
|
goog.require('shaka.transmuxer.MpegTsTransmuxer');
|
|
goog.require('shaka.transmuxer.Opus');
|
|
goog.require('shaka.transmuxer.TransmuxerEngine');
|
|
goog.require('shaka.transmuxer.TsTransmuxer');
|
|
goog.require('shaka.ui.Controls');
|
|
goog.require('shaka.ui.PlayButton');
|
|
goog.require('shaka.ui.SettingsMenu');
|
|
goog.require('shaka.ui.OverflowMenu');
|
|
goog.require('shaka.ui.AudioLanguageSelection');
|
|
goog.require('shaka.ui.AdInfo');
|
|
goog.require('shaka.ui.AdStatisticsButton');
|
|
goog.require('shaka.ui.CastButton');
|
|
goog.require('shaka.ui.ChapterSelection');
|
|
goog.require('shaka.ui.ContentTitle');
|
|
goog.require('shaka.ui.ContextMenu');
|
|
goog.require('shaka.ui.CopyVideoFrameButton');
|
|
goog.require('shaka.ui.Element');
|
|
goog.require('shaka.ui.FastForwardButton');
|
|
goog.require('shaka.ui.FullscreenButton');
|
|
goog.require('shaka.ui.IconRegistry');
|
|
goog.require('shaka.ui.Localization');
|
|
goog.require('shaka.ui.LoopButton');
|
|
goog.require('shaka.ui.Matrix4x4');
|
|
goog.require('shaka.ui.MatrixQuaternion');
|
|
goog.require('shaka.ui.MuteButton');
|
|
goog.require('shaka.ui.MuteVolumeBar');
|
|
goog.require('shaka.ui.Overlay');
|
|
goog.require('shaka.ui.PipButton');
|
|
goog.require('shaka.ui.PlayButton');
|
|
goog.require('shaka.ui.PlaybackRateSelection');
|
|
goog.require('shaka.ui.PresentationTimeTracker');
|
|
goog.require('shaka.ui.QueueButton');
|
|
goog.require('shaka.ui.RecenterVRButton');
|
|
goog.require('shaka.ui.RemoteButton');
|
|
goog.require('shaka.ui.ResolutionSelection');
|
|
goog.require('shaka.ui.RewindButton');
|
|
goog.require('shaka.ui.SaveVideoFrameButton');
|
|
goog.require('shaka.ui.SkipAdButton');
|
|
goog.require('shaka.ui.SkipNextButton');
|
|
goog.require('shaka.ui.SkipPreviousButton');
|
|
goog.require('shaka.ui.SkipQueueButton');
|
|
goog.require('shaka.ui.Spacer');
|
|
goog.require('shaka.ui.StatisticsButton');
|
|
goog.require('shaka.ui.StatisticsButtonBase');
|
|
goog.require('shaka.ui.TextPosition');
|
|
goog.require('shaka.ui.TextSelection');
|
|
goog.require('shaka.ui.TextSize');
|
|
goog.require('shaka.ui.ToggleStereoscopicButton');
|
|
goog.require('shaka.ui.TrickPlayButton');
|
|
goog.require('shaka.ui.VideoTypeSelection');
|
|
goog.require('shaka.ui.VolumeBar');
|
|
goog.require('shaka.ui.VRManager');
|
|
goog.require('shaka.ui.VRUtils');
|
|
goog.require('shaka.ui.VRWebgl');
|
|
goog.require('shaka.ui.Watermark');
|
|
goog.require('shaka.util.Dom');
|
|
goog.require('shaka.util.Error');
|
|
goog.require('shaka.util.Iterables');
|