fm.liveswitch.PeerConnectionOffer Class Reference

A peer connection offer. More...

Public Member Functions

fm.liveswitch.PeerConnection accept (fm.liveswitch.AudioStream audioStream)
 Accepts the offer. More...
 
fm.liveswitch.PeerConnection accept (fm.liveswitch.AudioStream audioStream, fm.liveswitch.DataStream dataStream)
 Accepts the offer. More...
 
fm.liveswitch.PeerConnection accept (fm.liveswitch.AudioStream audioStream, fm.liveswitch.VideoStream videoStream)
 Accepts the offer. More...
 
fm.liveswitch.PeerConnection accept (fm.liveswitch.AudioStream audioStream, fm.liveswitch.VideoStream videoStream, fm.liveswitch.DataStream dataStream)
 Accepts the offer. More...
 
fm.liveswitch.PeerConnection accept (fm.liveswitch.DataStream dataStream)
 Accepts the offer. More...
 
fm.liveswitch.PeerConnection accept (fm.liveswitch.VideoStream videoStream)
 Accepts the offer. More...
 
fm.liveswitch.PeerConnection accept (fm.liveswitch.VideoStream videoStream, fm.liveswitch.DataStream dataStream)
 Accepts the offer. More...
 
void addOnCancel (fm.liveswitch.IAction0 value)
 Adds a handler that is raised when the offer is withdrawn. More...
 
fm.liveswitch.Channel getChannel ()
 Gets the channel. More...
 
String getConnectionTag ()
 Gets the connection tag. More...
 
boolean getHasAudio ()
 Gets a value indicating whether the offer includes an audio description. More...
 
boolean getHasData ()
 Gets a value indicating whether the offer includes a data description. More...
 
boolean getHasVideo ()
 Gets a value indicating whether the offer includes a video description. More...
 
fm.liveswitch.SessionDescription getOffer ()
 Gets the offer. More...
 
fm.liveswitch.ClientInfo getRemoteClientInfo ()
 Gets the remote client information. More...
 
boolean getRemoteClosed ()
 Gets a value indicating whether the connection was closed by the remote host. More...
 
String getRemoteConnectionId ()
 Gets the remote connection identifier. More...
 
boolean getRemoteFailed ()
 Gets a value indicating whether the connection was failed by the remote host. More...
 
fm.liveswitch.Future< Object > reject ()
 Rejects this instance. More...
 
void removeOnCancel (fm.liveswitch.IAction0 value)
 Removes a handler that is raised when the offer is withdrawn. More...
 

Detailed Description

A peer connection offer.

Member Function Documentation

◆ accept() [1/7]

fm.liveswitch.PeerConnection fm.liveswitch.PeerConnectionOffer.accept ( fm.liveswitch.AudioStream  audioStream)

Accepts the offer.

Parameters
audioStreamThe audio stream.

◆ accept() [2/7]

fm.liveswitch.PeerConnection fm.liveswitch.PeerConnectionOffer.accept ( fm.liveswitch.AudioStream  audioStream,
fm.liveswitch.DataStream  dataStream 
)

Accepts the offer.

Parameters
audioStreamThe audio stream.
dataStreamThe data stream.

◆ accept() [3/7]

fm.liveswitch.PeerConnection fm.liveswitch.PeerConnectionOffer.accept ( fm.liveswitch.AudioStream  audioStream,
fm.liveswitch.VideoStream  videoStream 
)

Accepts the offer.

Parameters
audioStreamThe audio stream.
videoStreamThe video stream.

◆ accept() [4/7]

fm.liveswitch.PeerConnection fm.liveswitch.PeerConnectionOffer.accept ( fm.liveswitch.AudioStream  audioStream,
fm.liveswitch.VideoStream  videoStream,
fm.liveswitch.DataStream  dataStream 
)

Accepts the offer.

Parameters
audioStreamThe audio stream.
videoStreamThe video stream.
dataStreamThe data stream.

◆ accept() [5/7]

fm.liveswitch.PeerConnection fm.liveswitch.PeerConnectionOffer.accept ( fm.liveswitch.DataStream  dataStream)

Accepts the offer.

Parameters
dataStreamThe data stream.

◆ accept() [6/7]

fm.liveswitch.PeerConnection fm.liveswitch.PeerConnectionOffer.accept ( fm.liveswitch.VideoStream  videoStream)

Accepts the offer.

Parameters
videoStreamThe video stream.

◆ accept() [7/7]

fm.liveswitch.PeerConnection fm.liveswitch.PeerConnectionOffer.accept ( fm.liveswitch.VideoStream  videoStream,
fm.liveswitch.DataStream  dataStream 
)

Accepts the offer.

Parameters
videoStreamThe video stream.
dataStreamThe data stream.

◆ addOnCancel()

void fm.liveswitch.PeerConnectionOffer.addOnCancel ( fm.liveswitch.IAction0  value)

Adds a handler that is raised when the offer is withdrawn.

◆ getChannel()

fm.liveswitch.Channel fm.liveswitch.PeerConnectionOffer.getChannel ( )

Gets the channel.

◆ getConnectionTag()

String fm.liveswitch.PeerConnectionOffer.getConnectionTag ( )

Gets the connection tag.

◆ getHasAudio()

boolean fm.liveswitch.PeerConnectionOffer.getHasAudio ( )

Gets a value indicating whether the offer includes an audio description.

◆ getHasData()

boolean fm.liveswitch.PeerConnectionOffer.getHasData ( )

Gets a value indicating whether the offer includes a data description.

◆ getHasVideo()

boolean fm.liveswitch.PeerConnectionOffer.getHasVideo ( )

Gets a value indicating whether the offer includes a video description.

◆ getOffer()

fm.liveswitch.SessionDescription fm.liveswitch.PeerConnectionOffer.getOffer ( )

Gets the offer.

◆ getRemoteClientInfo()

fm.liveswitch.ClientInfo fm.liveswitch.PeerConnectionOffer.getRemoteClientInfo ( )

Gets the remote client information.

◆ getRemoteClosed()

boolean fm.liveswitch.PeerConnectionOffer.getRemoteClosed ( )

Gets a value indicating whether the connection was closed by the remote host.

◆ getRemoteConnectionId()

String fm.liveswitch.PeerConnectionOffer.getRemoteConnectionId ( )

Gets the remote connection identifier.

◆ getRemoteFailed()

boolean fm.liveswitch.PeerConnectionOffer.getRemoteFailed ( )

Gets a value indicating whether the connection was failed by the remote host.

◆ reject()

fm.liveswitch.Future<Object> fm.liveswitch.PeerConnectionOffer.reject ( )

Rejects this instance.

◆ removeOnCancel()

void fm.liveswitch.PeerConnectionOffer.removeOnCancel ( fm.liveswitch.IAction0  value)

Removes a handler that is raised when the offer is withdrawn.