Open An0nymous0 opened 6 years ago
I think this could be another symptom of the same issue described in #1001
I'm also experiencing this issue. I don't think it has anything to do with #1001. That error is about destroying the Plyr instance and using youtube. Our issue is that simply changing the source to a different mp4 is triggering the "onEnded" event, which it should not.
Changing the source calls destroy()
, which calls stop()
. Calling stop()
from destroy()
is the problem in both cases as I see it. I haven't tried this though. I just read the code.
Note that this only happens in IE. (I've seen it happen in IE11 and Edge)
Alright! I could be wrong. Wouldn't be the first time.
Added the label "Help wanted". If this issue is important to you, then please help us out. We have a lot of users, but few contributors.
Im getting this issue as well. On Edge, ended event is trigger when source changes. Any idea where to look for in the source code?
Expected behaviour
Set the plyr.source,Do not enter the event ended
Actual behaviour
IE browser Set the plyr.source Enter the event ended
Environment
Steps to reproduce
1. this.plyrInstances.on('ended', () => { alert(1) });
2. this.plyrInstances.source = { type: 'video', title: 'video', sources: [{ src:'xx.mp4', type: 'video/mp4' }, ], }
-