diff --git a/src/video-on-demand/index.ts b/src/video-on-demand/index.ts index d611e18..b3ff069 100644 --- a/src/video-on-demand/index.ts +++ b/src/video-on-demand/index.ts @@ -94,7 +94,9 @@ export class VideoOnDemand extends HTMLElement { } videoEl.addEventListener('error', (event) => { - this.dispatchEvent(new VODEvent('error', vod, { event })) + const payload = { event, videoElementLastError: videoEl.error } + this.dispatchEvent(new VODEvent('error', vod, payload)) + console.error('video-on-demand error', payload) }) let played = false