Pico Unreal Platform SDK
|
Functions | |
static void | PicoRtcGetToken (UObject *WorldContextObject, const FString &UserId, const FString &RoomId, int Ttl, int InValue, FOnlineManagerRtcGetTokenDelegate InRtcGetTokenDelegate) |
Gets the rtc token. More... | |
static ERtcEngineInitResult | PicoGetRtcEngineInit (UObject *WorldContextObject) |
Initializes the RTC engine. More... | |
static int | PicoRtcJoinRoom (UObject *WorldContextObject, const FString &RoomId, const FString &UserId, const FString &Token, const FString &UserExtra, ERtcRoomProfileType InRoomProfileType, bool bIsAutoSubscribeAudio) |
Joins a user to a rtc room. More... | |
static int | RtcDestroyRoom (UObject *WorldContextObject, const FString &RoomId) |
Destroys a room. More... | |
static void | RtcEnableAudioPropertiesReport (UObject *WorldContextObject, int Interval) |
Enables audio properties report. When this switch is turned on, you will regularly receive a statistical report of audio data. More... | |
static int | RtcLeaveRoom (UObject *WorldContextObject, const FString &RoomId) |
Leaves a rtc room. More... | |
static void | RtcMuteLocalAudio (UObject *WorldContextObject, ERtcMuteState InRtcMuteState) |
Mutes local audio to make one's voice unable to be heard be others in the same room. More... | |
static void | RtcPublishRoom (UObject *WorldContextObject, const FString &RoomId) |
Publishes local audio stream to a room, thereby making the voice heard be others in the same room. More... | |
static void | RtcUnPublishRoom (UObject *WorldContextObject, const FString &RoomId) |
Stops publishing local audio stream to a room, so others in the same room cannot hear the voice. More... | |
static void | RtcRoomPauseAllSubscribedStream (UObject *WorldContextObject, const FString &RoomId, ERtcPauseResumeMediaType InPauseResumeMediaType) |
Pauses all subscribed streams of a room. Once paused, the voice of users in the room is blocked so nothing can be heard from this room. More... | |
static void | RtcRoomResumeAllSubscribedStream (UObject *WorldContextObject, const FString &RoomId, ERtcPauseResumeMediaType InPauseResumeMediaType) |
Resumes all subscribed streams of a room. Once resumed, the voice of users in the room can be heard again. More... | |
static void | RtcSetAudioPlaybackDevice (UObject *WorldContextObject, ERtcAudioPlaybackDevice InRtcAudioPlaybackDevice) |
Sets the type of audio playback device. More... | |
static void | RtcSetAudioScenario (UObject *WorldContextObject, ERtcAudioScenarioType InRtcAudioScenarioType) |
Sets audio scenario type. More... | |
static void | RtcSetCaptureVolume (UObject *WorldContextObject, ERtcStreamIndex InRtcStreamIndex, int InVolume) |
Sets volume for audio capture. More... | |
static void | RtcSetEarMonitorMode (UObject *WorldContextObject, ERtcEarMonitorMode InRtcEarMonitorMode) |
Sets the in-ear monitoring mode. More... | |
static void | RtcSetEarMonitorVolume (UObject *WorldContextObject, int InVolume) |
Sets the volume for in-ear monitoring. More... | |
static void | RtcSetPlaybackVolume (UObject *WorldContextObject, int InVolume) |
Sets the playback volume. More... | |
static void | RtcStartAudioCapture (UObject *WorldContextObject) |
Starts audio capture. More... | |
static void | RtcStopAudioCapture (UObject *WorldContextObject) |
Stops audio capture. More... | |
static void | RtcUpdateToken (UObject *WorldContextObject, const FString &RoomId, const FString &Token) |
Updates room token. More... | |
This is the BP_RTC group
|
static |
Initializes the RTC engine.
WorldContextObject | Used to get the information about the current world. |
|
static |
Gets the rtc token.
WorldContextObject | Used to get the information about the current world. |
UserId | User ID. |
RoomId | Room ID. |
Ttl | The effective duration of the room (in seconds). |
InValue | Channel effective time (in seconds). |
InRtcGetTokenDelegate | Callback function proxy. |
|
static |
Joins a user to a rtc room.
WorldContextObject | Used to get the information about the current world. |
RoomId | Room ID. |
UserId | User ID. |
Token | Room token. |
UserExtra | Extra information added by the user. |
InRoomProfileType | Room type:
|
bIsAutoSubscribeAudio | Whether to automatically subscribe to the audio of the room:
|
0
: success
|
static |
Destroys a room.
WorldContextObject | Used to get the information about the current world. |
RoomId | Room ID. |
0
: success
|
static |
Enables audio properties report. When this switch is turned on, you will regularly receive a statistical report of audio data.
WorldContextObject | Used to get the information about the current world. |
Interval | The interval (in milliseconds) between one report and the next. You can set this parameter to 0 or any negative integer to stop receiving audio properties report. For any integer between (0, 100), the SDK will regard it as invalid and automatically set this parameter to 100 ; Any integer equal to or greater than 100 is valid. |
|
static |
Leaves a rtc room.
WorldContextObject | Used to get the information about the current world. |
RoomId | Room ID. |
0
: success
|
static |
Mutes local audio to make one's voice unable to be heard be others in the same room.
WorldContextObject | Used to get the information about the current world. |
InRtcMuteState | The state of local audio:
|
|
static |
Publishes local audio stream to a room, thereby making the voice heard be others in the same room.
WorldContextObject | Used to get the information about the current world. |
RoomId | Room ID. |
|
static |
Pauses all subscribed streams of a room. Once paused, the voice of users in the room is blocked so nothing can be heard from this room.
WorldContextObject | Used to get the information about the current world. |
RoomId | Room ID. |
InPauseResumeMediaType | Media type. |
|
static |
Resumes all subscribed streams of a room. Once resumed, the voice of users in the room can be heard again.
WorldContextObject | Used to get the information about the current world. |
RoomId | The ID of the room to resume subscribed streams for. |
InPauseResumeMediaType | Media type. |
|
static |
Sets the type of audio playback device.
WorldContextObject | Used to get the information about the current world. |
InRtcAudioPlaybackDevice | Device type. |
|
static |
Sets audio scenario type.
WorldContextObject | Used to get the information about the current world. |
InRtcAudioScenarioType | Audio scenario type:
|
|
static |
Sets volume for audio capture.
WorldContextObject | Used to get the information about the current world. |
InRtcStreamIndex | Stream index main/screen. |
InVolume | The volume. The valid value ranges from 0 to 400 . 100 indicates keeping the original volume. |
|
static |
Sets the in-ear monitoring mode.
WorldContextObject | Used to get the information about the current world. |
InRtcEarMonitorMode | The state of in-ear monitoring mode:
|
|
static |
Sets the volume for in-ear monitoring.
WorldContextObject | Used to get the information about the current world. |
InVolume | The volume. The valid value ranges from 0 to 400 . 100 indicates keeping the original volume. |
|
static |
Sets the playback volume.
WorldContextObject | Used to get the information about the current world. |
InVolume | The volume. The valid value ranges from 0 to 400 . 100 indicates keeping the original volume. |
|
static |
Starts audio capture.
WorldContextObject | Used to get the information about the current world. |
|
static |
Stops audio capture.
WorldContextObject | Used to get the information about the current world. |
|
static |
Stops publishing local audio stream to a room, so others in the same room cannot hear the voice.
WorldContextObject | Used to get the information about the current world. |
RoomId | Room ID. |
|
static |
Updates room token.
WorldContextObject | Used to get the information about the current world. |
RoomId | Room ID. |
Token | The new token. |