diff --git a/bundle/RemoteMedia/Provider/Cloudinary/CloudinaryProvider.php b/bundle/RemoteMedia/Provider/Cloudinary/CloudinaryProvider.php index 32ce65e6..0f81053f 100644 --- a/bundle/RemoteMedia/Provider/Cloudinary/CloudinaryProvider.php +++ b/bundle/RemoteMedia/Provider/Cloudinary/CloudinaryProvider.php @@ -320,10 +320,17 @@ public function generateVideoTag(Value $value, $contentTypeIdentifier, $format = $finalOptions = [ 'fallback_content' => 'Your browser does not support HTML5 video tags', - 'controls' => true, 'poster' => $transformationOptions, ]; + if (!array_key_exists('controls', $format) || $format['controls']) { + $finalOptions['controls'] = true; + } + + if (array_key_exists('controls', $transformationOptions)) { + unset($transformationOptions['controls']); + } + $finalOptions = $finalOptions + $transformationOptions; $enableAudioWaveform = $this->enableAudioWaveform;