add patches for playlist/play() exception debugging
This commit is contained in:
parent
dbdfa7585f
commit
afad271f22
3 changed files with 241 additions and 3 deletions
18
patches/mediaelement/03-mediaelement.js.diff
Normal file
18
patches/mediaelement/03-mediaelement.js.diff
Normal file
|
@ -0,0 +1,18 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue