Support » Plugin: Agora Video for WordPress » Lock broadcast into 16:9 aspect ratio

  • Resolved ddeschn



    I’m wondering if it’s possible while using the broadcast mode in the plugin to “lock in” the aspect ratio of the viewer for the audience to 16:9? The use case is such that we will only ever have one broadcaster and only ever broadcast at 16:9.

    Currently, the height remains unchanged for the viewer when shrinking the browser window. I imagine this is to accommodate multiple broadcasters entering the broadcast.

    I have tried various manipulations of the code in wp-agora-styles.css starting at line 198 with this comment: /* screen with 1 user */ But I haven’t had any success.

    Basically hoping to change the CSS or even some core functions to achieve an experience more like watching Twitch or a YouTube stream.

    Thanks for any help or insight,

Viewing 1 replies (of 1 total)
  • Plugin Author


    Hi @ddeschn,

    Thank you for your interest in the Agora Video for WordPress plugin.

    When embedding a <video> element, the object-fit CSS property specifies how the <video> should be resized to fit its container. (details: [W3C – object-fit](

    The Agora Video for WordPress plugin uses the default setting of cover, as set by the Agora Web SDK.

    To change this, you can use CSS. Within the WordPress Admin dashboard, click “Appearance” > “Customize” and then click “Additional CSS”. Copy and paste the copy below into the “Additional CSS” input field and click the “Publish” button.

    .agora .screen-users video{ object-fit: contain !important;}
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.