Skip to content

Gracefully handle functional limitations when Via video player is iframed #1151

@robertknight

Description

@robertknight

Some functions of the video player will not be available if it is embedded in a cross-origin iframe which does not delegate various permissions. These include:

  1. Being able to start the video from the "Play" button outside the player
  2. Being able to use the "Copy transcript" button
  3. Enabling the full-screen button in the player

In the LMS context, the ContentFrame component tries to ensure that these permissions are available.

However, there are cases outside of our control where these permissions won't be available:

  • If our LMS app is itself placed inside an iframe (by the LMS which launches the assignment) which doesn't have these permissions, it won't be able to delegate them down to the video player.
  • If a third-party embeds our public Via service within an iframe

In the case where the video player does not have these permissions, it should gracefully handle the situation. It would be useful to also indicate to developers in the browser console how to fix the issue. This will help future Hypothesis developers and other publishers when they find new places to embed our player.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions