Page MenuHomePhabricator

New media/video options and the HTML they should generate
Open, Needs TriagePublic

Description

I'm looking to expand a few things on https://www.mediawiki.org/wiki/Specs/HTML#Audio/Video

Upcoming work:

  1. muted and loop attributes. T116501
    • [[File:videoOrAudio.webm|thumb|loop|muted|caption]]
    • These options will reflect as loop and muted options on audio and video elements <video src="VideoOrAudio.webm" loop muted></video>
    • These are boolean attributes (present or non-present) and do not have values
    • I'm assuming these also need to be tracked for the mw:Video element's via mw-data ? Where/how ?
  2. playsinline https://gerrit.wikimedia.org/r/c/mediawiki/extensions/TimedMediaHandler/+/794592
    • [[File:videoOrAudio.webm|thumb|playsinline|caption]]
    • These option MIGHT reflect as (it is conditional) <video src="VideoOrAudio.webm" playsinline></video>
    • This is a video-only option, it cannot occur on <audio>
    • This is boolean attributes (present or non-present) and do not have values
    • This needs again to be added to mw:Video element's via mw-data ?
  3. projection and or stereo hints T150624
    • [[File:videoOrAudio.webm|thumb|caption]], BUT the have a 'natural' aspect derived from the files contents, which needs to be communicated to the JS player via HTML.
    • These options MIGHT reflect as (it is conditional and not spec'ed yet) as <video src="VideoOrAudio.webm" data-projection="equirectangular" data-stereo="side-by-side"></video>.
    • These are image and video options
    • They have string values, multiple exclusive options (yet to be defined)
    • Where does this go ?

Event Timeline

Change 816208 had a related patch set uploaded (by Arlolra; author: Arlolra):

[mediawiki/services/parsoid@master] Add loop and muted attributes to media elements

https://gerrit.wikimedia.org/r/816208

Change 816208 merged by jenkins-bot:

[mediawiki/services/parsoid@master] Add loop and muted attributes to media elements

https://gerrit.wikimedia.org/r/816208

Change 819170 had a related patch set uploaded (by Subramanya Sastry; author: Subramanya Sastry):

[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.16.0-a18

https://gerrit.wikimedia.org/r/819170

Change 819170 merged by jenkins-bot:

[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.16.0-a18

https://gerrit.wikimedia.org/r/819170