Navigation
API > API/Plugins > API/Plugins/PixelStreaming
FPixelStreamingSetSessionDescriptionObserver WebRTC requires an implementation of webrtc::SetSessionDescriptionObserver_ interface as a callback for setting session description, either on receiving remote offer_ (PeerConnection::SetRemoteDescription_) of on sending answer_ (`PeerConnection::SetLocalDescription_)
| Name | FPixelStreamingSetSessionDescriptionObserver |
| Type | class |
| Header File | /Engine/Plugins/Media/PixelStreaming/Source/PixelStreaming/Public/PixelStreamingSessionDescriptionObservers.h |
| Include Path | #include "PixelStreamingSessionDescriptionObservers.h" |
Syntax
class FPixelStreamingSetSessionDescriptionObserver : public webrtc::SetSessionDescriptionObserver
Inheritance Hierarchy
- webrtc::SetSessionDescriptionObserver → FPixelStreamingSetSessionDescriptionObserver
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FPixelStreamingSetSessionDescriptionObserver
(
const FSuccessCallback& successCallback, |
PixelStreamingSessionDescriptionObservers.h |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FFailureCallback | TFunction< void(const FString &)> | PixelStreamingSessionDescriptionObservers.h | |
| FSuccessCallback | TFunction< void()> | PixelStreamingSessionDescriptionObservers.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| FailureCallback | FFailureCallback | PixelStreamingSessionDescriptionObservers.h | ||
| SuccessCallback | FSuccessCallback | PixelStreamingSessionDescriptionObservers.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void OnFailure
(
webrtc::RTCError Error |
Errors usually mean incompatibility between our session configuration (often H.264, its profile and level) and player, malformed SDP or if player doesn't support UnifiedPlan (whatever was used by proxy) | PixelStreamingSessionDescriptionObservers.h | |
void OnSuccess() |
We don't need to do anything on success | PixelStreamingSessionDescriptionObservers.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FPixelStreamingSetSessionDescriptionObserver * Create
(
const FSuccessCallback& successCallback, |
PixelStreamingSessionDescriptionObservers.h |