Segment
constructor
abs
Rate
accum
applied
Rate
duration
flags
format
gst
Reserved
last
Stop
rate
start
stop
time
name
clip
copy
free
init
set
Duration
set
Last
Stop
set
Newsegment
set
Newsegment
Full
set
Running
Time
set
Seek
to
Position
to
Running
Time
to
Stream
Time
new
NODE-GTK API Reference
Gst-0.10
Gst
Segment
Class Segment
A helper structure that holds the configured region of interest in a media file.
record
Hierarchy
Segment
Index
Constructors
constructor
Properties
abs
Rate
accum
applied
Rate
duration
flags
format
gst
Reserved
last
Stop
rate
start
stop
time
name
Methods
clip
copy
free
init
set
Duration
set
Last
Stop
set
Newsegment
set
Newsegment
Full
set
Running
Time
set
Seek
to
Position
to
Running
Time
to
Stream
Time
new
Constructors
constructor
new
Segment
(
)
:
Gst
.
Segment
Returns
Gst
.
Segment
Properties
abs
Rate
abs
Rate
:
number
accum
accum
:
number
applied
Rate
applied
Rate
:
number
duration
duration
:
number
flags
flags
:
Gst
.
SeekFlags
format
format
:
Gst
.
Format
gst
Reserved
gst
Reserved
:
any
[]
last
Stop
last
Stop
:
number
rate
rate
:
number
start
start
:
number
stop
stop
:
number
time
time
:
number
Static
name
name
:
string
Methods
clip
clip
(
format
:
Gst
.
Format
, start
:
number
, stop
:
number
)
:
[
boolean
,
number
,
number
]
Parameters
format:
Gst
.
Format
start:
number
stop:
number
Returns
[
boolean
,
number
,
number
]
copy
copy
(
)
:
Gst
.
Segment
Returns
Gst
.
Segment
free
free
(
)
:
void
Returns
void
init
init
(
format
:
Gst
.
Format
)
:
void
Parameters
format:
Gst
.
Format
Returns
void
set
Duration
set
Duration
(
format
:
Gst
.
Format
, duration
:
number
)
:
void
Parameters
format:
Gst
.
Format
duration:
number
Returns
void
set
Last
Stop
set
Last
Stop
(
format
:
Gst
.
Format
, position
:
number
)
:
void
Parameters
format:
Gst
.
Format
position:
number
Returns
void
set
Newsegment
set
Newsegment
(
update
:
boolean
, rate
:
number
, format
:
Gst
.
Format
, start
:
number
, stop
:
number
, time
:
number
)
:
void
Parameters
update:
boolean
rate:
number
format:
Gst
.
Format
start:
number
stop:
number
time:
number
Returns
void
set
Newsegment
Full
set
Newsegment
Full
(
update
:
boolean
, rate
:
number
, appliedRate
:
number
, format
:
Gst
.
Format
, start
:
number
, stop
:
number
, time
:
number
)
:
void
Parameters
update:
boolean
rate:
number
appliedRate:
number
format:
Gst
.
Format
start:
number
stop:
number
time:
number
Returns
void
set
Running
Time
set
Running
Time
(
format
:
Gst
.
Format
, runningTime
:
number
)
:
boolean
Parameters
format:
Gst
.
Format
runningTime:
number
Returns
boolean
set
Seek
set
Seek
(
rate
:
number
, format
:
Gst
.
Format
, flags
:
Gst
.
SeekFlags
, startType
:
Gst
.
SeekType
, start
:
number
, stopType
:
Gst
.
SeekType
, stop
:
number
)
:
boolean
Parameters
rate:
number
format:
Gst
.
Format
flags:
Gst
.
SeekFlags
startType:
Gst
.
SeekType
start:
number
stopType:
Gst
.
SeekType
stop:
number
Returns
boolean
to
Position
to
Position
(
format
:
Gst
.
Format
, runningTime
:
number
)
:
number
Parameters
format:
Gst
.
Format
runningTime:
number
Returns
number
to
Running
Time
to
Running
Time
(
format
:
Gst
.
Format
, position
:
number
)
:
number
Parameters
format:
Gst
.
Format
position:
number
Returns
number
to
Stream
Time
to
Stream
Time
(
format
:
Gst
.
Format
, position
:
number
)
:
number
Parameters
format:
Gst
.
Format
position:
number
Returns
number
Static
new
new
(
)
:
Gst
.
Segment
Returns
Gst
.
Segment
Segment
constructor
abs
Rate
accum
applied
Rate
duration
flags
format
gst
Reserved
last
Stop
rate
start
stop
time
name
clip
copy
free
init
set
Duration
set
Last
Stop
set
Newsegment
set
Newsegment
Full
set
Running
Time
set
Seek
to
Position
to
Running
Time
to
Stream
Time
new
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJHc3RfMF8xMC5Hc3QuU2VnbWVudC5odG1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