The Vinyl player includes automatic error recovery through the
AutoResetController, which monitors for playback errors and attempts to
recover from transient failures.
VinylPlayer forwards all error events to the AutoResetControllerSERVICE_INTERNAL ReportableError instances trigger auto-reset
behaviorSERVICE_EXTERNAL, MEDIA, API) are ignoredThe controller monitors for retry opportunities and emits reset events in these scenarios:
retryInterval seconds if the device is online and
retry limit not exceededplaypauseseekingplayingWhen a reset is triggered:
VinylPlayer: DrmController,
PlaybackController, TrackControllerreset event is dispatchedmaxRetries (default: 30)retryInterval seconds (default: 30)const player = createVinylPlayer({
autoResetController: {
enabled: true, // Enable/disable auto-reset (default: true)
maxRetries: 30, // Max automatic retries (default: 30)
retryInterval: 30, // Seconds between retries (default: 30)
},
})
Enable debug logging (?vinylLogLevel=debug) to monitor auto-reset behavior:
// Look for these log messages (filter on 'reset'):
// "setError" - Error monitoring started
// "online, emitting reset" - Network recovery triggered
// "interval, emitting reset" - Timeout retry triggered
// "max retries exhausted" - Retry limit reached