Skip to content

ScriptVimeoPlayer fullscreen is not allowed in this document #462

Closed
@oom-

Description

@oom-

When I'm using the ScriptVimeoPlayer player to load my video I'm getting the following error in the chrome console:

[Violation] Potential permissions policy violation: fullscreen is not allowed in this document.

Seems to be related to the iframe allow prop:
https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/allow

Like I need to have something like this:

<iframe allow="fullscreen" webkitallowfullscreen allowfullscreen mozallowfullscreen/>

The player iframe is contained within another iframe that is missing the fullscreen attributes. Browsers do > not allow iframes to enter fullscreen if they are contained within other iframes without these fullscreen attributes. Try inserting the player outside of the container iframe or adding "mozallowfullscreen," "webkitallowfullscreen," and "allowfullscreen" to the container iframe.
source: https://help.vimeo.com/hc/en-us/articles/12425790245777-Troubleshoot-Fullscreen-button-missing-from-the-player

Is there a way to act on the iframe directly via ScriptVimeaPlayer component?

Note: it does a CSP error as well but I'm not sure it's comming from you :
Image

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