Gst.SystemClock¶
| Subclasses: | None | 
|---|
Methods¶
| Inherited: | Gst.Clock (32), Gst.Object (27), GObject.Object (37) | 
|---|---|
| Structs: | GObject.ObjectClass (5) | 
| class | obtain() | 
| class | set_default(new_clock) | 
Virtual Methods¶
| Inherited: | Gst.Clock (6), Gst.Object (1), GObject.Object (7) | 
|---|
Properties¶
| Inherited: | Gst.Clock (3), Gst.Object (2) | 
|---|
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| clock-type | Gst.ClockType | r/w | The type of underlying clock implementation used | 
Signals¶
| Inherited: | Gst.Clock (1), Gst.Object (1), GObject.Object (1) | 
|---|
Fields¶
| Inherited: | Gst.Clock (1), Gst.Object (1), GObject.Object (1) | 
|---|
| Name | Type | Access | Description | 
|---|---|---|---|
| clock | Gst.Clock | r | 
Class Details¶
- 
class Gst.SystemClock(**kwargs)¶
- Bases: - Gst.Clock- Abstract: - No - Structure: - Gst.SystemClockClass- The GStreamer core provides a - Gst.SystemClockbased 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: - Gst.Clock- 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]¶
- Parameters: - new_clock ( - Gst.Clockor- None) – a- Gst.Clock- 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. 
 
- 
classmethod 
Property Details¶
- 
Gst.SystemClock.props.clock_type¶
- Name: - clock-type- Type: - Gst.ClockType- Default Value: - Gst.ClockType.MONOTONIC- Flags: - READABLE,- WRITABLE- The type of underlying clock implementation used