AgoraIO-Extensions/agora-rtc-react

How to play remote video with objectFit: 'contain',

Closed this issue · 1 comments

What kind of problem do you need help?

This hooks useRemoteUsers return remote users list with remote video track
const remoteUsers = useRemoteUsers();

How to play remote video track with objectFit: 'contain', using RemoteUser component

Agora Play Doc link https://api-ref.agora.io/en/voice-sdk/web/4.x/interfaces/iremotevideotrack.html#play

@nileshzala005 Currently, RemoteUser can not set objectFit , We will add this feature in next version.
You can use css to control it by yourself temporary.

eg:

YOUR VIDEO {
    object-fit: contain!important;
}