Skip to content

Commit dc7582e

Browse files
committed
Add Debug Tool message for Generic AD Switch
1 parent d80c94a commit dc7582e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/playercomponent.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import PluginData from "./plugindata"
99
import PluginEnums from "./pluginenums"
1010
import Plugins from "./plugins"
1111
import MediaPlayerBase from "./playbackstrategy/modifiers/mediaplayerbase"
12+
import DebugTool from "./debugger/debugtool"
1213

1314
function PlayerComponent(
1415
playbackElement,
@@ -122,6 +123,8 @@ function PlayerComponent(
122123

123124
setupPauseAfterLoad()
124125
return replaceMediaSources(sources).then(() => {
126+
DebugTool.info(`Source changed. Audio Described ${to ? "on" : "off"}.`)
127+
125128
audioDescribedCallback(to)
126129
})
127130
}

0 commit comments

Comments
 (0)