#25077 closed defect (bug) (fixed)
Native video player doesn't autoplay when using flash fallback
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.9 | Priority: | normal |
| Severity: | normal | Version: | 3.6 |
| Component: | Media | Keywords: | needs-patch |
| Focuses: | Cc: |
Description
Hi,
I think I found another bug with the new native player.
I'm using this shortcode to show a video:
[video src="video.mp4" width="640" height="360" autoplay="true" loop="true"]
But when using flash it doesn't autoplay or loop the video. It does work fine when using HTML5.
I tested this on a fresh WP 3.6 installation with Twenty Thirteen theme.
Attachments (1)
Change History (7)
Note: See
TracTickets for help on using
tickets.
This might be accomplishable on init, adding something like:
success: function(mediaElement, domObject) { // also need to detect 'autoplay' somehow if (mediaElement.pluginType == 'flash') { mediaElement.addEventListener('canplay', function() { // Player is ready mediaElement.play(); }, false); } }