diff --git a/src/plugin.js b/src/plugin.js index 67216b17..bcef021f 100644 --- a/src/plugin.js +++ b/src/plugin.js @@ -262,7 +262,7 @@ const contribAdsPlugin = function(options) { for (let i = 0; i < textTrackList.length; i++) { const track = textTrackList[i]; - if (track.mode === 'showing') { + if (track.mode === 'showing' && track.kind !== 'metadata') { track.mode = 'disabled'; } } diff --git a/src/snapshot.js b/src/snapshot.js index 19a781ba..2eee76b5 100644 --- a/src/snapshot.js +++ b/src/snapshot.js @@ -51,7 +51,10 @@ export function getPlayerSnapshot(player) { track, mode: track.mode }); - track.mode = 'disabled'; + + if (track.kind !== 'metadata') { + track.mode = 'disabled'; + } } snapshotObject.suppressedTracks = suppressedTracks;