Issue Bug Closed

#81743VideoTagRenderer does not support addtionalConfig Attribut playsinline

Dirk Döring 06/29/17, 12:04 updated 10/02/18, 10:58

Description

<f:media additionalconfig="{playsinline:'1', controls:'0'}"></f:media>

results in

should be

“playsinline” is an attribute which is supported by Webkit mobile browsers (iphone) to play videos inline. (https://webkit.org/blog/6784/new-video-policies-for-ios/)

There are several other attributes which arent supported neither. If you put them to “additional attributes” you get to my last reported issue (https://forge.typo3.org/issues/81741) that the media viewhelper doesnt pass the additionalAttributes or data at all.

For boolean attributes the fix is easy, just add to VideoTagRenderer.php (example for playsinline-attribute)

if (!empty($options['playsinline'])) {
            $attributes[] = 'playsinline';
        }

Reviews 2