Navigation
API > API/Plugins > API/Plugins/PixelStreaming
Inheritance Hierarchy
- PeerConnectionObserver
- FPixelStreamingPeerConnection
References
| Module | PixelStreaming |
| Header | /Engine/Plugins/Media/PixelStreaming/Source/PixelStreaming/Public/PixelStreamingPeerConnection.h |
| Include | #include "PixelStreamingPeerConnection.h" |
Syntax
class FPixelStreamingPeerConnection : public PeerConnectionObserver
Remarks
A specialized representation of a WebRTC peer connection for Pixel Streaming.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FOnIceCandidate | OnEmitIceCandidate | ||
| FOnIceStateChanged | OnIceStateChanged | ||
| FOnDataChannel | OnNewDataChannel |
Constructors
No constructors are accessible with public or protected access.
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddRemoteIceCandidate
(
const FString& SDPMid, |
Adds ICE candidate data to the peer connection. Usually supplied from the signalling server. | |
| TUniquePtr< FPixelStreamingPeerConnection > | Create
(
const FRTCConfig& RTCConfig, |
Creates a new peer connection using the given RTC configuration. | |
| void | CreateAnswer
(
EReceiveMediaOption ReceiveOption, |
Asynchronously creates an answer session description for this local peer connection. | |
| TSharedPtr< IPixelStreamingAudioInput > | |||
| TSharedPtr< FPixelStreamingDataChannel > | CreateDataChannel
(
int Id, |
Creates a data connection associated with this peer connection. | |
| void | CreateOffer
(
EReceiveMediaOption ReceiveOption, |
Asynchronously creates an offer session description for this local peer connection. | |
| void | Causes the video stream to generate a keyframe | ||
| rtc::scoped_refptr< webrtc::AudioSourceInterface > | Gets the global audio source. | ||
| TSharedPtr< IPixelStreamingAudioSink > | GetAudioSink () |
Gets the currently set audio sink on this connection. | |
| rtc::scoped_refptr< webrtc::AudioSourceInterface > | Gets the currently set audio source on this connection. | ||
| const webrtc::SessionDescriptionInterface * | Gets the current local description. | ||
| EPixelStreamingCodec | |||
| const webrtc::SessionDescriptionInterface * | Gets the current remote description. | ||
| rtc::VideoSinkInterface< webrtc::VideoFrame > * | GetVideoSink () |
Gets the currently set video sink on this connection. | |
| rtc::scoped_refptr< webrtc::VideoTrackSourceInterface > | Gets the currently set video source on this connection. | ||
| void | OnAddStream
(
rtc::scoped_refptr< webrtc::MediaStreamInterface > Stream |
||
| void | OnDataChannel
(
rtc::scoped_refptr< webrtc::DataChannelInterface > Channel |
||
| void | OnIceCandidate
(
const webrtc::IceCandidateInterface* Candidate |
||
| void | OnIceCandidatesRemoved
(
const std::vector< cricket::Candidate >& candidates |
||
| void | OnIceConnectionChange
(
webrtc::PeerConnectionInterface::IceConnectionState NewState |
||
| void | OnIceConnectionReceivingChange
(
bool Receiving |
||
| void | OnIceGatheringChange
(
webrtc::PeerConnectionInterface::IceGatheringState NewState |
||
| void | OnRemoveStream
(
rtc::scoped_refptr< webrtc::MediaStreamInterface > Stream |
||
| void | OnRemoveTrack
(
rtc::scoped_refptr< webrtc::RtpReceiverInterface > receiver |
||
| void | |||
| void | OnSignalingChange
(
webrtc::PeerConnectionInterface::SignalingState NewState |
Webrtc::PeerConnectionObserver implementation. | |
| void | OnTrack
(
rtc::scoped_refptr< webrtc::RtpTransceiverInterface > Transceiver |
||
| void | PostSignalingTask
(
FunctorT&& InFunc |
Post a task onto the WebRTC signalling thread. | |
| void | ReceiveAnswer
(
const FString& SDP, |
Asynchronously sets the remote description from a session description string answered from a signalling server. | |
| void | ReceiveOffer
(
const FString& SDP, |
Asynchronously sets the remote description from a session description string offered from a signalling server. | |
| void | RemoveAudioInput
(
TSharedPtr< IPixelStreamingAudioInput > AudioInput |
||
| void | SetAudioSink
(
TSharedPtr< IPixelStreamingAudioSink > InSink |
Sets an audio sink on this connection that will receive audio data from this connection. | |
| void | SetAudioSource
(
rtc::scoped_refptr< webrtc::AudioSourceInterface > InAudioSource |
Sets an audio source that can supply this connection with audio data. | |
| void | SetLocalDescription
(
webrtc::SessionDescriptionInterface* SDP, |
Asynchronously sets the local description using the given session description object. | |
| void | SetRemoteDescription
(
webrtc::SessionDescriptionInterface* SDP, |
Asynchronously sets the remote description using the given session description object. | |
| void | SetVideoSink
(
rtc::VideoSinkInterface< webrtc::VideoFrame >* InSink |
Sets a video sink on this connection that will receive frame data from this connection. | |
| void | SetVideoSource
(
rtc::scoped_refptr< webrtc::VideoTrackSourceInterface > InVideoSource |
Sets a video source that can supply this connection with frame data. | |
| void | SetWebRTCStatsCallback
(
rtc::scoped_refptr< webrtc::RTCStatsCollectorCallback > InCallback |
Sets the callback to be used when the stats collector comes knocking. | |
| void | Shutdown () |
Shuts down the WebRTC thread and destroys the peer connection factory. |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EReceiveMediaOption | Flags for CreateOffer/CreateAnswer that indicate what kind of media we indend to receive. | ||
| ESDPType |
Typedefs
| Name | Description |
|---|---|
| ErrorCallback | |
| FOnDataChannel | Called when a data channel is opened from the remote side of this connection. |
| FOnIceCandidate | Called when the ICE candidate is emitted. |
| FOnIceStateChanged | Called when the ICE state changes. |
| FRTCConfig | |
| SDPCallback | |
| VoidCallback |
Constants
| Name | Description |
|---|---|
| ApplicationAudioSource | |
| AudioMixer | |
| PeerConnectionFactory | |
| SignallingThread |