How do I use a specific Player in an embed?

Written by Stuart Auld

Last published at: June 24th, 2020

Viostream allows you to select a specific Player every time you embed a media asset or a Channel.

To choose the Player in your embed, simply add the playerKey attribute to your script or iframe embed.

Script example

<script src="https://publish.viostream.com/player/nz6rphenhea7xp?playerKey=s-nhj15se"></script>

Iframe example

<iframe style="width:640px; height:360px; border:none; overflow: hidden" src="https://publish.viostream.com/player/iframe/nz6rphenhea7xp?playerKey=s-nhj15se" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>

You can also copy the Player-specific embed codes for a media asset or Channel from within Viostream. Simply navigate to the relevant Distribution page, select your preferred player and copy the embed code.