Commit 2176457 1 parent 20f733e commit 2176457 Copy full SHA for 2176457
File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -176,11 +176,18 @@ function TitanVideo(options) {
176
176
return Math . floor ( time * 1000 ) ;
177
177
}
178
178
case 'subtitlesTracks' : {
179
+ console . log ( 'subtitlesTracks 1' )
179
180
if ( stream === null ) {
181
+ console . log ( 'subtitlesTracks 2' )
180
182
return [ ] ;
181
183
}
182
184
185
+ console . log ( 'subtitlesTracks 3' )
186
+ console . log ( videoElement . textTracks )
187
+ console . log ( typeof videoElement . textTracks )
188
+
183
189
if ( ! videoElement . textTracks || ! Array . from ( videoElement . textTracks ) . length ) {
190
+ console . log ( 'subtitlesTracks 4' )
184
191
return [ ] ;
185
192
}
186
193
@@ -252,11 +259,17 @@ function TitanVideo(options) {
252
259
return styleElement . sheet . cssRules [ 0 ] . style . textShadow . slice ( 0 , styleElement . sheet . cssRules [ 0 ] . style . textShadow . indexOf ( ')' ) + 1 ) ;
253
260
}
254
261
case 'audioTracks' : {
262
+ console . log ( 'audioTracks 1' )
255
263
if ( stream === null ) {
264
+ console . log ( 'audioTracks 2' )
256
265
return [ ] ;
257
266
}
258
267
268
+ console . log ( 'audioTracks 3' )
269
+ console . log ( videoElement . audioTracks )
270
+ console . log ( typeof videoElement . audioTracks )
259
271
if ( ! videoElement . audioTracks || ! Array . from ( videoElement . audioTracks ) . length ) {
272
+ console . log ( 'audioTracks 4' )
260
273
return [ ] ;
261
274
}
262
275
You can’t perform that action at this time.
0 commit comments