#29384 closed defect (bug) (fixed)
wpview: mejs: Playing one player inside the editor doesn't stop the other
| Reported by: | iseulde | Owned by: | wonderboymusic |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.1 |
| Component: | Media | Version: | 4.0 |
| Severity: | trivial | Keywords: | has-patch |
| Cc: | Focuses: | javascript |
Description
To reproduce, add two audio/playlist views to the editor, play one and play the other. The first doesn't stop playing.
Attachments (1)
Change History (12)
#5
@
12 years ago
- Focuses javascript added
- Keywords needs-patch added
- Milestone Awaiting Review → 4.1
wp.mce.av.View.stopPlayers() works like a champ because it is triggered by an event with the MCE view - getting the view's iframes' players to signal back to outer space that they are playing will be .... a challenge.
Either we figure this out or decide we don't care.
#6
@
12 years ago
I care to some degree as far as the built-in MEjs player goes, which I have a feeling is the only case we can control anyway. Ever-better emulation of the front-end is a good goal.
#9
in reply to: ↑ 8
@
12 years ago
Hey wonderboymusic,
For my own enlightenment, was there another issue that my fix missed? Or some pattern that is preferred that I overlooked?
I only ask so I can approach things differently in the future.
Replying to wonderboymusic:
In 30642:
#10
follow-up:
↓ 11
@
12 years ago
joeyblake:
- Don't want to stop all players, we want to know which one is playing and stop the others
- We want to bind to an actual "play" event, not hijack a random click
- We need to be able to separate MEjs sandboxes from other sandboxes, so that they only react to each other, not every iframe
#11
in reply to: ↑ 10
@
12 years ago
Gotcha. I was figuring the play event part. Thanks!
Replying to wonderboymusic:
joeyblake:
- Don't want to stop all players, we want to know which one is playing and stop the others
- We want to bind to an actual "play" event, not hijack a random click
- We need to be able to separate MEjs sandboxes from other sandboxes, so that they only react to each other, not every iframe
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
avryl - this is the case with trunk but not previously? Is it because of the iframes?