As we are moving into Player v5 and Studio v5, we highly recommend to use our built-in embed helper to configure your embedding options.
In Studio v5, please go to
video editor / Embed tab to configure embed options.
Alternatively, please go to Player v5 video standalone page,
Social sharing button / Open embedding settings to configure embed options.
If a video has two variants, vertical & landscape, here is a minimal common example of how to dynamically embed video variants on the page based on user agent (Live demo):