Inherits MonoBehaviour.
The definition of VideoSurface.
◆ 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. |
◆ SetForUser()
void agora_gaming_rtc.VideoSurface.SetForUser |
( |
uint |
uid | ) |
|
Sets the local or remote video.
- Note
-
- 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. |
◆ 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. |
◆ 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.
|
◆ SetVideoSurfaceType()
Set the video renderer type.
- Parameters
-
agoraVideoSurfaceType | The renderer type, see AgoraVideoSurfaceType. |
◆ 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.
|
◆ isMultiChannelWant
bool agora_gaming_rtc.VideoSurface.isMultiChannelWant = false |
◆ _enableFlipHorizontal
bool agora_gaming_rtc.VideoSurface._enableFlipHorizontal = false |
◆ _enableFlipVertical
bool agora_gaming_rtc.VideoSurface._enableFlipVertical = false |
◆ videoFps
uint agora_gaming_rtc.VideoSurface.videoFps = 30 |
The documentation for this class was generated from the following file: