Vidzflow
  • Vidzflow
  • Vidzflow Web App
    • Vidzflow Web App Guide
    • Create an Account / Login
    • App Overview
    • Adding Videos
    • Video and Player Settings
    • Share or Embed Video
    • Workspaces
      • Overview
      • How to create a workspace
      • How to edit a workspace
      • How to delete a workspace
      • Change workspace plan
      • Leave a workspace
      • Transfer ownership of the workspace
      • How to add a member
      • How to remove a member
      • Assign or remove a role from a member
      • Updating Billing Information After Workspace Ownership Transfer
    • Folders
    • Extras
    • Supported sites for remote download
    • Profile
    • Example uses
    • Contact Support
    • Submit a Request
  • Vidzflow designer extension documentation
    • Vidzflow Designer Extension Documentation
    • Installation and Authentication
    • Using the Vidzflow Dashboard
    • Uploading Videos to Vidzflow
    • Video Management
    • Video Page and Settings
    • Embedding the Video
  • Frequently asked questions
    • How do I upload a custom thumbnail?
  • Can I cancel my subscription at any time?
  • Do you support WebM video format?
  • Why is my video stuck in encoding?
  • How can I use a Vidzflow video as a background video?
  • Can I use a custom mute/unmute button in Webflow?
  • Why is my video not autoplaying on iPhone?
  • How do I add subtitles for accessibility?
  • Can I edit the generated subtitles?
  • How can I track video views?
  • Is there a way to export analytics data?
  • Why do my videos show a watermark?
  • How do I use multiple videos in a collection list on Webflow?
  • Do you compress videos on upload?
  • Can I bypass compression?
  • Why are my videos not playing?
  • How do I remove a video?
  • Can I transfer my workspace to a new email?
  • Does my plan allow unlimited bandwidth?
  • Why isn’t my video showing full width in Webflow?
  • Can I change the default quality of my video?
  • Can I upload a video with transparency?
  • How do I trigger play/pause using custom buttons?
  • Can I use looping video thumbnails?
  • Can I embed a video in a popup and pause on close?
  • Can I set volume programmatically?
  • What happens when I downgrade my plan?
  • Can I host a single background video only?
  • Are your videos indexed by search engines?
  • Can I upload MOV files?
  • How do I update my billing address?
  • Can I get a refund for accidental upgrades?
  • Can I transfer videos between workspaces?
  • Does video autoplay work on all browsers?
  • Why does my video buffer on mobile?
  • Can I preview how a video will appear before embedding?
  • Are there any hidden charges?
  • Do videos expire or get deleted?
  • Can I contact support directly?
Powered by GitBook
On this page
  1. Vidzflow Web App

Extras

Controlling the embedded iframe player via postMessage events

Vidzflow embedded videos allow the integrator to control various operations of the video using postMessage functionality.

Play

var iframe = document.querySelector('iframe')
iframe.contentWindow.postMessage("playerPlay", "*")

Code above will trigger play of the video.

Pause

var iframe = document.querySelector('iframe')
iframe.contentWindow.postMessage("playerPause", "*")

Code above will trigger pause of the video.

Stop

To stop the video playback and reset it to the beginning:

var iframe = document.querySelector('iframe');
iframe.contentWindow.postMessage("playerStop", "*");

Mute

To mute the video:

var iframe = document.querySelector('iframe');
iframe.contentWindow.postMessage("playerMute", "*");

Unmute

To unmute the video:

var iframe = document.querySelector('iframe');
iframe.contentWindow.postMessage("playerUnmute", "*");

Set volume

To set the volume:

var iframe = document.querySelector('iframe');
iframe.contentWindow.postMessage({ type: "playerVolume", volume: 0.3 }, "*");

Note: Values for setting the volume range from 0 to 1, with 0.1 steps.

Set time (seek)

To seek to specified time:

var iframe = document.querySelector('iframe');
iframe.contentWindow.postMessage({ type: "playerSeek", time: 3 }, "*");

Note: The provided value is seconds.

Fullscreen

To open fullscreen:

var iframe = document.querySelector('iframe');
iframe.contentWindow.postMessage("playerFullscreen", "*");

Key Limitations:

  1. Fullscreen Activation:

    • Limitation: The fullscreen functionality may not work if the user has not interacted with the player.

    • Explanation: Modern browsers enforce user interaction before allowing fullscreen mode to prevent disruptive experiences. This means that calling the playerFullscreen command via postMessage will only work if the user has already interacted with the iframe player (e.g., clicking on the player).

  2. Unmute Function:

    • Limitation: The unmute functionality may not work if the user has not interacted with the player.

    • Explanation: Browsers typically require a user gesture (like a click) before allowing audio to play. This is a safeguard to prevent unwanted sound from autoplaying on a website. Therefore, the playerUnmute command will only be effective if the user has previously interacted with the iframe player.

PreviousFoldersNextSupported sites for remote download

Last updated 1 year ago