Gst.SystemClock¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The type of underlying clock implementation used |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
clock |
r |
Class Details¶
- class Gst.SystemClock(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The GStreamer core provides a
Gst.SystemClock
based on the system time. Asynchronous callbacks are scheduled from an internal thread.Clock implementors are encouraged to subclass this systemclock as it implements the async notification.
Subclasses can however override all of the important methods for sync and async notifications to implement their own callback methods or blocking wait operations.
- classmethod obtain()[source]¶
- Returns:
the default clock.
MT safe.
- Return type:
Get a handle to the default system clock. The refcount of the clock will be increased so you need to unref the clock after usage.
- classmethod set_default(new_clock)[source]¶
-
Sets the default system clock that can be obtained with
Gst.SystemClock.obtain
().This is mostly used for testing and debugging purposes when you want to have control over the time reported by the default system clock.
MT safe.
New in version 1.4.
Property Details¶
- Gst.SystemClock.props.clock_type¶
- Name:
clock-type
- Type:
- Default Value:
- Flags:
The type of underlying clock implementation used