AgoraIO-Extensions / agora-rtc-react

Agora RTC React SDK
https://agoraio-extensions.github.io/agora-rtc-react/
MIT License
29 stars 10 forks source link

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

Closed nileshzala005 closed 7 months ago

nileshzala005 commented 7 months ago

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

guoxianzhe commented 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;
}