const obj = document.createElement("video");
obj.onerror = () => {
console.error(`Error with media: ${obj.error.code}`);
};
obj.src = "https://example.com/blahblah.mp4";MediaError: code property / notebook
MediaError: code property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.