19 lines
770 B
Diff
19 lines
770 B
Diff
diff --git a/src/js/core/mediaelement.js b/src/js/core/mediaelement.js
|
|
index 20a46b7e..6cc65fd2 100644
|
|
--- a/src/js/core/mediaelement.js
|
|
+++ b/src/js/core/mediaelement.js
|
|
@@ -362,7 +362,12 @@ class MediaElement {
|
|
event = createEvent('pause', t.mediaElement);
|
|
t.mediaElement.dispatchEvent(event);
|
|
}
|
|
- t.mediaElement.originalNode.src = (mediaFiles[0].src || '');
|
|
+ try {
|
|
+ t.mediaElement.originalNode.src = (mediaFiles[0].src || '');
|
|
+ }
|
|
+ catch(err) {
|
|
+ console.log("ERROR: at t.mediaElement.originalNode.src: ", err);
|
|
+ }
|
|
|
|
// At least there must be a media in the `mediaFiles` since the media tag can come up an
|
|
// empty source for starters
|