mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 10:19:24 +02:00
Update
This commit is contained in:
parent
0e3fa24329
commit
4e95a0e94c
369 changed files with 16946 additions and 89882 deletions
11
node_modules/mux.js/README.md
generated
vendored
11
node_modules/mux.js/README.md
generated
vendored
|
@ -333,8 +333,15 @@ transmuxer.on('data', function (segment) {
|
|||
metadataTextTrack.addCue(new VTTCue(time, time, frame.value));
|
||||
});
|
||||
// create a VTTCue for all the parsed CEA-608 captions:>
|
||||
segment.captions.forEach(function(cue) {
|
||||
captionTextTrack.addCue(new VTTCue(cue.startTime, cue.endTime, cue.text));
|
||||
segment.captions.forEach(function(captionSet) {
|
||||
// Caption sets contains multiple caption cues with text and position data.
|
||||
captionSet.content.forEach(function(cue) {
|
||||
const newCue = new VTTCue(cue.startTime, cue.endTime, cue.text);
|
||||
newCue.line = cue.line;
|
||||
newCue.position = cue.position;
|
||||
|
||||
captionTextTrack.addCue(newCue);
|
||||
});
|
||||
});
|
||||
});
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue