Inherits MonoBehaviour.
The definition of
VideoSurface.
◆ EnableFilpTextureApply()
void agora_gaming_rtc.VideoSurface.EnableFilpTextureApply |
( |
bool |
enableFlipHorizontal, |
|
|
bool |
enableFlipVertical |
|
) |
|
|
Enables/Disables the mirror mode when renders the Texture.
- Note
-
- Ensure that you call this method in the main thread.
- Ensure that you call this method before binding VideoSurface.cs.
- Parameters
-
enableFlipHorizontal |
Whether to enable the horizontal mirror mode of Texture.
- true: Enable.
- false: (Default) Disable.
|
enableFlipVertical |
Whether to enable the vertical mirror mode of Texture.
- true: Enable.
- false: (Default) Disable.
|
◆ SetEnable()
void agora_gaming_rtc.VideoSurface.SetEnable |
( |
bool |
enable |
) |
|
Starts/Stops the video rendering.
- Parameters
-
enable |
Whether to start/stop the video rendering.
- true: (Default) Start.
- false: Stop.
|
◆ SetForMultiChannelUser()
void agora_gaming_rtc.VideoSurface.SetForMultiChannelUser |
( |
string |
channelId, |
|
|
uint |
uid |
|
) |
|
|
Sets the local or remote video of users in multiple channels.
- Since
- v3.0.1
- Note
-
- This method only applies to the multi-channel feature.
-
Do not call this method and
SetForUser
together.
- Ensure that you call this method in the main thread.
- Ensure that you call this method before binding VideoSurface.cs.
- Parameters
-
channelId |
The channel name. |
uid |
The ID of the remote user, which is retrieved from
OnUserJoinedHandler. The default value is 0, which means you can see the local video.
|
◆ SetForUser()
void agora_gaming_rtc.VideoSurface.SetForUser |
( |
uint |
uid |
) |
|
Sets the local or remote video.
- Note
-
-
Do not call this method and
SetForMultiChannelUser
together.
- Ensure that you call this method in the main thread.
- Ensure that you call this method before binding VideoSurface.cs.
- Parameters
-
uid |
The ID of the remote user, which is retrieved from
OnUserJoinedHandler. The default value is 0, which means you can see the local video.
|
◆ SetGameFps()
void agora_gaming_rtc.VideoSurface.SetGameFps |
( |
uint |
fps |
) |
|
Sets the video rendering frame rate.
- Note
-
- Ensure that you call this method in the main thread.
- Ensure that you call this method before binding VideoSurface.cs.
- Parameters
-
fps |
The real video refreshing frame rate of the program. |
◆ SetVideoSurfaceType()
Set the video renderer type.
- Parameters
-
agoraVideoSurfaceType |
The renderer type, see AgoraVideoSurfaceType. |
The documentation for this class was generated from the following file: