diff --git a/README.md b/README.md index d35d754..22b025b 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,37 @@ This package does currently ship with the following trackers/tools integrations: - Matomo (formerly Piwik) - Mautic - Zopim +- YouTube +- Vimeo +- Dailymotion + +Note that you'll take care of the implementation of your video brick to make YouTube, Vimeo and Daily Motion work. + +Sample code by [breakone](https://github.com/breakone): +```twig +{% set autoplay = autoplay.isChecked() ? true : false %} +{% set loop = loop.isChecked() ? true : false %} +{% set mute = muted.isChecked ? true: false %} + +{% set video = pimcore_video('video') %} + +{% if video.getVideoType == 'youtube' %} +
+
+
+{% elseif video.getVideoType == 'vimeo' %} +
+
+
+{% elseif video.getVideoType == 'dailymotion' %} +
+
+
+{% else %} + {{ video|raw }} +{% endif %} +``` + ### Add your own tracker or tool consent If a tracker or tool is missing, please check if the tool is integrated into [tarteaucitron.js](https://github.com/AmauriC/tarteaucitron.js) first.