You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an option for caption services metadata in case the user wants to specify labels for 608/708 captions, override the ones provided in the manifest, or needs to add more information like character encoding (this isn't currently available but will be added some time in the future).
For HLS, an EXT-X-MEDIA tag can be specified with an INSTREAM-ID attribute. We already support this. https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-08#section-4.4.6.1
This PR updated mpd-parser which uses the ANSI 214 supplemental spec section 7.2 to parse out the same information from MPD files. videojs/mpd-parser#131.
Adds a property called captionServices which has properties of the caption service IDs like CC1 or SERVICE1 and allows a user to specify a language and label.
* Allow to re-define length (in seconds) of time delta when you compare current time and the end of the buffered range.
473
476
477
+
##### captionServices
478
+
* Type: `object`
479
+
* Default: undefined
480
+
* Provide extra information, like a label or a language, for instream (608 and 708) captions.
481
+
482
+
The captionServices options object has properties that map to the caption services. Each property is an object itself that includes several properties, like a label or language.
483
+
484
+
For 608 captions, the service names are `CC1`, `CC2`, `CC3`, and `CC4`. For 708 captions, the service names are `SERVICEn` where `n` is a digit between `1` and `63`.
485
+
###### Format
486
+
```js
487
+
{
488
+
vhs: {
489
+
captionServices: {
490
+
[serviceName]: {
491
+
language:String, // optional
492
+
label:String, // optional
493
+
default: boolean // optional
494
+
}
495
+
}
496
+
}
497
+
}
498
+
```
499
+
###### Example
500
+
```js
501
+
{
502
+
vhs: {
503
+
captionServices: {
504
+
CC1: {
505
+
language:'en',
506
+
label:'English'
507
+
},
508
+
SERVICE1: {
509
+
langauge:'kr',
510
+
label:'Korean',
511
+
default:true
512
+
}
513
+
}
514
+
}
515
+
}
516
+
```
517
+
474
518
### Runtime Properties
475
519
Runtime properties are attached to the tech object when HLS is in
476
520
use. You can get a reference to the VHS source handler like this:
0 commit comments