Skip to content

Commit 2176457

Browse files
committed
More Debug Logs
1 parent 20f733e commit 2176457

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/TitanVideo/TitanVideo.js

+13
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,18 @@ function TitanVideo(options) {
176176
return Math.floor(time * 1000);
177177
}
178178
case 'subtitlesTracks': {
179+
console.log('subtitlesTracks 1')
179180
if (stream === null) {
181+
console.log('subtitlesTracks 2')
180182
return [];
181183
}
182184

185+
console.log('subtitlesTracks 3')
186+
console.log(videoElement.textTracks)
187+
console.log(typeof videoElement.textTracks)
188+
183189
if (!videoElement.textTracks || !Array.from(videoElement.textTracks).length) {
190+
console.log('subtitlesTracks 4')
184191
return [];
185192
}
186193

@@ -252,11 +259,17 @@ function TitanVideo(options) {
252259
return styleElement.sheet.cssRules[0].style.textShadow.slice(0, styleElement.sheet.cssRules[0].style.textShadow.indexOf(')') + 1);
253260
}
254261
case 'audioTracks': {
262+
console.log('audioTracks 1')
255263
if (stream === null) {
264+
console.log('audioTracks 2')
256265
return [];
257266
}
258267

268+
console.log('audioTracks 3')
269+
console.log(videoElement.audioTracks)
270+
console.log(typeof videoElement.audioTracks)
259271
if (!videoElement.audioTracks || !Array.from(videoElement.audioTracks).length) {
272+
console.log('audioTracks 4')
260273
return [];
261274
}
262275

0 commit comments

Comments
 (0)