WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 7 months ago

#34296 reopened defect (bug)

Autoplay for more than one self-hosted video fails

Reported by: jonnyvaughan Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.3.1
Component: Media Keywords:
Focuses: Cc:

Description

Hi,

When adding more than one self-hosted video to a page (using the [video] shortcode or media browser to insert), if you set more than one to autoplay, then none of them autoplay.

This might be a mediaelementjs problem.

Stock 4.3.1 install with TwentyFifteen:
http://test.10degrees.uk/one-video-autoplay/ - one video set to autplay, works fine.
http://test.10degrees.uk/two-videos-autoplay/ - both videos set to autoplay, neither plays.

These are both mp4 files.

Jonny

Change History (4)

#1 @swissspidy
2 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Thanks for your report and the demo pages!

I just tested this with a single, non-WordPress HTML page and two videos.

When using native <video> tags without MediaElement.js, autoplay works fine for both videos at the same time.

With ME, there's no autoplay at all.

So this definitely isn't WordPress-only behaviour and should be reported upstream.

#3 @Insomnia88
9 months ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

I reopened this ticket because I still have a smiliar/same problem.
At the current version (4.74 -and some below) self hosted videos arn't even autoplaying when

  • there is more than one on a site
  • even when only on of them is turned to autoplay.

It seems that upstreaming didn't fix anything. Still, I thought it is also a wordpress problem when my autoplay shortcode attributes are ignored. Maybe it's just a bug based on the mediaelement behavior/error.

Here is a test site showing the problem:
http://blubb.enif.uberspace.de/wordpress/

The video shortcode for the video above
[video autoplay="on" loop="on" width="320" height="240" mp4="http://blubb.enif.uberspace.de/wordpress/wp-content/uploads/video-1.mp4"][/video]

for video below
[video autoplay="off" loop="off" width="320" height="240" mp4="http://blubb.enif.uberspace.de/wordpress/wp-content/uploads/video-1.mp4"][/video]

Last edited 9 months ago by Insomnia88 (previous) (diff)

#4 @SergeyBiryukov
7 months ago

  • Milestone set to Awaiting Review
Note: See TracTickets for help on using tickets.