osunyorg / admin

L'espace d'administration d'Osuny
https://www.osuny.org
MIT License
32 stars 2 forks source link

Vidéos sans cookies #2444

Open arnaudlevy opened 12 hours ago

arnaudlevy commented 12 hours ago

Fix #2398

Vimeo

Ajout du paramètre dnt=0

    data:
      url: >-
        https://vimeo.com/715280780
      video_iframe: >-
        <iframe class="vimeo" loading="lazy" src="https://player.vimeo.com/video/715280780" title="Video"></iframe>
      video: 
        platform: "vimeo"
        identifier: "715280780"
        title: >-
          Video
        poster: >-
          https://vumbnail.com/715280780.jpg
        embed: >-
          https://player.vimeo.com/video/715280780
        embed_with_defaults: >-
          https://player.vimeo.com/video/715280780?autoplay=1&amp;quality=360p&amp;dnt=0
        iframe: >-
          <iframe class="vimeo" loading="lazy" src="https://player.vimeo.com/video/715280780" title="Video"></iframe>

Youtube

Utilisation du domaine www.youtube-nocookie.com

    data:
      url: >-
        https://www.youtube.com/watch?v=QA-tldY0qOQ
      video_iframe: >-
        <iframe class="youtube" loading="lazy" src="https://www.youtube-nocookie.com/embed/QA-tldY0qOQ" title="Video"></iframe>
      video: 
        platform: "youtube"
        identifier: "QA-tldY0qOQ"
        title: >-
          Video
        poster: >-
          https://img.youtube.com/vi/QA-tldY0qOQ/hqdefault.jpg
        embed: >-
          https://www.youtube-nocookie.com/embed/QA-tldY0qOQ
        embed_with_defaults: >-
          https://www.youtube-nocookie.com/embed/QA-tldY0qOQ?autoplay=1&amp;modestbranding=1&amp;rel=0
        iframe: >-
          <iframe class="youtube" loading="lazy" src="https://www.youtube-nocookie.com/embed/QA-tldY0qOQ" title="Video"></iframe>