Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 | /**
* The copyright in this software is being made available under the BSD License,
* included below. This software may be subject to other third party and contributor
* rights, including patent rights, and no such rights are granted under this license.
*
* Copyright (c) 2013, Dash Industry Forum.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation and/or
* other materials provided with the distribution.
* * Neither the name of Dash Industry Forum nor the names of its
* contributors may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/**
* Constants declaration
*/
export default {
/**
* @constant {string} STREAM Stream media type. Mainly used to report metrics relative to the full stream
* @memberof Constants#
* @static
*/
STREAM: 'stream',
/**
* @constant {string} VIDEO Video media type
* @memberof Constants#
* @static
*/
VIDEO: 'video',
/**
* @constant {string} ENHANCEMENT Enhancement media type
* @memberof Constants#
* @static
*/
ENHANCEMENT: 'enhancement',
/**
* @constant {string} AUDIO Audio media type
* @memberof Constants#
* @static
*/
AUDIO: 'audio',
/**
* @constant {string} TEXT Text media type
* @memberof Constants#
* @static
*/
TEXT: 'text',
/**
* @constant {string} MUXED Muxed (video/audio in the same chunk) media type
* @memberof Constants#
* @static
*/
MUXED: 'muxed',
/**
* @constant {string} IMAGE Image media type
* @memberof Constants#
* @static
*/
IMAGE: 'image',
/**
* @constant {string} STPP STTP Subtitles format
* @memberof Constants#
* @static
*/
STPP: 'stpp',
/**
* @constant {string} TTML STTP Subtitles format
* @memberof Constants#
* @static
*/
TTML: 'ttml',
/**
* @constant {string} VTT STTP Subtitles format
* @memberof Constants#
* @static
*/
VTT: 'vtt',
/**
* @constant {string} WVTT STTP Subtitles format
* @memberof Constants#
* @static
*/
WVTT: 'wvtt',
/**
* @constant {string} Content Steering
* @memberof Constants#
* @static
*/
CONTENT_STEERING: 'contentSteering',
/**
* @constant {string} LIVE_CATCHUP_MODE_DEFAULT Throughput calculation based on moof parsing
* @memberof Constants#
* @static
*/
LIVE_CATCHUP_MODE_DEFAULT: 'liveCatchupModeDefault',
/**
* @constant {string} LIVE_CATCHUP_MODE_LOLP Throughput calculation based on moof parsing
* @memberof Constants#
* @static
*/
LIVE_CATCHUP_MODE_LOLP: 'liveCatchupModeLoLP',
/**
* @constant {string} MOVING_AVERAGE_SLIDING_WINDOW Moving average sliding window
* @memberof Constants#
* @static
*/
MOVING_AVERAGE_SLIDING_WINDOW: 'slidingWindow',
/**
* @constant {string} EWMA Exponential moving average
* @memberof Constants#
* @static
*/
MOVING_AVERAGE_EWMA: 'ewma',
/**
* @constant {string} BAD_ARGUMENT_ERROR Invalid Arguments type of error
* @memberof Constants#
* @static
*/
BAD_ARGUMENT_ERROR: 'Invalid Arguments',
/**
* @constant {string} MISSING_CONFIG_ERROR Missing configuration parameters type of error
* @memberof Constants#
* @static
*/
MISSING_CONFIG_ERROR: 'Missing config parameter(s)',
/**
* @constant {string} TRACK_SWITCH_MODE_ALWAYS_REPLACE used to clear the buffered data (prior to current playback position) after track switch. Default for audio
* @memberof Constants#
* @static
*/
TRACK_SWITCH_MODE_ALWAYS_REPLACE: 'alwaysReplace',
/**
* @constant {string} TRACK_SWITCH_MODE_NEVER_REPLACE used to forbid clearing the buffered data (prior to current playback position) after track switch. Defers to fastSwitchEnabled for placement of new data. Default for video
* @memberof Constants#
* @static
*/
TRACK_SWITCH_MODE_NEVER_REPLACE: 'neverReplace',
/**
* @constant {string} TRACK_SELECTION_MODE_FIRST_TRACK makes the player select the first track found in the manifest.
* @memberof Constants#
* @static
*/
TRACK_SELECTION_MODE_FIRST_TRACK: 'firstTrack',
/**
* @constant {string} TRACK_SELECTION_MODE_HIGHEST_BITRATE makes the player select the track with a highest bitrate. This mode is a default mode.
* @memberof Constants#
* @static
*/
TRACK_SELECTION_MODE_HIGHEST_BITRATE: 'highestBitrate',
/**
* @constant {string} TRACK_SELECTION_MODE_HIGHEST_EFFICIENCY makes the player select the track with the lowest bitrate per pixel average.
* @memberof Constants#
* @static
*/
TRACK_SELECTION_MODE_HIGHEST_EFFICIENCY: 'highestEfficiency',
/**
* @constant {string} TRACK_SELECTION_MODE_LOWEST_STARTUP_DELAY makes the player select the track that contains partial segments that start with SAP type 0 or 1.
* @memberof Constants#
* @static
*/
TRACK_SELECTION_MODE_LOWEST_STARTUP_DELAY: 'lowestStartupDelay',
/**
* @constant {string} TRACK_SELECTION_MODE_WIDEST_RANGE makes the player select the track with a widest range of bitrates.
* @memberof Constants#
* @static
*/
TRACK_SELECTION_MODE_WIDEST_RANGE: 'widestRange',
/**
* @constant {string} CMCD_QUERY_KEY specifies the key that is used for the CMCD query parameter.
* @memberof Constants#
* @static
*/
CMCD_QUERY_KEY: 'CMCD',
/**
* @constant {string} CMCD_MODE_QUERY specifies to attach CMCD metrics as query parameters.
* @memberof Constants#
* @static
*/
CMCD_MODE_QUERY: 'query',
/**
* @constant {string} CMCD_MODE_HEADER specifies to attach CMCD metrics as HTTP headers.
* @memberof Constants#
* @static
*/
CMCD_MODE_HEADER: 'header',
/**
* @constant {string} CMCD_AVAILABLE_KEYS specifies all the available keys for CMCD metrics.
* @memberof Constants#
* @static
*/
CMCD_AVAILABLE_KEYS: ['br', 'd', 'ot', 'tb', 'bl', 'dl', 'mtp', 'nor', 'nrr', 'su', 'bs', 'rtp', 'cid', 'pr', 'sf', 'sid', 'st', 'v'],
/**
* @constant {string} CMCD_AVAILABLE_KEYS_V2 specifies all the available keys for CMCD version 2 metrics.
* @memberof Constants#
* @static
*/
CMCD_V2_AVAILABLE_KEYS: ['msd', 'ltc'],
/**
* @constant {string} CMCD_AVAILABLE_REQUESTS specifies all the available requests type for CMCD metrics.
* @memberof Constants#
* @static
*/
CMCD_AVAILABLE_REQUESTS: ['segment', 'mpd', 'xlink', 'steering', 'other'],
INITIALIZE: 'initialize',
TEXT_SHOWING: 'showing',
TEXT_HIDDEN: 'hidden',
TEXT_DISABLED: 'disabled',
ACCESSIBILITY_CEA608_SCHEME: 'urn:scte:dash:cc:cea-608:2015',
CC1: 'CC1',
CC3: 'CC3',
UTF8: 'utf-8',
SCHEME_ID_URI: 'schemeIdUri',
START_TIME: 'starttime',
SERVICE_DESCRIPTION_DVB_LL_SCHEME: 'urn:dvb:dash:lowlatency:scope:2019',
SUPPLEMENTAL_PROPERTY_DVB_LL_SCHEME: 'urn:dvb:dash:lowlatency:critical:2019',
CTA_5004_2023_SCHEME: 'urn:mpeg:dash:cta-5004:2023',
THUMBNAILS_SCHEME_ID_URIS: ['http://dashif.org/thumbnail_tile', 'http://dashif.org/guidelines/thumbnail_tile'],
FONT_DOWNLOAD_DVB_SCHEME: 'urn:dvb:dash:fontdownload:2014',
COLOUR_PRIMARIES_SCHEME_ID_URI: 'urn:mpeg:mpegB:cicp:ColourPrimaries',
URL_QUERY_INFO_SCHEME: 'urn:mpeg:dash:urlparam:2014',
EXT_URL_QUERY_INFO_SCHEME: 'urn:mpeg:dash:urlparam:2016',
MATRIX_COEFFICIENTS_SCHEME_ID_URI: 'urn:mpeg:mpegB:cicp:MatrixCoefficients',
TRANSFER_CHARACTERISTICS_SCHEME_ID_URI: 'urn:mpeg:mpegB:cicp:TransferCharacteristics',
SEGMENT_SEQUENCE_REPRESENTATION_SCHEME_ID_URI: 'urn:mpeg:dash:ssr:2023',
HDR_METADATA_FORMAT_SCHEME_ID_URI: 'urn:dvb:dash:hdr-dmi',
HDR_METADATA_FORMAT_VALUES: {
ST2094_10: 'ST2094-10',
SL_HDR2: 'SL-HDR2',
ST2094_40: 'ST2094-40'
},
MEDIA_CAPABILITIES_API: {
COLORGAMUT: {
SRGB: 'srgb',
P3: 'p3',
REC2020: 'rec2020'
},
TRANSFERFUNCTION: {
SRGB: 'srgb',
PQ: 'pq',
HLG: 'hlg'
},
HDR_METADATATYPE: {
SMPTE_ST_2094_10: 'smpteSt2094-10',
SLHDR2: 'slhdr2',
SMPTE_ST_2094_40: 'smpteSt2094-40'
}
},
XML: 'XML',
ARRAY_BUFFER: 'ArrayBuffer',
DVB_REPORTING_URL: 'dvb:reportingUrl',
DVB_PROBABILITY: 'dvb:probability',
OFF_MIMETYPE: 'application/font-sfnt',
WOFF_MIMETYPE: 'application/font-woff',
VIDEO_ELEMENT_READY_STATES: {
HAVE_NOTHING: 0,
HAVE_METADATA: 1,
HAVE_CURRENT_DATA: 2,
HAVE_FUTURE_DATA: 3,
HAVE_ENOUGH_DATA: 4
},
FILE_LOADER_TYPES: {
FETCH: 'fetch_loader',
XHR: 'xhr_loader'
},
THROUGHPUT_TYPES: {
LATENCY: 'throughput_type_latency',
BANDWIDTH: 'throughput_type_bandwidth'
},
THROUGHPUT_CALCULATION_MODES: {
EWMA: 'throughputCalculationModeEwma',
ZLEMA: 'throughputCalculationModeZlema',
ARITHMETIC_MEAN: 'throughputCalculationModeArithmeticMean',
BYTE_SIZE_WEIGHTED_ARITHMETIC_MEAN: 'throughputCalculationModeByteSizeWeightedArithmeticMean',
DATE_WEIGHTED_ARITHMETIC_MEAN: 'throughputCalculationModeDateWeightedArithmeticMean',
HARMONIC_MEAN: 'throughputCalculationModeHarmonicMean',
BYTE_SIZE_WEIGHTED_HARMONIC_MEAN: 'throughputCalculationModeByteSizeWeightedHarmonicMean',
DATE_WEIGHTED_HARMONIC_MEAN: 'throughputCalculationModeDateWeightedHarmonicMean',
},
LOW_LATENCY_DOWNLOAD_TIME_CALCULATION_MODE: {
MOOF_PARSING: 'lowLatencyDownloadTimeCalculationModeMoofParsing',
DOWNLOADED_DATA: 'lowLatencyDownloadTimeCalculationModeDownloadedData',
AAST: 'lowLatencyDownloadTimeCalculationModeAast',
},
RULES_TYPES: {
QUALITY_SWITCH_RULES: 'qualitySwitchRules',
ABANDON_FRAGMENT_RULES: 'abandonFragmentRules'
},
QUALITY_SWITCH_RULES: {
BOLA_RULE: 'BolaRule',
THROUGHPUT_RULE: 'ThroughputRule',
INSUFFICIENT_BUFFER_RULE: 'InsufficientBufferRule',
SWITCH_HISTORY_RULE: 'SwitchHistoryRule',
DROPPED_FRAMES_RULE: 'DroppedFramesRule',
LEARN_TO_ADAPT_RULE: 'L2ARule',
LOL_PLUS_RULE: 'LoLPRule'
},
ABANDON_FRAGMENT_RULES: {
ABANDON_REQUEST_RULE: 'AbandonRequestsRule'
},
/**
* @constant {string} ID3_SCHEME_ID_URI specifies scheme ID URI for ID3 timed metadata
* @memberof Constants#
* @static
*/
ID3_SCHEME_ID_URI: 'https://aomedia.org/emsg/ID3',
COMMON_ACCESS_TOKEN_HEADER: 'common-access-token',
DASH_ROLE_SCHEME_ID: 'urn:mpeg:dash:role:2011',
CODEC_FAMILIES: {
MP3: 'mp3',
AAC: 'aac',
AC3: 'ac3',
EC3: 'ec3',
DTSX: 'dtsx',
DTSC: 'dtsc',
AVC: 'avc',
HEVC: 'hevc'
}
}
|