Video embed options

With this feature users can embed their files via MediaLab, so there is no need to re-upload your files to anywhere else. There are multiple ways to embed your file:

  • Iframe with player: This will provide you with a snippet of HTML code which you can use to include media on your site.
  • Theater page: This link will include the full theater page, which can be used in iframes or redirects.
  • Social media: Use this link to share your file on social media.
  • Preview: This URL will display the file’s preview
  • Thumbnail: This URL will display the file’s preview
  • File: This URL will display the file’s source

Video embed parameters

For embedding videos and animated gifs there are player options:

  • player_repeat: Repeat video from the start after it ends
  • player_autostart: Let the video start automatically, without user input
  • player_nolabels: Removes labels shown before video starts, like the title
  • player_nocontrols: Disables the ability of the user to control video, like play/pause, seeking etc.
    Note: if you enable player_nocontrols but not player_autostart, the user will not be able to start the video.

You can enable these options by adding them at the end of the iframe url as a query parameter with value 1 for enabled. As an example, the following URL loaded in an <iframe>

https://pearinc.medialab.app/share/iframe/xxx/yyyy?player_nolabels=1&player_autostart=1&player_nocontrols=1

results in the following: