chore(player.js): add small console.debug message on error

This commit is contained in:
Fijxu 2025-02-18 02:32:14 -03:00
parent aff5fbb1aa
commit 089c63a70b
No known key found for this signature in database
GPG Key ID: 32C1DDF333EDA6A4

View File

@ -58,6 +58,7 @@ videojs.Vhs.MAX_GOAL_BUFFER_LENGTH = 80;
var player = videojs('player', options); var player = videojs('player', options);
player.on('error', function () { player.on('error', function () {
console.debug(`[VideoJS Debug] Playback cannot continue, error: ${player.error().code}`)
if (video_data.params.quality === 'dash') return; if (video_data.params.quality === 'dash') return;
var localNotDisabled = ( var localNotDisabled = (