Improve error logging for video playback
This commit is contained in:
+2
-2
@@ -258,8 +258,8 @@ export class VideoRTC extends HTMLElement {
|
|||||||
4: 'MEDIA_ERR_SRC_NOT_SUPPORTED'
|
4: 'MEDIA_ERR_SRC_NOT_SUPPORTED'
|
||||||
};
|
};
|
||||||
console.error('[VideoRTC] Video error:', {
|
console.error('[VideoRTC] Video error:', {
|
||||||
error: MEDIA_ERRORS[err?.code] || 'unknown',
|
error: err ? MEDIA_ERRORS[err.code] : 'unknown',
|
||||||
message: err?.message || 'unknown',
|
message: err ? err.message : 'unknown',
|
||||||
codecs: this.mseCodecs || 'not set',
|
codecs: this.mseCodecs || 'not set',
|
||||||
readyState: this.video.readyState,
|
readyState: this.video.readyState,
|
||||||
networkState: this.video.networkState,
|
networkState: this.video.networkState,
|
||||||
|
|||||||
Reference in New Issue
Block a user