File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -5434,7 +5434,15 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
5434
5434
for ( const nativeCue of nativeCues ) {
5435
5435
const cue = shaka . text . Utils . mapNativeCueToShakaCue ( nativeCue ) ;
5436
5436
if ( cue ) {
5437
- this . config_ . mediaSource . modifyCueCallback ( cue , null , time ) ;
5437
+ const modifyCueCallback = this . config_ . mediaSource . modifyCueCallback ;
5438
+ // Closure compiler removes the call to modifyCueCallback for reasons
5439
+ // unknown to us.
5440
+ // See https://github.com/shaka-project/shaka-player/pull/8261
5441
+ // We'll want to revisit this condition once we migrated to TS.
5442
+ // See https://github.com/shaka-project/shaka-player/issues/8262 for TS.
5443
+ if ( modifyCueCallback ) {
5444
+ modifyCueCallback ( cue , null , time ) ;
5445
+ }
5438
5446
allCues . push ( cue ) ;
5439
5447
}
5440
5448
}
You can’t perform that action at this time.
0 commit comments