mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2026-04-22 15:47:06 +08:00
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'
|
||||
};
|
||||
console.error('[VideoRTC] Video error:', {
|
||||
error: MEDIA_ERRORS[err?.code] || 'unknown',
|
||||
message: err?.message || 'unknown',
|
||||
error: err ? MEDIA_ERRORS[err.code] : 'unknown',
|
||||
message: err ? err.message : 'unknown',
|
||||
codecs: this.mseCodecs || 'not set',
|
||||
readyState: this.video.readyState,
|
||||
networkState: this.video.networkState,
|
||||
|
||||
Reference in New Issue
Block a user