Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix for the error "this.pluginApi.pauseMedia is not a function" when using the flash player and removing the dom element. #788

Merged
merged 1 commit into from
Mar 11, 2013

Conversation

Jmaharman
Copy link
Contributor

When the player's "remove" function is called it doesn't
remove the internal reference to the removed player. This means that when the below are true an error is thrown when the next video is played.

  • pauseOtherPlayers option is true
  • the player being used is flash
  • the player.remove function is called
  • flash dom element has been removed

Bug fixed: When the player's "remove" function is called it doesn't
remove the internal reference to the removed player. When the
pauseOtherPlayers option is true, the player being used is flash and the
flash dom element has been removed an error is thrown when the next
video is played.
johndyer added a commit that referenced this pull request Mar 11, 2013
Bug fix for the error "this.pluginApi.pauseMedia is not a function" when using the flash player and removing the dom element.
@johndyer johndyer merged commit dec23c7 into mediaelement:master Mar 11, 2013
johndyer added a commit that referenced this pull request Apr 10, 2013
"splice is not a function" fix on MEP.remove() [follow-up from #779 and #788]
phuongdh pushed a commit to avalonmediasystem/mediaelement that referenced this pull request Oct 18, 2013
Bug fix for the error "this.pluginApi.pauseMedia is not a function" when using the flash player and removing the dom element.
phuongdh pushed a commit to avalonmediasystem/mediaelement that referenced this pull request Oct 18, 2013
mediaelement#788 tried to fix part of what mediaelement#779 did, but didn't acknowledge that
`mejs.players` is no longer an array, being an object now (a change
introduced by mediaelement#779). As such, remove() now throws a "splice is not
defined" error at that point.

This fix replaces the line added by mediaelement#788 with mediaelement#779's equivalent, but
preserves (and rectifies) the comment above.
phuongdh pushed a commit to avalonmediasystem/mediaelement that referenced this pull request Oct 18, 2013
"splice is not a function" fix on MEP.remove() [follow-up from mediaelement#779 and mediaelement#788]
rexblack pushed a commit to rexblack/mediaelement that referenced this pull request May 22, 2014
Bug fix for the error "this.pluginApi.pauseMedia is not a function" when using the flash player and removing the dom element.
rexblack pushed a commit to rexblack/mediaelement that referenced this pull request May 22, 2014
Bug fix for the error "this.pluginApi.pauseMedia is not a function" when using the flash player and removing the dom element.
rexblack pushed a commit to rexblack/mediaelement that referenced this pull request May 22, 2014
mediaelement#788 tried to fix part of what mediaelement#779 did, but didn't acknowledge that
`mejs.players` is no longer an array, being an object now (a change
introduced by mediaelement#779). As such, remove() now throws a "splice is not
defined" error at that point.

This fix replaces the line added by mediaelement#788 with mediaelement#779's equivalent, but
preserves (and rectifies) the comment above.
rexblack pushed a commit to rexblack/mediaelement that referenced this pull request May 22, 2014
mediaelement#788 tried to fix part of what mediaelement#779 did, but didn't acknowledge that
`mejs.players` is no longer an array, being an object now (a change
introduced by mediaelement#779). As such, remove() now throws a "splice is not
defined" error at that point.

This fix replaces the line added by mediaelement#788 with mediaelement#779's equivalent, but
preserves (and rectifies) the comment above.
rexblack pushed a commit to rexblack/mediaelement that referenced this pull request May 22, 2014
"splice is not a function" fix on MEP.remove() [follow-up from mediaelement#779 and mediaelement#788]
rexblack pushed a commit to rexblack/mediaelement that referenced this pull request May 22, 2014
"splice is not a function" fix on MEP.remove() [follow-up from mediaelement#779 and mediaelement#788]
marmite22 pushed a commit to elucidat/mediaelement that referenced this pull request Dec 16, 2016
Bug fix for the error "this.pluginApi.pauseMedia is not a function" when using the flash player and removing the dom element.
marmite22 pushed a commit to elucidat/mediaelement that referenced this pull request Dec 16, 2016
mediaelement#788 tried to fix part of what mediaelement#779 did, but didn't acknowledge that
`mejs.players` is no longer an array, being an object now (a change
introduced by mediaelement#779). As such, remove() now throws a "splice is not
defined" error at that point.

This fix replaces the line added by mediaelement#788 with mediaelement#779's equivalent, but
preserves (and rectifies) the comment above.
marmite22 pushed a commit to elucidat/mediaelement that referenced this pull request Dec 16, 2016
"splice is not a function" fix on MEP.remove() [follow-up from mediaelement#779 and mediaelement#788]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants