Skip to content

Commit 6d6bfd1

Browse files
alexrqsgkatsev
authored andcommitted
fix: use consistent id for tech, no matter how it is loaded (videojs#5415)
Change the constant used in the techId prop to the camelCased version, this will result on consistent id when loadTech_() is executed. Fixes videojs#5411
1 parent 2e83888 commit 6d6bfd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/player.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ class Player extends Component {
945945
autoplay,
946946
'nativeControlsForTouch': this.options_.nativeControlsForTouch,
947947
'playerId': this.id(),
948-
'techId': `${this.id()}_${titleTechName}_api`,
948+
'techId': `${this.id()}_${camelTechName}_api`,
949949
'playsinline': this.options_.playsinline,
950950
'preload': this.options_.preload,
951951
'loop': this.options_.loop,

0 commit comments

Comments
 (0)