unreal.PixelStreamingSignallingComponent
¶
- class unreal.PixelStreamingSignallingComponent(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
ActorComponent
A blueprint class representing a Pixel Streaming Signalling connection. Used to communicate with the signalling server and should route information to the peer connection.
C++ Source:
Plugin: PixelStreamingPlayer
Module: PixelStreamingPlayer
File: PixelStreamingSignallingComponent.h
Editor Properties: (see get_editor_property/set_editor_property)
asset_user_data
(Array[AssetUserData]): [Read-Write] Array of user data stored with the componentasset_user_data_editor_only
(Array[AssetUserData]): [Read-Write] Array of user data stored with the componentauto_activate
(bool): [Read-Write] Whether the component is activated at creation or must be explicitly activated.can_ever_affect_navigation
(bool): [Read-Write] Whether this component can potentially influence navigationcomponent_tags
(Array[Name]): [Read-Write] Array of tags that can be used for grouping and categorizing. Can also be accessed from scripting.editable_when_inherited
(bool): [Read-Write] True if this component can be modified when it was inherited from a parent actor classis_editor_only
(bool): [Read-Write] If true, the component will be excluded from non-editor buildsmedia_source
(StreamMediaSource): [Read-Write] If this media source is set we will use its supplied URL instead of the Url parameter on the connect call.on_answer
(PixelStreamingSignallingComponentAnswer): [Read-Write] Fired when the connection receives an answer from the server. The streamer is answering a previously sent offer by us. Forward to the peer connection.on_component_activated
(ActorComponentActivatedSignature): [Read-Write] Called when the component has been activated, with parameter indicating if it was from a reseton_component_deactivated
(ActorComponentDeactivateSignature): [Read-Write] Called when the component has been deactivatedon_config
(PixelStreamingSignallingComponentConfig): [Read-Write] Fired when the connection receives a config message from the server. This is the earliest place where the peer connection can be initialized.on_connected
(PixelStreamingSignallingComponentConnected): [Read-Write] Fired when the signalling connection is successfully established.on_connection_error
(PixelStreamingSignallingComponentConnectionError): [Read-Write] Fired if the connection failed or an error occurs during the connection. If this is fired at any point the connection should be considered closed.on_disconnected
(PixelStreamingSignallingComponentDisconnected): [Read-Write] Fired when the connection successfully closes.on_ice_candidate
(PixelStreamingSignallingComponentIceCandidate): [Read-Write] Fired when the server sends through an ice candidate. Forward this information on to the peer connection.on_offer
(PixelStreamingSignallingComponentOffer): [Read-Write] Fired when the connection receives an offer from the server. This means there is media being offered up to this connection. Forward to the peer connection.primary_component_tick
(ActorComponentTickFunction): [Read-Write] Main tick function for the Componentreplicate_using_registered_sub_object_list
(bool): [Read-Write] When true the replication system will only replicate the registered subobjects list When false the replication system will instead call the virtual ReplicateSubObjects() function where the subobjects need to be manually replicated.replicates
(bool): [Read-Write] Is this component currently replicating? Should the network code consider it for replication? Owning Actor must be replicating first!
- connect(url) None ¶
Attempt to connect to a specified signalling server.
- Parameters:
url (str) – The url of the signalling server. Ignored if this component has a MediaSource. In that case the URL on the media source will be used instead.
- property on_answer: PixelStreamingSignallingComponentAnswer¶
[Read-Write] Fired when the connection receives an answer from the server. The streamer is answering a previously sent offer by us. Forward to the peer connection.
- property on_config: PixelStreamingSignallingComponentConfig¶
[Read-Write] Fired when the connection receives a config message from the server. This is the earliest place where the peer connection can be initialized.
- property on_connected: PixelStreamingSignallingComponentConnected¶
[Read-Write] Fired when the signalling connection is successfully established.
- property on_connection_error: PixelStreamingSignallingComponentConnectionError¶
[Read-Write] Fired if the connection failed or an error occurs during the connection. If this is fired at any point the connection should be considered closed.
- property on_disconnected: PixelStreamingSignallingComponentDisconnected¶
[Read-Write] Fired when the connection successfully closes.
- property on_ice_candidate: PixelStreamingSignallingComponentIceCandidate¶
[Read-Write] Fired when the server sends through an ice candidate. Forward this information on to the peer connection.
- property on_offer: PixelStreamingSignallingComponentOffer¶
[Read-Write] Fired when the connection receives an offer from the server. This means there is media being offered up to this connection. Forward to the peer connection.
- send_answer(answer) None ¶
Send an answer created from a Peer Connection to the signalling server.
- Parameters:
answer (PixelStreamingSessionDescriptionWrapper) – The answer object created from calling CreateAnswer on a Peer Connection.
- send_ice_candidate(candidate_wrapper) None ¶
Send an Ice Candidate to the signalling server that is generated from a Peer Connection.
- Parameters:
candidate_wrapper (PixelStreamingIceCandidateWrapper) –
- send_offer(offer) None ¶
Send an offer created from a Peer Connection to the signalling server.
- Parameters:
offer (PixelStreamingSessionDescriptionWrapper) – The answer object created from calling CreateAnswer on a Peer Connection.