Session
Class
constructor
parent
Class
name
codecs
Need
Resend
get
Stream
Transmitter
Type
list
Transmitters
new
Stream
set
Codec
Preferences
set
Send
Codec
start
Telephony
Event
stop
Telephony
Event
NODE-GTK API Reference
Farstream-0.1
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
Codec
Preferences
set
Send
Codec
start
Telephony
Event
stop
Telephony
Event
Constructors
constructor
new
Session
Class
(
)
:
Farstream
.
SessionClass
Returns
Farstream
.
SessionClass
Properties
parent
Class
parent
Class
:
Gst
.
ObjectClass
Static
name
name
:
string
Methods
codecs
Need
Resend
codecs
Need
Resend
(
session
:
Farstream
.
Session
, oldCodecs
:
Farstream
.
Codec
[]
, newCodecs
:
Farstream
.
Codec
[]
)
:
Farstream
.
Codec
[]
Parameters
session:
Farstream
.
Session
oldCodecs:
Farstream
.
Codec
[]
newCodecs:
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
Codec
Preferences
set
Codec
Preferences
(
session
:
Farstream
.
Session
, codecPreferences
:
Farstream
.
Codec
[]
)
:
boolean
Parameters
session:
Farstream
.
Session
codecPreferences:
Farstream
.
Codec
[]
Returns
boolean
set
Send
Codec
set
Send
Codec
(
session
:
Farstream
.
Session
, sendCodec
:
Farstream
.
Codec
)
:
boolean
Parameters
session:
Farstream
.
Session
sendCodec:
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
Codec
Preferences
set
Send
Codec
start
Telephony
Event
stop
Telephony
Event
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJGYXJzdHJlYW1fMF8xLkZhcnN0cmVhbS5TZXNzaW9uQ2xhc3MuaHRtbCNjb25zdHJ1Y3RvciIsIm5hbWUiOiJjb25zdHJ1Y3RvciIsImNoaWxkcmVuIjpbXSwiaXNFeHRlcm4iOmZhbHNlLCJpc0ludGVybiI6dHJ1ZX0seyJjbGFzc05hbWVzIjoidHNkLWtpbmQtcHJvcGVydHkgdHNkLXBhcmVudC1raW5kLWNsYXNzIiwiaHJlZiI6IkZhcnN0cmVhbV8wXzEuRmFyc3RyZWFtLlNlc3Npb25DbGFzcy5odG1sI3BhcmVudENsYXNzIiwibmFtZSI6InBhcmVudENsYXNzIiwiY2hpbGRyZW4iOltdLCJpc0V4dGVybiI6ZmFsc2UsImlzSW50ZXJuIjp0cnVlfSx7ImNsYXNzTmFtZXMiOiJ0c2Qta2luZC1wcm9wZXJ0eSB0c2QtcGFyZW50LWtpbmQtY2xhc3MgdHNkLWlzLXN0YXRpYyIsImhyZWYiOiJGYXJzdHJlYW1fMF8xLkZhcnN0cmVhbS5TZXNzaW9uQ2xhc3MuaHRtbC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