Skip to content

Playsinline attribute isn't set on video tag #1072

@noyfactor

Description

@noyfactor

I'm creating a new iframe in the page and initializing a new Player using the iframe:

const iframe = document.createElement('iframe');
iframe.src = url;
iframe.className = 'w-full h-full';
new Player(iframe, {..., playsinline: true, ...})

But the iframe content's video tag remains without a playsinline attribute:

<iframe src="https://player.vimeo.com/video/1044112583?h=4a9110f311" class="w-full h-full" data-ready="true">
  <html lang="en">
    <head>
      {...}
    </head>
    <body class="vp-center">
      <div id="player" class="player player-1c2e052c-3178-4b1a-919f-b9fbfd31d478 js-player-fullscreen with-fullscreen with-sticky-custom-logo touch-support player-normal player-xxs app-xxs no-fullscreen-support right-content-area-supported" style="max-width: calc(177.777778vh); height: calc(56.25vw);">
        {...}
        <div class="vp-video-wrapper transparent content-area-sibling-enabled" data-content-area-sibling-eligible="" aria-hidden="true">
          <div class="vp-video">
            <div class="vp-telecine invisible">
              <video preload="none" tabindex="-1" src="https://vod-adaptive-ak.vimeocdn.com/exp=1742306350~acl=%2F4e1bad92-8898-4f23-8fb0-389d225cbdc2%2F%2A~hmac=12c4edd053a19f4b59f2f384daaedc89217a12b4dbe7c97650de0bc485e5f8c7/4e1bad92-8898-4f23-8fb0-389d225cbdc2/v2/playlist/av/primary/sub/219720087-iw/prot/cXNyPTE/playlist.m3u8?ext-subs=1&amp;omit=av1-hevc-opus&amp;pathsig=8c953e4f~8HnfLgSnXUJd7e_S64xbdhPgp5_sYdsPgqj9DU80c2A&amp;qsr=1&amp;r=dXM%3D&amp;rh=NnytU&amp;sf=ts" disablepictureinpicture="" autopictureinpicture="" style="">
                <track kind="subtitles" src="/texttrack/219720087.vtt?token=67d97c2e_0xc9135ceecd7536f5c0a09e710e2f19f1a9f0abcf" id="telecine-track-219720087" srclang="iw" label="עברית">
              </video>
            </div>
          </div>
        </div>
          {...}
      </div>
    </body>
  </html>
</iframe>

I've tried so far:

  • Getting the iframe from the oEmbed endpoint (no change)
  • Adding the &playsinline=1 parameter to the url (no change)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions