Closed nileshzala005 closed 7 months ago
@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;
}
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