Segment
constructor
_gst_
reserved
abs_
rate
accum
applied_
rate
duration
flags
format
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
GJS 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
_gst_
reserved
abs_
rate
accum
applied_
rate
duration
flags
format
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
_gst_
reserved
_gst_
reserved
:
any
[]
abs_
rate
abs_
rate
:
number
accum
accum
:
number
applied_
rate
applied_
rate
:
number
duration
duration
:
number
flags
flags
:
Gst
.
SeekFlags
format
format
:
Gst
.
Format
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
, applied_rate
:
number
, format
:
Gst
.
Format
, start
:
number
, stop
:
number
, time
:
number
)
:
void
Parameters
update:
boolean
rate:
number
applied_rate:
number
format:
Gst
.
Format
start:
number
stop:
number
time:
number
Returns
void
set_
running_
time
set_
running_
time
(
format
:
Gst
.
Format
, running_time
:
number
)
:
boolean
Parameters
format:
Gst
.
Format
running_time:
number
Returns
boolean
set_
seek
set_
seek
(
rate
:
number
, format
:
Gst
.
Format
, flags
:
Gst
.
SeekFlags
, start_type
:
Gst
.
SeekType
, start
:
number
, stop_type
:
Gst
.
SeekType
, stop
:
number
)
:
boolean
Parameters
rate:
number
format:
Gst
.
Format
flags:
Gst
.
SeekFlags
start_type:
Gst
.
SeekType
start:
number
stop_type:
Gst
.
SeekType
stop:
number
Returns
boolean
to_
position
to_
position
(
format
:
Gst
.
Format
, running_time
:
number
)
:
number
Parameters
format:
Gst
.
Format
running_time:
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
_gst_
reserved
abs_
rate
accum
applied_
rate
duration
flags
format
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:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJHc3RfMF8xMC5Hc3QuU2VnbWVudC5odG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QuU2VnbWVudC5odG1sI3RvX3Bvc2l0aW9uIiwibmFtZSI6InRvX3Bvc2l0aW9uIiwiY2hpbGRyZW4iOltdLCJpc0V4dGVybiI6ZmFsc2UsImlzSW50ZXJuIjp0cnVlfSx7ImNsYXNzTmFtZXMiOiJ0c2Qta2luZC1tZXRob2QgdHNkLXBhcmVudC1raW5kLWNsYXNzIiwiaHJlZiI6IkdzdF8wXzEwLkdzdC5TZWdtZW50Lmh0bWwjdG9fcnVubmluZ190aW1lIiwibmFtZSI6InRvX3J1bm5pbmdfdGltZSIsImNoaWxkcmVuIjpbXSwiaXNFeHRlcm4iOmZhbHNlLCJpc0ludGVybiI6dHJ1ZX0seyJjbGFzc05hbWVzIjoidHNkLWtpbmQtbWV0aG9kIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJHc3RfMF8xMC5Hc3QuU2VnbWVudC5odG1sI3RvX3N0cmVhbV90aW1lIiwibmFtZSI6InRvX3N0cmVhbV90aW1lIiwiY2hpbGRyZW4iOltdLCJpc0V4dGVybiI6ZmFsc2UsImlzSW50ZXJuIjp0cnVlfSx7ImNsYXNzTmFtZXMiOiJ0c2Qta2luZC1tZXRob2QgdHNkLXBhcmVudC1raW5kLWNsYXNzIHRzZC1pcy1zdGF0aWMiLCJocmVmIjoiR3N0XzBfMTAuR3N0LlNlZ21lbnQuaHRtbCNuZXciLCJuYW1lIjoibmV3IiwiY2hpbGRyZW4iOltdLCJpc0V4dGVybiI6ZmFsc2UsImlzSW50ZXJuIjp0cnVlfV0sImNsYXNzTmFtZXMiOiJjdXJyZW50IHRzZC1raW5kLWNsYXNzIHRzZC1wYXJlbnQta2luZC1uYW1lc3BhY2UiLCJocmVmIjoiR3N0XzBfMTAuR3N0LlNlZ21lbnQuaHRtbCIsIm5hbWUiOiJTZWdtZW50In0=
A helper structure that holds the configured region of interest in a media file.