shaka-player 4.4.0 → 4.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/deflake.yaml +8 -5
- package/.github/workflows/release-please.yaml +64 -16
- package/.github/workflows/report-incremental-coverage.yaml +2 -2
- package/.github/workflows/shaka-bot-commands/command-help.sh +27 -0
- package/.github/workflows/shaka-bot-commands/command-test.sh +56 -0
- package/.github/workflows/shaka-bot-commands/lib.sh +83 -0
- package/.github/workflows/shaka-bot-commands/main.sh +51 -0
- package/.github/workflows/talk-to-shaka-bot.yaml +29 -0
- package/.github/workflows/update-issues.yaml +2 -1
- package/.github/workflows/validate-pr-title.yaml +3 -11
- package/CHANGELOG.md +33 -0
- package/CONTRIBUTORS +1 -0
- package/demo/custom.js +5 -5
- package/dist/demo.compiled.debug.js +3 -3
- package/dist/demo.compiled.debug.map +1 -1
- package/dist/demo.compiled.js +3 -3
- package/dist/demo.compiled.map +1 -1
- package/dist/deps.js +2 -2
- package/dist/locales.js +32 -32
- package/dist/shaka-player.compiled.d.ts +18 -2
- package/dist/shaka-player.compiled.debug.d.ts +18 -2
- package/dist/shaka-player.compiled.debug.externs.js +38 -1
- package/dist/shaka-player.compiled.debug.js +289 -280
- package/dist/shaka-player.compiled.debug.map +3 -3
- package/dist/shaka-player.compiled.externs.js +38 -1
- package/dist/shaka-player.compiled.js +944 -940
- package/dist/shaka-player.compiled.map +4 -4
- package/dist/shaka-player.ui.d.ts +18 -2
- package/dist/shaka-player.ui.debug.d.ts +18 -2
- package/dist/shaka-player.ui.debug.externs.js +38 -1
- package/dist/shaka-player.ui.debug.js +352 -343
- package/dist/shaka-player.ui.debug.map +3 -3
- package/dist/shaka-player.ui.externs.js +38 -1
- package/dist/shaka-player.ui.js +1037 -1034
- package/dist/shaka-player.ui.map +4 -4
- package/docs/tutorials/fairplay.md +8 -0
- package/docs/tutorials/faq.md +1 -1
- package/externs/shaka/namespace.js +2 -2
- package/externs/shaka/text.js +7 -0
- package/externs/shaka/transmuxer.js +2 -1
- package/lib/dash/segment_template.js +3 -0
- package/lib/hls/hls_parser.js +9 -4
- package/lib/media/media_source_engine.js +23 -3
- package/lib/mss/mss_parser.js +1 -0
- package/lib/player.js +8 -57
- package/lib/text/lrc_text_parser.js +8 -0
- package/lib/text/mp4_ttml_parser.js +8 -0
- package/lib/text/mp4_vtt_parser.js +8 -0
- package/lib/text/sbv_text_parser.js +8 -0
- package/lib/text/simple_text_displayer.js +0 -1
- package/lib/text/srt_text_parser.js +8 -0
- package/lib/text/ssa_text_parser.js +8 -0
- package/lib/text/text_engine.js +8 -1
- package/lib/text/ttml_text_parser.js +10 -1
- package/lib/text/ui_text_displayer.js +49 -3
- package/lib/text/vtt_text_parser.js +21 -5
- package/lib/transmuxer/aac_transmuxer.js +1 -1
- package/lib/transmuxer/ac3_transmuxer.js +1 -0
- package/lib/transmuxer/ec3_transmuxer.js +1 -0
- package/lib/transmuxer/mp3_transmuxer.js +1 -0
- package/lib/transmuxer/ts_transmuxer.js +84 -100
- package/lib/util/error.js +16 -10
- package/lib/util/mp4_generator.js +27 -20
- package/lib/util/player_configuration.js +2 -2
- package/lib/util/stream_utils.js +13 -11
- package/lib/util/ts_parser.js +137 -117
- package/package.json +2 -2
- package/test/hls/hls_parser_unit.js +12 -13
- package/test/media/media_source_engine_integration.js +2 -2
- package/test/mss/mss_player_integration.js +1 -1
- package/test/text/text_engine_unit.js +4 -2
- package/test/text/ttml_text_parser_unit.js +3 -4
- package/test/text/vtt_text_parser_unit.js +17 -2
- package/test/text/web_vtt_layout_integration.js +0 -1
- package/ui/language_utils.js +0 -15
package/dist/deps.js
CHANGED
|
@@ -150,7 +150,7 @@ goog.addDependency('../../../../lib/text/text_engine.js', ['shaka.text.TextEngin
|
|
|
150
150
|
goog.addDependency('../../../../lib/text/text_utils.js', ['shaka.text.Utils'], ['shaka.text.Cue'], {'lang': 'es6'});
|
|
151
151
|
goog.addDependency('../../../../lib/text/ttml_text_parser.js', ['shaka.text.TtmlTextParser'], ['goog.asserts', 'shaka.log', 'shaka.text.Cue', 'shaka.text.CueRegion', 'shaka.text.TextEngine', 'shaka.util.ArrayUtils', 'shaka.util.Error', 'shaka.util.StringUtils', 'shaka.util.XmlUtils'], {'lang': 'es8'});
|
|
152
152
|
goog.addDependency('../../../../lib/text/ui_text_displayer.js', ['shaka.text.UITextDisplayer'], ['goog.asserts', 'shaka.text.Cue', 'shaka.text.CueRegion', 'shaka.util.Dom', 'shaka.util.EventManager', 'shaka.util.Timer'], {'lang': 'es6'});
|
|
153
|
-
goog.addDependency('../../../../lib/text/vtt_text_parser.js', ['shaka.text.VttTextParser'], ['goog.asserts', 'shaka.log', 'shaka.text.Cue', 'shaka.text.CueRegion', 'shaka.text.TextEngine', 'shaka.util.Error', 'shaka.util.StringUtils', 'shaka.util.TextParser', 'shaka.util.XmlUtils'], {'lang': 'es6'});
|
|
153
|
+
goog.addDependency('../../../../lib/text/vtt_text_parser.js', ['shaka.text.VttTextParser'], ['goog.asserts', 'shaka.log', 'shaka.media.ManifestParser', 'shaka.text.Cue', 'shaka.text.CueRegion', 'shaka.text.TextEngine', 'shaka.util.Error', 'shaka.util.StringUtils', 'shaka.util.TextParser', 'shaka.util.XmlUtils'], {'lang': 'es6'});
|
|
154
154
|
goog.addDependency('../../../../lib/text/web_vtt_generator.js', ['shaka.text.WebVttGenerator'], ['shaka.text.Cue', 'shaka.text.Utils'], {'lang': 'es6'});
|
|
155
155
|
goog.addDependency('../../../../lib/transmuxer/aac_transmuxer.js', ['shaka.transmuxer.AacTransmuxer'], ['shaka.media.Capabilities', 'shaka.transmuxer.ADTS', 'shaka.transmuxer.TransmuxerEngine', 'shaka.util.BufferUtils', 'shaka.util.Error', 'shaka.util.Id3Utils', 'shaka.util.ManifestParserUtils', 'shaka.util.MimeUtils', 'shaka.util.Mp4Generator', 'shaka.util.Uint8ArrayUtils'], {'lang': 'es6'});
|
|
156
156
|
goog.addDependency('../../../../lib/transmuxer/ac3.js', ['shaka.transmuxer.Ac3'], [], {'lang': 'es6'});
|
|
@@ -212,7 +212,7 @@ goog.addDependency('../../../../lib/util/string_utils.js', ['shaka.util.StringUt
|
|
|
212
212
|
goog.addDependency('../../../../lib/util/switch_history.js', ['shaka.util.SwitchHistory'], [], {'lang': 'es6'});
|
|
213
213
|
goog.addDependency('../../../../lib/util/text_parser.js', ['shaka.util.TextParser'], ['goog.asserts'], {'lang': 'es6'});
|
|
214
214
|
goog.addDependency('../../../../lib/util/timer.js', ['shaka.util.Timer'], ['shaka.util.DelayedTick'], {'lang': 'es6'});
|
|
215
|
-
goog.addDependency('../../../../lib/util/ts_parser.js', ['shaka.util.TsParser'], ['
|
|
215
|
+
goog.addDependency('../../../../lib/util/ts_parser.js', ['shaka.util.TsParser'], ['shaka.Deprecate', 'shaka.log', 'shaka.util.ExpGolomb', 'shaka.util.Id3Utils', 'shaka.util.Uint8ArrayUtils'], {'lang': 'es6'});
|
|
216
216
|
goog.addDependency('../../../../lib/util/uint8array_utils.js', ['shaka.util.Uint8ArrayUtils'], ['shaka.util.BufferUtils', 'shaka.util.StringUtils'], {'lang': 'es6'});
|
|
217
217
|
goog.addDependency('../../../../lib/util/xml_utils.js', ['shaka.util.XmlUtils'], ['goog.asserts', 'shaka.log', 'shaka.util.Lazy', 'shaka.util.StringUtils'], {'lang': 'es8'});
|
|
218
218
|
goog.addDependency('../../../../third_party/closure-uri/uri.js', ['goog.Uri', 'goog.Uri.QueryData'], ['goog.asserts', 'goog.uri.utils', 'goog.uri.utils.ComponentIndex']);
|
package/dist/locales.js
CHANGED
|
@@ -721,45 +721,45 @@ shaka.ui.Locales.addTo = function(localization) {
|
|
|
721
721
|
* @const
|
|
722
722
|
*/
|
|
723
723
|
shaka.ui.Locales.Ids = {
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
724
|
+
EXIT_FULL_SCREEN: 'EXIT_FULL_SCREEN',
|
|
725
|
+
LIVE: 'LIVE',
|
|
726
|
+
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
727
|
+
LOOP: 'LOOP',
|
|
728
|
+
UNMUTE: 'UNMUTE',
|
|
728
729
|
AIRPLAY: 'AIRPLAY',
|
|
730
|
+
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
731
|
+
SKIP_AD: 'SKIP_AD',
|
|
732
|
+
AD_PROGRESS: 'AD_PROGRESS',
|
|
733
|
+
PAUSE: 'PAUSE',
|
|
734
|
+
PLAY: 'PLAY',
|
|
735
|
+
CAPTIONS: 'CAPTIONS',
|
|
729
736
|
STATISTICS: 'STATISTICS',
|
|
737
|
+
MUTE: 'MUTE',
|
|
738
|
+
FAST_FORWARD: 'FAST_FORWARD',
|
|
739
|
+
EXIT_LOOP_MODE: 'EXIT_LOOP_MODE',
|
|
730
740
|
ENTER_PICTURE_IN_PICTURE: 'ENTER_PICTURE_IN_PICTURE',
|
|
731
|
-
|
|
732
|
-
AD_DURATION: 'AD_DURATION',
|
|
733
|
-
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
734
|
-
RESOLUTION: 'RESOLUTION',
|
|
735
|
-
CAST: 'CAST',
|
|
736
|
-
UNRECOGNIZED_LANGUAGE: 'UNRECOGNIZED_LANGUAGE',
|
|
741
|
+
UNDETERMINED_LANGUAGE: 'UNDETERMINED_LANGUAGE',
|
|
737
742
|
VOLUME: 'VOLUME',
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
SKIP_TO_LIVE: 'SKIP_TO_LIVE',
|
|
742
|
-
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
|
|
743
|
-
QUALITY: 'QUALITY',
|
|
744
|
-
AD_PROGRESS: 'AD_PROGRESS',
|
|
743
|
+
SUBTITLE_FORCED: 'SUBTITLE_FORCED',
|
|
744
|
+
CAST: 'CAST',
|
|
745
|
+
AD_DURATION: 'AD_DURATION',
|
|
745
746
|
FULL_SCREEN: 'FULL_SCREEN',
|
|
747
|
+
PLAYBACK_RATE: 'PLAYBACK_RATE',
|
|
748
|
+
QUALITY: 'QUALITY',
|
|
749
|
+
NOT_APPLICABLE: 'NOT_APPLICABLE',
|
|
750
|
+
SEEK: 'SEEK',
|
|
746
751
|
REWIND: 'REWIND',
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
ON: 'ON',
|
|
752
|
-
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
752
|
+
EXIT_PICTURE_IN_PICTURE: 'EXIT_PICTURE_IN_PICTURE',
|
|
753
|
+
MULTIPLE_LANGUAGES: 'MULTIPLE_LANGUAGES',
|
|
754
|
+
OFF: 'OFF',
|
|
755
|
+
MORE_SETTINGS: 'MORE_SETTINGS',
|
|
753
756
|
REPLAY: 'REPLAY',
|
|
754
|
-
MUTE: 'MUTE',
|
|
755
757
|
BACK: 'BACK',
|
|
758
|
+
ON: 'ON',
|
|
756
759
|
LANGUAGE: 'LANGUAGE',
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
ENTER_LOOP_MODE: 'ENTER_LOOP_MODE',
|
|
763
|
-
CAPTIONS: 'CAPTIONS',
|
|
764
|
-
SKIP_AD: 'SKIP_AD',
|
|
760
|
+
PICTURE_IN_PICTURE: 'PICTURE_IN_PICTURE',
|
|
761
|
+
RESOLUTION: 'RESOLUTION',
|
|
762
|
+
AUTO_QUALITY: 'AUTO_QUALITY',
|
|
763
|
+
AD_TIME: 'AD_TIME',
|
|
764
|
+
SKIP_TO_LIVE: 'SKIP_TO_LIVE',
|
|
765
765
|
};
|
|
@@ -2087,6 +2087,7 @@ declare namespace shaka.text {
|
|
|
2087
2087
|
private noStructuralTyping_shaka_text_LrcTextParser : any;
|
|
2088
2088
|
parseInit (data : any ) : any ;
|
|
2089
2089
|
parseMedia (data : any , time : any ) : any ;
|
|
2090
|
+
setManifestType (manifestType : any ) : any ;
|
|
2090
2091
|
setSequenceMode (sequenceMode : any ) : any ;
|
|
2091
2092
|
}
|
|
2092
2093
|
}
|
|
@@ -2096,6 +2097,7 @@ declare namespace shaka.text {
|
|
|
2096
2097
|
private noStructuralTyping_shaka_text_Mp4TtmlParser : any;
|
|
2097
2098
|
parseInit (data : any ) : any ;
|
|
2098
2099
|
parseMedia (data : any , time : any ) : any ;
|
|
2100
|
+
setManifestType (manifestType : any ) : any ;
|
|
2099
2101
|
setSequenceMode (sequenceMode : any ) : any ;
|
|
2100
2102
|
}
|
|
2101
2103
|
}
|
|
@@ -2105,6 +2107,7 @@ declare namespace shaka.text {
|
|
|
2105
2107
|
private noStructuralTyping_shaka_text_Mp4VttParser : any;
|
|
2106
2108
|
parseInit (data : any ) : any ;
|
|
2107
2109
|
parseMedia (data : any , time : any ) : any ;
|
|
2110
|
+
setManifestType (manifestType : any ) : any ;
|
|
2108
2111
|
setSequenceMode (sequenceMode : any ) : any ;
|
|
2109
2112
|
}
|
|
2110
2113
|
}
|
|
@@ -2114,6 +2117,7 @@ declare namespace shaka.text {
|
|
|
2114
2117
|
private noStructuralTyping_shaka_text_SbvTextParser : any;
|
|
2115
2118
|
parseInit (data : any ) : any ;
|
|
2116
2119
|
parseMedia (data : any , time : any ) : any ;
|
|
2120
|
+
setManifestType (manifestType : any ) : any ;
|
|
2117
2121
|
setSequenceMode (sequenceMode : any ) : any ;
|
|
2118
2122
|
}
|
|
2119
2123
|
}
|
|
@@ -2141,6 +2145,7 @@ declare namespace shaka.text {
|
|
|
2141
2145
|
private noStructuralTyping_shaka_text_SrtTextParser : any;
|
|
2142
2146
|
parseInit (data : any ) : any ;
|
|
2143
2147
|
parseMedia (data : any , time : any ) : any ;
|
|
2148
|
+
setManifestType (manifestType : any ) : any ;
|
|
2144
2149
|
setSequenceMode (sequenceMode : any ) : any ;
|
|
2145
2150
|
/**
|
|
2146
2151
|
* Convert a SRT format to WebVTT
|
|
@@ -2158,6 +2163,7 @@ declare namespace shaka.text {
|
|
|
2158
2163
|
private noStructuralTyping_shaka_text_SsaTextParser : any;
|
|
2159
2164
|
parseInit (data : any ) : any ;
|
|
2160
2165
|
parseMedia (data : any , time : any ) : any ;
|
|
2166
|
+
setManifestType (manifestType : any ) : any ;
|
|
2161
2167
|
setSequenceMode (sequenceMode : any ) : any ;
|
|
2162
2168
|
}
|
|
2163
2169
|
}
|
|
@@ -2178,6 +2184,7 @@ declare namespace shaka.text {
|
|
|
2178
2184
|
private noStructuralTyping_shaka_text_TtmlTextParser : any;
|
|
2179
2185
|
parseInit (data : any ) : any ;
|
|
2180
2186
|
parseMedia (data : any , time : any ) : any ;
|
|
2187
|
+
setManifestType (manifestType : any ) : any ;
|
|
2181
2188
|
setSequenceMode (sequenceMode : any ) : any ;
|
|
2182
2189
|
}
|
|
2183
2190
|
}
|
|
@@ -2207,6 +2214,7 @@ declare namespace shaka.text {
|
|
|
2207
2214
|
private noStructuralTyping_shaka_text_VttTextParser : any;
|
|
2208
2215
|
parseInit (data : any ) : any ;
|
|
2209
2216
|
parseMedia (data : any , time : any ) : any ;
|
|
2217
|
+
setManifestType (manifestType : any ) : any ;
|
|
2210
2218
|
setSequenceMode (sequenceMode : any ) : any ;
|
|
2211
2219
|
}
|
|
2212
2220
|
}
|
|
@@ -2362,7 +2370,7 @@ declare namespace shaka.transmuxer {
|
|
|
2362
2370
|
* Check if the mime type and the content type is supported.
|
|
2363
2371
|
*/
|
|
2364
2372
|
isSupported (mimeType : string , contentType ? : string ) : boolean ;
|
|
2365
|
-
transmux (data : any , stream : any , reference : any , duration : any ) : any ;
|
|
2373
|
+
transmux (data : any , stream : any , reference : any , duration : any , contentType : any ) : any ;
|
|
2366
2374
|
}
|
|
2367
2375
|
}
|
|
2368
2376
|
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.externs.js
|
|
@@ -3234,6 +3242,10 @@ declare namespace shaka.util {
|
|
|
3234
3242
|
* Return the audio data
|
|
3235
3243
|
*/
|
|
3236
3244
|
getVideoData ( ) : shaka.extern.MPEG_PES [] ;
|
|
3245
|
+
/**
|
|
3246
|
+
* Return the video information
|
|
3247
|
+
*/
|
|
3248
|
+
getVideoInfo ( ) : { codec : string | null , height : string | null , width : string | null } ;
|
|
3237
3249
|
/**
|
|
3238
3250
|
* Return the video data
|
|
3239
3251
|
*/
|
|
@@ -4707,6 +4719,10 @@ declare namespace shaka.extern {
|
|
|
4707
4719
|
* @param timeContext The time information that should be used to adjust the times values for each cue.
|
|
4708
4720
|
*/
|
|
4709
4721
|
parseMedia (data : Uint8Array , timeContext : shaka.extern.TextParser.TimeContext ) : shaka.text.Cue [] ;
|
|
4722
|
+
/**
|
|
4723
|
+
* Notifies the manifest type.
|
|
4724
|
+
*/
|
|
4725
|
+
setManifestType (manifestType : string ) : any ;
|
|
4710
4726
|
/**
|
|
4711
4727
|
* Notifies the stream if the manifest is in sequence mode or not.
|
|
4712
4728
|
*/
|
|
@@ -4750,7 +4766,7 @@ declare namespace shaka.extern {
|
|
|
4750
4766
|
* Transmux a input data to MP4.
|
|
4751
4767
|
* @param reference The segment reference, or null for init segments
|
|
4752
4768
|
*/
|
|
4753
|
-
transmux (data : ArrayBuffer | ArrayBufferView , stream : shaka.extern.Stream , reference : shaka.media.SegmentReference | null , duration : number ) : Promise < Uint8Array > ;
|
|
4769
|
+
transmux (data : ArrayBuffer | ArrayBufferView , stream : shaka.extern.Stream , reference : shaka.media.SegmentReference | null , duration : number , contentType : string ) : Promise < Uint8Array > ;
|
|
4754
4770
|
}
|
|
4755
4771
|
}
|
|
4756
4772
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/transmuxer.js
|
|
@@ -2087,6 +2087,7 @@ declare namespace shaka.text {
|
|
|
2087
2087
|
private noStructuralTyping_shaka_text_LrcTextParser : any;
|
|
2088
2088
|
parseInit (data : any ) : any ;
|
|
2089
2089
|
parseMedia (data : any , time : any ) : any ;
|
|
2090
|
+
setManifestType (manifestType : any ) : any ;
|
|
2090
2091
|
setSequenceMode (sequenceMode : any ) : any ;
|
|
2091
2092
|
}
|
|
2092
2093
|
}
|
|
@@ -2096,6 +2097,7 @@ declare namespace shaka.text {
|
|
|
2096
2097
|
private noStructuralTyping_shaka_text_Mp4TtmlParser : any;
|
|
2097
2098
|
parseInit (data : any ) : any ;
|
|
2098
2099
|
parseMedia (data : any , time : any ) : any ;
|
|
2100
|
+
setManifestType (manifestType : any ) : any ;
|
|
2099
2101
|
setSequenceMode (sequenceMode : any ) : any ;
|
|
2100
2102
|
}
|
|
2101
2103
|
}
|
|
@@ -2105,6 +2107,7 @@ declare namespace shaka.text {
|
|
|
2105
2107
|
private noStructuralTyping_shaka_text_Mp4VttParser : any;
|
|
2106
2108
|
parseInit (data : any ) : any ;
|
|
2107
2109
|
parseMedia (data : any , time : any ) : any ;
|
|
2110
|
+
setManifestType (manifestType : any ) : any ;
|
|
2108
2111
|
setSequenceMode (sequenceMode : any ) : any ;
|
|
2109
2112
|
}
|
|
2110
2113
|
}
|
|
@@ -2114,6 +2117,7 @@ declare namespace shaka.text {
|
|
|
2114
2117
|
private noStructuralTyping_shaka_text_SbvTextParser : any;
|
|
2115
2118
|
parseInit (data : any ) : any ;
|
|
2116
2119
|
parseMedia (data : any , time : any ) : any ;
|
|
2120
|
+
setManifestType (manifestType : any ) : any ;
|
|
2117
2121
|
setSequenceMode (sequenceMode : any ) : any ;
|
|
2118
2122
|
}
|
|
2119
2123
|
}
|
|
@@ -2141,6 +2145,7 @@ declare namespace shaka.text {
|
|
|
2141
2145
|
private noStructuralTyping_shaka_text_SrtTextParser : any;
|
|
2142
2146
|
parseInit (data : any ) : any ;
|
|
2143
2147
|
parseMedia (data : any , time : any ) : any ;
|
|
2148
|
+
setManifestType (manifestType : any ) : any ;
|
|
2144
2149
|
setSequenceMode (sequenceMode : any ) : any ;
|
|
2145
2150
|
/**
|
|
2146
2151
|
* Convert a SRT format to WebVTT
|
|
@@ -2158,6 +2163,7 @@ declare namespace shaka.text {
|
|
|
2158
2163
|
private noStructuralTyping_shaka_text_SsaTextParser : any;
|
|
2159
2164
|
parseInit (data : any ) : any ;
|
|
2160
2165
|
parseMedia (data : any , time : any ) : any ;
|
|
2166
|
+
setManifestType (manifestType : any ) : any ;
|
|
2161
2167
|
setSequenceMode (sequenceMode : any ) : any ;
|
|
2162
2168
|
}
|
|
2163
2169
|
}
|
|
@@ -2178,6 +2184,7 @@ declare namespace shaka.text {
|
|
|
2178
2184
|
private noStructuralTyping_shaka_text_TtmlTextParser : any;
|
|
2179
2185
|
parseInit (data : any ) : any ;
|
|
2180
2186
|
parseMedia (data : any , time : any ) : any ;
|
|
2187
|
+
setManifestType (manifestType : any ) : any ;
|
|
2181
2188
|
setSequenceMode (sequenceMode : any ) : any ;
|
|
2182
2189
|
}
|
|
2183
2190
|
}
|
|
@@ -2207,6 +2214,7 @@ declare namespace shaka.text {
|
|
|
2207
2214
|
private noStructuralTyping_shaka_text_VttTextParser : any;
|
|
2208
2215
|
parseInit (data : any ) : any ;
|
|
2209
2216
|
parseMedia (data : any , time : any ) : any ;
|
|
2217
|
+
setManifestType (manifestType : any ) : any ;
|
|
2210
2218
|
setSequenceMode (sequenceMode : any ) : any ;
|
|
2211
2219
|
}
|
|
2212
2220
|
}
|
|
@@ -2362,7 +2370,7 @@ declare namespace shaka.transmuxer {
|
|
|
2362
2370
|
* Check if the mime type and the content type is supported.
|
|
2363
2371
|
*/
|
|
2364
2372
|
isSupported (mimeType : string , contentType ? : string ) : boolean ;
|
|
2365
|
-
transmux (data : any , stream : any , reference : any , duration : any ) : any ;
|
|
2373
|
+
transmux (data : any , stream : any , reference : any , duration : any , contentType : any ) : any ;
|
|
2366
2374
|
}
|
|
2367
2375
|
}
|
|
2368
2376
|
// Generated from /home/runner/work/shaka-player/shaka-player/dist/shaka-player.compiled.debug.externs.js
|
|
@@ -3234,6 +3242,10 @@ declare namespace shaka.util {
|
|
|
3234
3242
|
* Return the audio data
|
|
3235
3243
|
*/
|
|
3236
3244
|
getVideoData ( ) : shaka.extern.MPEG_PES [] ;
|
|
3245
|
+
/**
|
|
3246
|
+
* Return the video information
|
|
3247
|
+
*/
|
|
3248
|
+
getVideoInfo ( ) : { codec : string | null , height : string | null , width : string | null } ;
|
|
3237
3249
|
/**
|
|
3238
3250
|
* Return the video data
|
|
3239
3251
|
*/
|
|
@@ -4707,6 +4719,10 @@ declare namespace shaka.extern {
|
|
|
4707
4719
|
* @param timeContext The time information that should be used to adjust the times values for each cue.
|
|
4708
4720
|
*/
|
|
4709
4721
|
parseMedia (data : Uint8Array , timeContext : shaka.extern.TextParser.TimeContext ) : shaka.text.Cue [] ;
|
|
4722
|
+
/**
|
|
4723
|
+
* Notifies the manifest type.
|
|
4724
|
+
*/
|
|
4725
|
+
setManifestType (manifestType : string ) : any ;
|
|
4710
4726
|
/**
|
|
4711
4727
|
* Notifies the stream if the manifest is in sequence mode or not.
|
|
4712
4728
|
*/
|
|
@@ -4750,7 +4766,7 @@ declare namespace shaka.extern {
|
|
|
4750
4766
|
* Transmux a input data to MP4.
|
|
4751
4767
|
* @param reference The segment reference, or null for init segments
|
|
4752
4768
|
*/
|
|
4753
|
-
transmux (data : ArrayBuffer | ArrayBufferView , stream : shaka.extern.Stream , reference : shaka.media.SegmentReference | null , duration : number ) : Promise < Uint8Array > ;
|
|
4769
|
+
transmux (data : ArrayBuffer | ArrayBufferView , stream : shaka.extern.Stream , reference : shaka.media.SegmentReference | null , duration : number , contentType : string ) : Promise < Uint8Array > ;
|
|
4754
4770
|
}
|
|
4755
4771
|
}
|
|
4756
4772
|
// Generated from /home/runner/work/shaka-player/shaka-player/externs/shaka/transmuxer.js
|
|
@@ -1921,6 +1921,11 @@ shaka.util.TsParser = class {
|
|
|
1921
1921
|
* @return {{height: ?string, width: ?string}}
|
|
1922
1922
|
*/
|
|
1923
1923
|
getVideoResolution() {}
|
|
1924
|
+
/**
|
|
1925
|
+
* Return the video information
|
|
1926
|
+
* @return {{height: ?string, width: ?string, codec: ?string}}
|
|
1927
|
+
*/
|
|
1928
|
+
getVideoInfo() {}
|
|
1924
1929
|
/**
|
|
1925
1930
|
* Check if the passed data corresponds to an MPEG2-TS
|
|
1926
1931
|
* @param {Uint8Array} data
|
|
@@ -4416,6 +4421,10 @@ shaka.text.LrcTextParser = class {
|
|
|
4416
4421
|
* @override
|
|
4417
4422
|
*/
|
|
4418
4423
|
setSequenceMode(sequenceMode) {}
|
|
4424
|
+
/**
|
|
4425
|
+
* @override
|
|
4426
|
+
*/
|
|
4427
|
+
setManifestType(manifestType) {}
|
|
4419
4428
|
/**
|
|
4420
4429
|
* @override
|
|
4421
4430
|
*/
|
|
@@ -4433,6 +4442,10 @@ shaka.text.TtmlTextParser = class {
|
|
|
4433
4442
|
* @override
|
|
4434
4443
|
*/
|
|
4435
4444
|
setSequenceMode(sequenceMode) {}
|
|
4445
|
+
/**
|
|
4446
|
+
* @override
|
|
4447
|
+
*/
|
|
4448
|
+
setManifestType(manifestType) {}
|
|
4436
4449
|
/**
|
|
4437
4450
|
* @override
|
|
4438
4451
|
*/
|
|
@@ -4452,6 +4465,10 @@ shaka.text.Mp4TtmlParser = class {
|
|
|
4452
4465
|
* @override
|
|
4453
4466
|
*/
|
|
4454
4467
|
setSequenceMode(sequenceMode) {}
|
|
4468
|
+
/**
|
|
4469
|
+
* @override
|
|
4470
|
+
*/
|
|
4471
|
+
setManifestType(manifestType) {}
|
|
4455
4472
|
/**
|
|
4456
4473
|
* @override
|
|
4457
4474
|
*/
|
|
@@ -4471,6 +4488,10 @@ shaka.text.VttTextParser = class {
|
|
|
4471
4488
|
* @override
|
|
4472
4489
|
*/
|
|
4473
4490
|
setSequenceMode(sequenceMode) {}
|
|
4491
|
+
/**
|
|
4492
|
+
* @override
|
|
4493
|
+
*/
|
|
4494
|
+
setManifestType(manifestType) {}
|
|
4474
4495
|
/**
|
|
4475
4496
|
* @override
|
|
4476
4497
|
*/
|
|
@@ -4490,6 +4511,10 @@ shaka.text.Mp4VttParser = class {
|
|
|
4490
4511
|
* @override
|
|
4491
4512
|
*/
|
|
4492
4513
|
setSequenceMode(sequenceMode) {}
|
|
4514
|
+
/**
|
|
4515
|
+
* @override
|
|
4516
|
+
*/
|
|
4517
|
+
setManifestType(manifestType) {}
|
|
4493
4518
|
/**
|
|
4494
4519
|
* @override
|
|
4495
4520
|
*/
|
|
@@ -4507,6 +4532,10 @@ shaka.text.SbvTextParser = class {
|
|
|
4507
4532
|
* @override
|
|
4508
4533
|
*/
|
|
4509
4534
|
setSequenceMode(sequenceMode) {}
|
|
4535
|
+
/**
|
|
4536
|
+
* @override
|
|
4537
|
+
*/
|
|
4538
|
+
setManifestType(manifestType) {}
|
|
4510
4539
|
/**
|
|
4511
4540
|
* @override
|
|
4512
4541
|
*/
|
|
@@ -4526,6 +4555,10 @@ shaka.text.SrtTextParser = class {
|
|
|
4526
4555
|
* @override
|
|
4527
4556
|
*/
|
|
4528
4557
|
setSequenceMode(sequenceMode) {}
|
|
4558
|
+
/**
|
|
4559
|
+
* @override
|
|
4560
|
+
*/
|
|
4561
|
+
setManifestType(manifestType) {}
|
|
4529
4562
|
/**
|
|
4530
4563
|
* @override
|
|
4531
4564
|
*/
|
|
@@ -4551,6 +4584,10 @@ shaka.text.SsaTextParser = class {
|
|
|
4551
4584
|
* @override
|
|
4552
4585
|
*/
|
|
4553
4586
|
setSequenceMode(sequenceMode) {}
|
|
4587
|
+
/**
|
|
4588
|
+
* @override
|
|
4589
|
+
*/
|
|
4590
|
+
setManifestType(manifestType) {}
|
|
4554
4591
|
/**
|
|
4555
4592
|
* @override
|
|
4556
4593
|
*/
|
|
@@ -4818,5 +4855,5 @@ shaka.transmuxer.TsTransmuxer = class {
|
|
|
4818
4855
|
/**
|
|
4819
4856
|
* @override
|
|
4820
4857
|
*/
|
|
4821
|
-
transmux(data, stream, reference, duration) {}
|
|
4858
|
+
transmux(data, stream, reference, duration, contentType) {}
|
|
4822
4859
|
};
|