With Vidyard, it's easy to embed your player in multiple locations. However, not all embed locations are the same. In some cases, you may want to adjust the settings of a certain player in a particular embed location such as a mobile version of your website, or in a sidebar.
You can do this on the fly by making use of the following query strings in your Vidyard embed code.
|width||Integer (in pixels)||Overrides the width of the player.|
|height||Integer (in pixels)||Overrides the height of the player.|
|name_overlay||0 or 1||Overlays the name of the player on the player during playback.|
|disable_ctas||0 or 1||A value of 1 prevents popout calls to action from loading when the player loads.|
|hide_playlist||1||A value of 1 removes the playlist icon on the player. The playlist still exists, but can not be accessed.|
|hidden_controls||0 or 1||A value of 1 hides the player controls from viewers. Player controls include the time slider, play/pause button, quality settings, volume slider, and expand option.|
|hide_html5_playlist||0 or 1||A value of 1 prevents the playlist from appearing on the HTML5 fallback player.|
|viral_sharing||0 or 1||A value of 0 removes the social networks sharing button from the player.|
|embed_button||0 or 1||A value of 0 removes the embed button from the player.|
|color||6-digit color hex code||Changes the color that appears when interacting with playback controls (play, pause, closed caption, fullscreen, sound settings), as well as the time/seek bar|
|playlist_color||6-digit color hex code||Changes the background color of the playlist when open|
|play_button_color||6-digit color hex code||Changes the color of the play button|
Skip the preload of the video file to prevent the player from establishing a persistent connection to the CDN on player load. This query string should be used when embedding several inline players on a single page.
|playlist_always_open||0 or 1||A value of 1 will force the playlist to always display.|
|playlist_start_open||0 or 1||A value of 1 will set the playlist to display when the player starts.|
|disable_redirect||0 or 1||A value of 1 will force any redirects to not function.|
|disable_preroll_flash||0 or 1||A value of 1 will force the preroll not to display on flash players|
|no_html5_fullscreen||0 or 1||A value of 1 disables full screen when using the HTML5 player|
|custom_id||String||This sets a fixed custom_id for personalization campaigns|
|muted||0 or 1||A value of 1 will mute the Player|
|autoplay||0, 1 or 2||A value of "1" enables the video to play automatically after the page has loaded (although the browser may prevent autoplay with audio). A value of "2" enables the video to autoplay if the browser will allow audio; otherwise autoplay is prevented and the thumbnail displays instead.|
|chapter||Integer||Used for multi-chapter players. The player will begin at the chapter number specified beginning at 1.|
|video_id||Integer||Similar to the chapter parameter. Accepts the Vidyard video ID. The player will search for the video with a matching ID and begin playback at that chapter.|
|second||Integer||The player will begin playing at the second set|
|flash_first||0 or 1||A value of 1 forces the flash player to be loaded.|
|redirect_url||String||Redirects a viewer to a URL inside the player when the player completes.|
|loop||0 or 1||Replays current player chapter upon completion|
|redirect_whole_page||String||Redirects the viewer's whole browser window to a specified URL.|
|cc||String||Automatically start the player with the closed captioning of the requested language using ISO 639-1 codes (e.g. en=English, fr=French, etc. More details.)|
|quality||360p, 480p, 720p, 1080p||Force the viewer to stream at the given resolution. The viewer will still have the ability to change to a higher or lower resolution using the player controls. The player will also still use intelligent resolution selection to automatically lower the resolution in the case of extended buffering.|
|force_https||0 or 1||Forces the player to be played through secure-http|
|force_http||0 or 1||Forces the player to be played through non secure-http|
|first_frame||0 or 1||
This plays and then instantly pauses the player so that it sits on the first frame of the video without a splash screen.
Sets the speed of playback. Only
Tracks are referred to in the order that they appear on the player control menu (for example 0 = default English; 1 = the next track).
|new_visitor||0 or 1||Forces a new Vidyard cookie to be generated each time a player is loaded.|
|preview||0 or 1||
Disables CTAs and analytics
You use this in conjunction with preview=1 to bring through analytics.
|disable_analytics||1||Disables analytics only|
|referring_url||String||Sets a fixed refferal URL for every view|
|vyemail||String||When an email address is provided as a string, the email address is associated with the Vidyard cookie/localstorage allowing the address to be reported on in Vidyard analytics.|
|pardot_id||String||Sets a fixed Pardot ID for every view|
|hubspot_id||String||Sets a fixed Hubspot ID for every view|
|vysfid||String||Sets a fixed Vidyard Salesforce ID for every view|
|eloqua_contact_id||String||Sets a fixed Eloqua Contact ID for every view|
|eloqua_id||String||Sets a fixed Eloqua ID for every view|
|marketo_id||String||Sets a fixed Marketo ID for every view|
|acton_id||String||Sets a fixed Act-On ID for every view|
|dreamforce_id||String||Sets a fixed Dreamforce ID for every view|
To use a query string, append it to the URL specified in the embed code. For example:
The above code uses the width and height parameters to override the player settings in the Vidyard dashboard.
The use of query strings is not limited to embed codes, you can also use them for sharing page links.
The above code uses the autoplay parameter to start the player on page load.
Note: The first query string after a URL must begin with a "?" while any subsequent strings should be added using the "&" character
Using query strings with the responsive embed code
The above query strings also work with Vidyard's responsive embed code.
Simply add "
data-"and then the parameter and a value to the embed code in order to append a query string. For example: