Session
Class
constructor
parent_
class
name
codecs_
need_
resend
get_
stream_
transmitter_
type
list_
transmitters
new_
stream
set_
allowed_
caps
set_
codec_
preferences
set_
encryption_
parameters
set_
send_
codec
start_
telephony_
event
stop_
telephony_
event
GJS API Reference
Farstream-0.2
Farstream
SessionClass
Class SessionClass
You must override at least new_stream in a subclass.
record
Hierarchy
SessionClass
Index
Constructors
constructor
Properties
parent_
class
name
Methods
codecs_
need_
resend
get_
stream_
transmitter_
type
list_
transmitters
new_
stream
set_
allowed_
caps
set_
codec_
preferences
set_
encryption_
parameters
set_
send_
codec
start_
telephony_
event
stop_
telephony_
event
Constructors
constructor
new
Session
Class
(
)
:
Farstream
.
SessionClass
Returns
Farstream
.
SessionClass
Properties
parent_
class
parent_
class
:
GObject
.
ObjectClass
Our parent
field
Static
name
name
:
string
Methods
codecs_
need_
resend
codecs_
need_
resend
(
session
:
Farstream
.
Session
, old_codecs
:
Farstream
.
Codec
[]
, new_codecs
:
Farstream
.
Codec
[]
)
:
Farstream
.
Codec
[]
Parameters
session:
Farstream
.
Session
old_codecs:
Farstream
.
Codec
[]
new_codecs:
Farstream
.
Codec
[]
Returns
Farstream
.
Codec
[]
get_
stream_
transmitter_
type
get_
stream_
transmitter_
type
(
session
:
Farstream
.
Session
, transmitter
:
string
)
:
GType
<
unknown
>
Parameters
session:
Farstream
.
Session
transmitter:
string
Returns
GType
<
unknown
>
list_
transmitters
list_
transmitters
(
session
:
Farstream
.
Session
)
:
string
[]
Parameters
session:
Farstream
.
Session
Returns
string
[]
new_
stream
new_
stream
(
session
:
Farstream
.
Session
, participant
:
Farstream
.
Participant
, direction
:
Farstream
.
StreamDirection
)
:
Farstream
.
Stream
Parameters
session:
Farstream
.
Session
participant:
Farstream
.
Participant
direction:
Farstream
.
StreamDirection
Returns
Farstream
.
Stream
set_
allowed_
caps
set_
allowed_
caps
(
session
:
Farstream
.
Session
, sink_caps
:
Gst
.
Caps
, src_caps
:
Gst
.
Caps
)
:
boolean
Parameters
session:
Farstream
.
Session
sink_caps:
Gst
.
Caps
src_caps:
Gst
.
Caps
Returns
boolean
set_
codec_
preferences
set_
codec_
preferences
(
session
:
Farstream
.
Session
, codec_preferences
:
Farstream
.
Codec
[]
)
:
boolean
Parameters
session:
Farstream
.
Session
codec_preferences:
Farstream
.
Codec
[]
Returns
boolean
set_
encryption_
parameters
set_
encryption_
parameters
(
session
:
Farstream
.
Session
, parameters
:
Gst
.
Structure
)
:
boolean
Parameters
session:
Farstream
.
Session
parameters:
Gst
.
Structure
Returns
boolean
set_
send_
codec
set_
send_
codec
(
session
:
Farstream
.
Session
, send_codec
:
Farstream
.
Codec
)
:
boolean
Parameters
session:
Farstream
.
Session
send_codec:
Farstream
.
Codec
Returns
boolean
start_
telephony_
event
start_
telephony_
event
(
session
:
Farstream
.
Session
, event
:
number
, volume
:
number
)
:
boolean
Parameters
session:
Farstream
.
Session
event:
number
volume:
number
Returns
boolean
stop_
telephony_
event
stop_
telephony_
event
(
session
:
Farstream
.
Session
)
:
boolean
Parameters
session:
Farstream
.
Session
Returns
boolean
Session
Class
constructor
parent_
class
name
codecs_
need_
resend
get_
stream_
transmitter_
type
list_
transmitters
new_
stream
set_
allowed_
caps
set_
codec_
preferences
set_
encryption_
parameters
set_
send_
codec
start_
telephony_
event
stop_
telephony_
event
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJGYXJzdHJlYW1fMF8yLkZhcnN0cmVhbS5TZXNzaW9uQ2xhc3MuaHRtbCNjb25zdHJ1Y3RvciIsIm5hbWUiOiJjb25zdHJ1Y3RvciIsImNoaWxkcmVuIjpbXSwiaXNFeHRlcm4iOmZhbHNlLCJpc0ludGVybiI6dHJ1ZX0seyJjbGFzc05hbWVzIjoidHNkLWtpbmQtcHJvcGVydHkgdHNkLXBhcmVudC1raW5kLWNsYXNzIiwiaHJlZiI6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