#25077 closed defect (bug) (fixed)
Native video player doesn't autoplay when using flash fallback
| Reported by: | leandroprz | Owned by: | wonderboymusic |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.9 |
| Component: | Media | Version: | 3.6 |
| Severity: | normal | Keywords: | needs-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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); } }