Skip to content

Commit 3395dc8

Browse files
committed
fix(CMCD): Do not call play() if CMCD is not enabled (#8149)
1 parent fb620c0 commit 3395dc8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/util/cmcd_manager.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ shaka.util.CmcdManager = class {
171171
* @param {number} startTimeOfLoad
172172
*/
173173
setStartTimeOfLoad(startTimeOfLoad) {
174+
if (!this.config_ || !this.config_.enabled ||
175+
this.config_.version != shaka.util.CmcdManager.Version.VERSION_2) {
176+
return;
177+
}
174178
if (this.video_ && this.video_.autoplay) {
175179
const playResult = this.video_.play();
176180
if (playResult) {

0 commit comments

Comments
 (0)