When using the simple mode, non-existing URL's or non-responding servers do not get properly reported by the internally created media element.
The exact reason is unknown, but both trying to handle the error property or the error event on the referenced media element does not work, when it's created in the simple mode.
Code such as:
// in function createPeaksInstance
//....
// handle an already existing and future errors on the media element, e.g. a missing response
if (mediaElement?.error) {
handleMediaError(mediaElement.error);
}
if (mediaElement) {
mediaElement?.addEventListener('error', (error) => {
handleError(error.error);
});
}
When using the simple mode, non-existing URL's or non-responding servers do not get properly reported by the internally created media element.
The exact reason is unknown, but both trying to handle the error property or the error event on the referenced media element does not work, when it's created in the simple mode.
Code such as:
does only work for slot mode and external mode.