@girs/gstplayer-1.0 1.0.0-3.0.0-beta.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1300 @@
1
+
2
+ /*
3
+ * Type Definitions for Gjs (https://gjs.guide/)
4
+ *
5
+ * These type definitions are automatically generated, do not edit them by hand.
6
+ * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gjs
7
+ */
8
+ /**
9
+ * GstPlayer-1.0
10
+ */
11
+
12
+ import type GstVideo from '@girs/gstvideo-1.0';
13
+ import type GstBase from '@girs/gstbase-1.0';
14
+ import type Gst from '@girs/gst-1.0';
15
+ import type GObject from '@girs/gobject-2.0';
16
+ import type GLib from '@girs/glib-2.0';
17
+ import type GModule from '@girs/gmodule-2.0';
18
+ import type GstTag from '@girs/gsttag-1.0';
19
+ import type GstPbutils from '@girs/gstpbutils-1.0';
20
+ import type GstAudio from '@girs/gstaudio-1.0';
21
+
22
+ export enum PlayerColorBalanceType {
23
+ /**
24
+ * hue or color balance.
25
+ */
26
+ HUE,
27
+ /**
28
+ * brightness or black level.
29
+ */
30
+ BRIGHTNESS,
31
+ /**
32
+ * color saturation or chroma
33
+ * gain.
34
+ */
35
+ SATURATION,
36
+ /**
37
+ * contrast or luma gain.
38
+ */
39
+ CONTRAST,
40
+ }
41
+ export enum PlayerError {
42
+ /**
43
+ * generic error.
44
+ */
45
+ FAILED,
46
+ }
47
+ export enum PlayerSnapshotFormat {
48
+ RAW_NATIVE,
49
+ RAW_XRGB,
50
+ RAW_BGRX,
51
+ JPG,
52
+ PNG,
53
+ }
54
+ export enum PlayerState {
55
+ /**
56
+ * the player is stopped.
57
+ */
58
+ STOPPED,
59
+ /**
60
+ * the player is buffering.
61
+ */
62
+ BUFFERING,
63
+ /**
64
+ * the player is paused.
65
+ */
66
+ PAUSED,
67
+ /**
68
+ * the player is currently playing a
69
+ * stream.
70
+ */
71
+ PLAYING,
72
+ }
73
+ /**
74
+ * Gets a string representing the given color balance type.
75
+ * @param type a #GstPlayerColorBalanceType
76
+ * @returns a string with the name of the color balance type.
77
+ */
78
+ export function player_color_balance_type_get_name(type: PlayerColorBalanceType): string | null
79
+ /**
80
+ * Gets a string representing the given error.
81
+ * @param error a #GstPlayerError
82
+ * @returns a string with the given error.
83
+ */
84
+ export function player_error_get_name(error: PlayerError): string | null
85
+ export function player_error_quark(): GLib.Quark
86
+ /**
87
+ * Gets a string representing the given state.
88
+ * @param state a #GstPlayerState
89
+ * @returns a string with the name of the state.
90
+ */
91
+ export function player_state_get_name(state: PlayerState): string | null
92
+ export interface PlayerSignalDispatcherFunc {
93
+ (data: any | null): void
94
+ }
95
+ export module PlayerSignalDispatcher {
96
+
97
+ // Constructor properties interface
98
+
99
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
100
+ }
101
+
102
+ }
103
+
104
+ export interface PlayerSignalDispatcher {
105
+
106
+ // Own virtual methods of GstPlayer-1.0.GstPlayer.PlayerSignalDispatcher
107
+
108
+ vfunc_dispatch(player: Player, emitter: PlayerSignalDispatcherFunc): void
109
+
110
+ // Class property signals of GstPlayer-1.0.GstPlayer.PlayerSignalDispatcher
111
+
112
+ connect(sigName: string, callback: (...args: any[]) => void): number
113
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
114
+ emit(sigName: string, ...args: any[]): void
115
+ disconnect(id: number): void
116
+ }
117
+
118
+ export class PlayerSignalDispatcher extends GObject.Object {
119
+
120
+ // Own properties of GstPlayer-1.0.GstPlayer.PlayerSignalDispatcher
121
+
122
+ static name: string
123
+ static $gtype: GObject.GType<PlayerSignalDispatcher>
124
+
125
+ // Constructors of GstPlayer-1.0.GstPlayer.PlayerSignalDispatcher
126
+
127
+ constructor(config?: PlayerSignalDispatcher.ConstructorProperties)
128
+ _init(config?: PlayerSignalDispatcher.ConstructorProperties): void
129
+ }
130
+
131
+ export module PlayerVideoRenderer {
132
+
133
+ // Constructor properties interface
134
+
135
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
136
+ }
137
+
138
+ }
139
+
140
+ export interface PlayerVideoRenderer {
141
+
142
+ // Class property signals of GstPlayer-1.0.GstPlayer.PlayerVideoRenderer
143
+
144
+ connect(sigName: string, callback: (...args: any[]) => void): number
145
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
146
+ emit(sigName: string, ...args: any[]): void
147
+ disconnect(id: number): void
148
+ }
149
+
150
+ export class PlayerVideoRenderer extends GObject.Object {
151
+
152
+ // Own properties of GstPlayer-1.0.GstPlayer.PlayerVideoRenderer
153
+
154
+ static name: string
155
+ static $gtype: GObject.GType<PlayerVideoRenderer>
156
+
157
+ // Constructors of GstPlayer-1.0.GstPlayer.PlayerVideoRenderer
158
+
159
+ constructor(config?: PlayerVideoRenderer.ConstructorProperties)
160
+ _init(config?: PlayerVideoRenderer.ConstructorProperties): void
161
+ }
162
+
163
+ export module Player {
164
+
165
+ // Signal callback interfaces
166
+
167
+ /**
168
+ * Signal callback interface for `buffering`
169
+ */
170
+ export interface BufferingSignalCallback {
171
+ ($obj: Player, object: number): void
172
+ }
173
+
174
+ /**
175
+ * Signal callback interface for `duration-changed`
176
+ */
177
+ export interface DurationChangedSignalCallback {
178
+ ($obj: Player, object: number): void
179
+ }
180
+
181
+ /**
182
+ * Signal callback interface for `end-of-stream`
183
+ */
184
+ export interface EndOfStreamSignalCallback {
185
+ ($obj: Player): void
186
+ }
187
+
188
+ /**
189
+ * Signal callback interface for `error`
190
+ */
191
+ export interface ErrorSignalCallback {
192
+ ($obj: Player, object: GLib.Error): void
193
+ }
194
+
195
+ /**
196
+ * Signal callback interface for `media-info-updated`
197
+ */
198
+ export interface MediaInfoUpdatedSignalCallback {
199
+ ($obj: Player, object: PlayerMediaInfo): void
200
+ }
201
+
202
+ /**
203
+ * Signal callback interface for `mute-changed`
204
+ */
205
+ export interface MuteChangedSignalCallback {
206
+ ($obj: Player): void
207
+ }
208
+
209
+ /**
210
+ * Signal callback interface for `position-updated`
211
+ */
212
+ export interface PositionUpdatedSignalCallback {
213
+ ($obj: Player, object: number): void
214
+ }
215
+
216
+ /**
217
+ * Signal callback interface for `seek-done`
218
+ */
219
+ export interface SeekDoneSignalCallback {
220
+ ($obj: Player, object: number): void
221
+ }
222
+
223
+ /**
224
+ * Signal callback interface for `state-changed`
225
+ */
226
+ export interface StateChangedSignalCallback {
227
+ ($obj: Player, object: PlayerState): void
228
+ }
229
+
230
+ /**
231
+ * Signal callback interface for `uri-loaded`
232
+ */
233
+ export interface UriLoadedSignalCallback {
234
+ ($obj: Player, object: string | null): void
235
+ }
236
+
237
+ /**
238
+ * Signal callback interface for `video-dimensions-changed`
239
+ */
240
+ export interface VideoDimensionsChangedSignalCallback {
241
+ ($obj: Player, object: number, p0: number): void
242
+ }
243
+
244
+ /**
245
+ * Signal callback interface for `volume-changed`
246
+ */
247
+ export interface VolumeChangedSignalCallback {
248
+ ($obj: Player): void
249
+ }
250
+
251
+ /**
252
+ * Signal callback interface for `warning`
253
+ */
254
+ export interface WarningSignalCallback {
255
+ ($obj: Player, object: GLib.Error): void
256
+ }
257
+
258
+
259
+ // Constructor properties interface
260
+
261
+ export interface ConstructorProperties extends Gst.Object.ConstructorProperties {
262
+
263
+ // Own constructor properties of GstPlayer-1.0.GstPlayer.Player
264
+
265
+ audio_video_offset?: number | null
266
+ mute?: boolean | null
267
+ rate?: number | null
268
+ signal_dispatcher?: PlayerSignalDispatcher | null
269
+ subtitle_video_offset?: number | null
270
+ suburi?: string | null
271
+ uri?: string | null
272
+ video_multiview_flags?: GstVideo.VideoMultiviewFlags | null
273
+ video_multiview_mode?: GstVideo.VideoMultiviewFramePacking | null
274
+ video_renderer?: PlayerVideoRenderer | null
275
+ volume?: number | null
276
+ }
277
+
278
+ }
279
+
280
+ export interface Player {
281
+
282
+ // Own properties of GstPlayer-1.0.GstPlayer.Player
283
+
284
+ audio_video_offset: number
285
+ readonly current_audio_track: PlayerAudioInfo
286
+ readonly current_subtitle_track: PlayerSubtitleInfo
287
+ readonly current_video_track: PlayerVideoInfo
288
+ readonly duration: number
289
+ readonly media_info: PlayerMediaInfo
290
+ mute: boolean
291
+ readonly pipeline: Gst.Element | null
292
+ readonly position: number
293
+ rate: number
294
+ readonly signal_dispatcher: PlayerSignalDispatcher
295
+ subtitle_video_offset: number
296
+ suburi: string | null
297
+ uri: string | null
298
+ video_multiview_flags: GstVideo.VideoMultiviewFlags
299
+ video_multiview_mode: GstVideo.VideoMultiviewFramePacking
300
+ readonly video_renderer: PlayerVideoRenderer
301
+ volume: number
302
+
303
+ // Owm methods of GstPlayer-1.0.GstPlayer.Player
304
+
305
+ /**
306
+ * Retrieve the current value of audio-video-offset property
307
+ * @returns The current value of audio-video-offset in nanoseconds
308
+ */
309
+ get_audio_video_offset(): number
310
+ /**
311
+ * Retrieve the current value of the indicated `type`.
312
+ * @param type #GstPlayerColorBalanceType
313
+ * @returns The current value of @type, between [0,1]. In case of error -1 is returned.
314
+ */
315
+ get_color_balance(type: PlayerColorBalanceType): number
316
+ /**
317
+ * Get a copy of the current configuration of the player. This configuration
318
+ * can either be modified and used for the gst_player_set_config() call
319
+ * or it must be freed after usage.
320
+ * @returns a copy of the current configuration of @player. Use gst_structure_free() after usage or gst_player_set_config().
321
+ */
322
+ get_config(): Gst.Structure
323
+ /**
324
+ * A Function to get current audio #GstPlayerAudioInfo instance.
325
+ * @returns current audio track. The caller should free it with g_object_unref()
326
+ */
327
+ get_current_audio_track(): PlayerAudioInfo | null
328
+ /**
329
+ * A Function to get current subtitle #GstPlayerSubtitleInfo instance.
330
+ * @returns current subtitle track. The caller should free it with g_object_unref()
331
+ */
332
+ get_current_subtitle_track(): PlayerSubtitleInfo | null
333
+ /**
334
+ * A Function to get current video #GstPlayerVideoInfo instance.
335
+ * @returns current video track. The caller should free it with g_object_unref()
336
+ */
337
+ get_current_video_track(): PlayerVideoInfo | null
338
+ get_current_visualization(): string | null
339
+ /**
340
+ * Retrieves the duration of the media stream that self represents.
341
+ * @returns the duration of the currently-playing media stream, in nanoseconds.
342
+ */
343
+ get_duration(): Gst.ClockTime
344
+ /**
345
+ * A Function to get the current media info #GstPlayerMediaInfo instance.
346
+ * @returns media info instance. The caller should free it with g_object_unref()
347
+ */
348
+ get_media_info(): PlayerMediaInfo | null
349
+ /**
350
+ * Retrieve the current value of the indicated `type`.
351
+ * @returns The current value of @type, Default: 0x00000000 "none
352
+ */
353
+ get_multiview_flags(): GstVideo.VideoMultiviewFlags
354
+ /**
355
+ * Retrieve the current value of the indicated `type`.
356
+ * @returns The current value of @type, Default: -1 "none"
357
+ */
358
+ get_multiview_mode(): GstVideo.VideoMultiviewFramePacking
359
+ get_mute(): boolean
360
+ get_pipeline(): Gst.Element
361
+ get_position(): Gst.ClockTime
362
+ get_rate(): number
363
+ /**
364
+ * current subtitle URI
365
+ * @returns URI of the current external subtitle. g_free() after usage.
366
+ */
367
+ get_subtitle_uri(): string | null
368
+ /**
369
+ * Retrieve the current value of subtitle-video-offset property
370
+ * @returns The current value of subtitle-video-offset in nanoseconds
371
+ */
372
+ get_subtitle_video_offset(): number
373
+ /**
374
+ * Gets the URI of the currently-playing stream.
375
+ * @returns a string containing the URI of the currently-playing stream. g_free() after usage.
376
+ */
377
+ get_uri(): string | null
378
+ /**
379
+ * Get a snapshot of the currently selected video stream, if any. The format can be
380
+ * selected with `format` and optional configuration is possible with `config`
381
+ * Currently supported settings are:
382
+ * - width, height of type G_TYPE_INT
383
+ * - pixel-aspect-ratio of type GST_TYPE_FRACTION
384
+ * Except for GST_PLAYER_THUMBNAIL_RAW_NATIVE format, if no config is set, pixel-aspect-ratio would be 1/1
385
+ * @param format output format of the video snapshot
386
+ * @param config Additional configuration
387
+ * @returns Current video snapshot sample or %NULL on failure
388
+ */
389
+ get_video_snapshot(format: PlayerSnapshotFormat, config: Gst.Structure | null): Gst.Sample | null
390
+ /**
391
+ * Returns the current volume level, as a percentage between 0 and 1.
392
+ * @returns the volume as percentage between 0 and 1.
393
+ */
394
+ get_volume(): number
395
+ /**
396
+ * Checks whether the `player` has color balance support available.
397
+ * @returns %TRUE if @player has color balance support. Otherwise, %FALSE.
398
+ */
399
+ has_color_balance(): boolean
400
+ /**
401
+ * Pauses the current stream.
402
+ */
403
+ pause(): void
404
+ /**
405
+ * Request to play the loaded stream.
406
+ */
407
+ play(): void
408
+ /**
409
+ * Seeks the currently-playing stream to the absolute `position` time
410
+ * in nanoseconds.
411
+ * @param position position to seek in nanoseconds
412
+ */
413
+ seek(position: Gst.ClockTime): void
414
+ set_audio_track(stream_index: number): boolean
415
+ /**
416
+ * Enable or disable the current audio track.
417
+ * @param enabled TRUE or FALSE
418
+ */
419
+ set_audio_track_enabled(enabled: boolean): void
420
+ /**
421
+ * Sets audio-video-offset property by value of `offset`
422
+ * @param offset #gint64 in nanoseconds
423
+ */
424
+ set_audio_video_offset(offset: number): void
425
+ /**
426
+ * Sets the current value of the indicated channel `type` to the passed
427
+ * value.
428
+ * @param type #GstPlayerColorBalanceType
429
+ * @param value The new value for the `type,` ranged [0,1]
430
+ */
431
+ set_color_balance(type: PlayerColorBalanceType, value: number): void
432
+ /**
433
+ * Set the configuration of the player. If the player is already configured, and
434
+ * the configuration haven't change, this function will return %TRUE. If the
435
+ * player is not in the GST_PLAYER_STATE_STOPPED, this method will return %FALSE
436
+ * and active configuration will remain.
437
+ *
438
+ * `config` is a #GstStructure that contains the configuration parameters for
439
+ * the player.
440
+ *
441
+ * This function takes ownership of `config`.
442
+ * @param config a #GstStructure
443
+ * @returns %TRUE when the configuration could be set.
444
+ */
445
+ set_config(config: Gst.Structure): boolean
446
+ /**
447
+ * Sets the current value of the indicated mode `type` to the passed
448
+ * value.
449
+ * @param flags The new value for the `type`
450
+ */
451
+ set_multiview_flags(flags: GstVideo.VideoMultiviewFlags): void
452
+ /**
453
+ * Sets the current value of the indicated mode `type` to the passed
454
+ * value.
455
+ * @param mode The new value for the `type`
456
+ */
457
+ set_multiview_mode(mode: GstVideo.VideoMultiviewFramePacking): void
458
+ /**
459
+ * %TRUE if the currently-playing stream should be muted.
460
+ * @param val Mute state the should be set
461
+ */
462
+ set_mute(val: boolean): void
463
+ /**
464
+ * Playback at specified rate
465
+ * @param rate playback rate
466
+ */
467
+ set_rate(rate: number): void
468
+ set_subtitle_track(stream_index: number): boolean
469
+ /**
470
+ * Enable or disable the current subtitle track.
471
+ * @param enabled TRUE or FALSE
472
+ */
473
+ set_subtitle_track_enabled(enabled: boolean): void
474
+ /**
475
+ * Sets the external subtitle URI. This should be combined with a call to
476
+ * gst_player_set_subtitle_track_enabled(`player,` TRUE) so the subtitles are actually
477
+ * rendered.
478
+ * @param uri subtitle URI
479
+ */
480
+ set_subtitle_uri(uri: string | null): void
481
+ /**
482
+ * Sets subtitle-video-offset property by value of `offset`
483
+ * @param offset #gint64 in nanoseconds
484
+ */
485
+ set_subtitle_video_offset(offset: number): void
486
+ /**
487
+ * Sets the next URI to play.
488
+ * @param uri next URI to play.
489
+ */
490
+ set_uri(uri: string | null): void
491
+ set_video_track(stream_index: number): boolean
492
+ /**
493
+ * Enable or disable the current video track.
494
+ * @param enabled TRUE or FALSE
495
+ */
496
+ set_video_track_enabled(enabled: boolean): void
497
+ set_visualization(name: string | null): boolean
498
+ /**
499
+ * Enable or disable the visualization.
500
+ * @param enabled TRUE or FALSE
501
+ */
502
+ set_visualization_enabled(enabled: boolean): void
503
+ /**
504
+ * Sets the volume level of the stream as a percentage between 0 and 1.
505
+ *
506
+ * This volume is a linear factor. For showing the volume in a GUI it
507
+ * might make sense to first convert from a different format. Volume sliders
508
+ * should usually use a cubic volume. See gst_stream_volume_convert_volume().
509
+ * @param val the new volume level, as a percentage between 0 and 1
510
+ */
511
+ set_volume(val: number): void
512
+ /**
513
+ * Stops playing the current stream and resets to the first position
514
+ * in the stream.
515
+ */
516
+ stop(): void
517
+
518
+ // Conflicting methods
519
+
520
+ /**
521
+ * Increments the reference count on `object`. This function
522
+ * does not take the lock on `object` because it relies on
523
+ * atomic refcounting.
524
+ *
525
+ * This object returns the input parameter to ease writing
526
+ * constructs like :
527
+ * result = gst_object_ref (object->parent);
528
+ * @returns A pointer to @object
529
+ */
530
+ ref(): Gst.Object
531
+
532
+ // Overloads of ref
533
+
534
+ /**
535
+ * Increases the reference count of `object`.
536
+ *
537
+ * Since GLib 2.56, if `GLIB_VERSION_MAX_ALLOWED` is 2.56 or greater, the type
538
+ * of `object` will be propagated to the return type (using the GCC typeof()
539
+ * extension), so any casting the caller needs to do on the return type must be
540
+ * explicit.
541
+ * @returns the same @object
542
+ */
543
+ ref(): GObject.Object
544
+ /**
545
+ * Increases the reference count of `object`.
546
+ *
547
+ * Since GLib 2.56, if `GLIB_VERSION_MAX_ALLOWED` is 2.56 or greater, the type
548
+ * of `object` will be propagated to the return type (using the GCC typeof()
549
+ * extension), so any casting the caller needs to do on the return type must be
550
+ * explicit.
551
+ * @returns the same @object
552
+ */
553
+ ref(): GObject.Object
554
+
555
+ // Own signals of GstPlayer-1.0.GstPlayer.Player
556
+
557
+ connect(sigName: "buffering", callback: Player.BufferingSignalCallback): number
558
+ connect_after(sigName: "buffering", callback: Player.BufferingSignalCallback): number
559
+ emit(sigName: "buffering", object: number, ...args: any[]): void
560
+ connect(sigName: "duration-changed", callback: Player.DurationChangedSignalCallback): number
561
+ connect_after(sigName: "duration-changed", callback: Player.DurationChangedSignalCallback): number
562
+ emit(sigName: "duration-changed", object: number, ...args: any[]): void
563
+ connect(sigName: "end-of-stream", callback: Player.EndOfStreamSignalCallback): number
564
+ connect_after(sigName: "end-of-stream", callback: Player.EndOfStreamSignalCallback): number
565
+ emit(sigName: "end-of-stream", ...args: any[]): void
566
+ connect(sigName: "error", callback: Player.ErrorSignalCallback): number
567
+ connect_after(sigName: "error", callback: Player.ErrorSignalCallback): number
568
+ emit(sigName: "error", object: GLib.Error, ...args: any[]): void
569
+ connect(sigName: "media-info-updated", callback: Player.MediaInfoUpdatedSignalCallback): number
570
+ connect_after(sigName: "media-info-updated", callback: Player.MediaInfoUpdatedSignalCallback): number
571
+ emit(sigName: "media-info-updated", object: PlayerMediaInfo, ...args: any[]): void
572
+ connect(sigName: "mute-changed", callback: Player.MuteChangedSignalCallback): number
573
+ connect_after(sigName: "mute-changed", callback: Player.MuteChangedSignalCallback): number
574
+ emit(sigName: "mute-changed", ...args: any[]): void
575
+ connect(sigName: "position-updated", callback: Player.PositionUpdatedSignalCallback): number
576
+ connect_after(sigName: "position-updated", callback: Player.PositionUpdatedSignalCallback): number
577
+ emit(sigName: "position-updated", object: number, ...args: any[]): void
578
+ connect(sigName: "seek-done", callback: Player.SeekDoneSignalCallback): number
579
+ connect_after(sigName: "seek-done", callback: Player.SeekDoneSignalCallback): number
580
+ emit(sigName: "seek-done", object: number, ...args: any[]): void
581
+ connect(sigName: "state-changed", callback: Player.StateChangedSignalCallback): number
582
+ connect_after(sigName: "state-changed", callback: Player.StateChangedSignalCallback): number
583
+ emit(sigName: "state-changed", object: PlayerState, ...args: any[]): void
584
+ connect(sigName: "uri-loaded", callback: Player.UriLoadedSignalCallback): number
585
+ connect_after(sigName: "uri-loaded", callback: Player.UriLoadedSignalCallback): number
586
+ emit(sigName: "uri-loaded", object: string | null, ...args: any[]): void
587
+ connect(sigName: "video-dimensions-changed", callback: Player.VideoDimensionsChangedSignalCallback): number
588
+ connect_after(sigName: "video-dimensions-changed", callback: Player.VideoDimensionsChangedSignalCallback): number
589
+ emit(sigName: "video-dimensions-changed", object: number, p0: number, ...args: any[]): void
590
+ connect(sigName: "volume-changed", callback: Player.VolumeChangedSignalCallback): number
591
+ connect_after(sigName: "volume-changed", callback: Player.VolumeChangedSignalCallback): number
592
+ emit(sigName: "volume-changed", ...args: any[]): void
593
+ connect(sigName: "warning", callback: Player.WarningSignalCallback): number
594
+ connect_after(sigName: "warning", callback: Player.WarningSignalCallback): number
595
+ emit(sigName: "warning", object: GLib.Error, ...args: any[]): void
596
+
597
+ // Class property signals of GstPlayer-1.0.GstPlayer.Player
598
+
599
+ connect(sigName: "notify::audio-video-offset", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
600
+ connect_after(sigName: "notify::audio-video-offset", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
601
+ emit(sigName: "notify::audio-video-offset", ...args: any[]): void
602
+ connect(sigName: "notify::current-audio-track", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
603
+ connect_after(sigName: "notify::current-audio-track", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
604
+ emit(sigName: "notify::current-audio-track", ...args: any[]): void
605
+ connect(sigName: "notify::current-subtitle-track", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
606
+ connect_after(sigName: "notify::current-subtitle-track", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
607
+ emit(sigName: "notify::current-subtitle-track", ...args: any[]): void
608
+ connect(sigName: "notify::current-video-track", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
609
+ connect_after(sigName: "notify::current-video-track", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
610
+ emit(sigName: "notify::current-video-track", ...args: any[]): void
611
+ connect(sigName: "notify::duration", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
612
+ connect_after(sigName: "notify::duration", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
613
+ emit(sigName: "notify::duration", ...args: any[]): void
614
+ connect(sigName: "notify::media-info", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
615
+ connect_after(sigName: "notify::media-info", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
616
+ emit(sigName: "notify::media-info", ...args: any[]): void
617
+ connect(sigName: "notify::mute", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
618
+ connect_after(sigName: "notify::mute", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
619
+ emit(sigName: "notify::mute", ...args: any[]): void
620
+ connect(sigName: "notify::pipeline", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
621
+ connect_after(sigName: "notify::pipeline", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
622
+ emit(sigName: "notify::pipeline", ...args: any[]): void
623
+ connect(sigName: "notify::position", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
624
+ connect_after(sigName: "notify::position", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
625
+ emit(sigName: "notify::position", ...args: any[]): void
626
+ connect(sigName: "notify::rate", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
627
+ connect_after(sigName: "notify::rate", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
628
+ emit(sigName: "notify::rate", ...args: any[]): void
629
+ connect(sigName: "notify::signal-dispatcher", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
630
+ connect_after(sigName: "notify::signal-dispatcher", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
631
+ emit(sigName: "notify::signal-dispatcher", ...args: any[]): void
632
+ connect(sigName: "notify::subtitle-video-offset", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
633
+ connect_after(sigName: "notify::subtitle-video-offset", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
634
+ emit(sigName: "notify::subtitle-video-offset", ...args: any[]): void
635
+ connect(sigName: "notify::suburi", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
636
+ connect_after(sigName: "notify::suburi", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
637
+ emit(sigName: "notify::suburi", ...args: any[]): void
638
+ connect(sigName: "notify::uri", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
639
+ connect_after(sigName: "notify::uri", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
640
+ emit(sigName: "notify::uri", ...args: any[]): void
641
+ connect(sigName: "notify::video-multiview-flags", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
642
+ connect_after(sigName: "notify::video-multiview-flags", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
643
+ emit(sigName: "notify::video-multiview-flags", ...args: any[]): void
644
+ connect(sigName: "notify::video-multiview-mode", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
645
+ connect_after(sigName: "notify::video-multiview-mode", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
646
+ emit(sigName: "notify::video-multiview-mode", ...args: any[]): void
647
+ connect(sigName: "notify::video-renderer", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
648
+ connect_after(sigName: "notify::video-renderer", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
649
+ emit(sigName: "notify::video-renderer", ...args: any[]): void
650
+ connect(sigName: "notify::volume", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
651
+ connect_after(sigName: "notify::volume", callback: (($obj: Player, pspec: GObject.ParamSpec) => void)): number
652
+ emit(sigName: "notify::volume", ...args: any[]): void
653
+ connect(sigName: string, callback: (...args: any[]) => void): number
654
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
655
+ emit(sigName: string, ...args: any[]): void
656
+ disconnect(id: number): void
657
+ }
658
+
659
+ /**
660
+ * Starting from GStreamer 1.20, application developers are strongly advised to migrate to #GstPlay.
661
+ * #GstPlayer will be deprecated in 1.20 and most likely removed by 1.24.
662
+ * @class
663
+ */
664
+ export class Player extends Gst.Object {
665
+
666
+ // Own properties of GstPlayer-1.0.GstPlayer.Player
667
+
668
+ static name: string
669
+ static $gtype: GObject.GType<Player>
670
+
671
+ // Constructors of GstPlayer-1.0.GstPlayer.Player
672
+
673
+ constructor(config?: Player.ConstructorProperties)
674
+ /**
675
+ * Creates a new #GstPlayer instance that uses `signal_dispatcher` to dispatch
676
+ * signals to some event loop system, or emits signals directly if NULL is
677
+ * passed. See gst_player_g_main_context_signal_dispatcher_new().
678
+ *
679
+ * Video is going to be rendered by `video_renderer,` or if %NULL is provided
680
+ * no special video set up will be done and some default handling will be
681
+ * performed.
682
+ * @constructor
683
+ * @param video_renderer GstPlayerVideoRenderer to use
684
+ * @param signal_dispatcher GstPlayerSignalDispatcher to use
685
+ * @returns a new #GstPlayer instance
686
+ */
687
+ constructor(video_renderer: PlayerVideoRenderer | null, signal_dispatcher: PlayerSignalDispatcher | null)
688
+ /**
689
+ * Creates a new #GstPlayer instance that uses `signal_dispatcher` to dispatch
690
+ * signals to some event loop system, or emits signals directly if NULL is
691
+ * passed. See gst_player_g_main_context_signal_dispatcher_new().
692
+ *
693
+ * Video is going to be rendered by `video_renderer,` or if %NULL is provided
694
+ * no special video set up will be done and some default handling will be
695
+ * performed.
696
+ * @constructor
697
+ * @param video_renderer GstPlayerVideoRenderer to use
698
+ * @param signal_dispatcher GstPlayerSignalDispatcher to use
699
+ * @returns a new #GstPlayer instance
700
+ */
701
+ static new(video_renderer: PlayerVideoRenderer | null, signal_dispatcher: PlayerSignalDispatcher | null): Player
702
+ _init(config?: Player.ConstructorProperties): void
703
+ static config_get_position_update_interval(config: Gst.Structure): number
704
+ static config_get_seek_accurate(config: Gst.Structure): boolean
705
+ /**
706
+ * Return the user agent which has been configured using
707
+ * gst_player_config_set_user_agent() if any.
708
+ * @param config a #GstPlayer configuration
709
+ * @returns the configured agent, or %NULL
710
+ */
711
+ static config_get_user_agent(config: Gst.Structure): string | null
712
+ /**
713
+ * set interval in milliseconds between two position-updated signals.
714
+ * pass 0 to stop updating the position.
715
+ * @param config a #GstPlayer configuration
716
+ * @param interval interval in ms
717
+ */
718
+ static config_set_position_update_interval(config: Gst.Structure, interval: number): void
719
+ /**
720
+ * Enable or disable accurate seeking. When enabled, elements will try harder
721
+ * to seek as accurately as possible to the requested seek position. Generally
722
+ * it will be slower especially for formats that don't have any indexes or
723
+ * timestamp markers in the stream.
724
+ *
725
+ * If accurate seeking is disabled, elements will seek as close as the request
726
+ * position without slowing down seeking too much.
727
+ *
728
+ * Accurate seeking is disabled by default.
729
+ * @param config a #GstPlayer configuration
730
+ * @param accurate accurate seek or not
731
+ */
732
+ static config_set_seek_accurate(config: Gst.Structure, accurate: boolean): void
733
+ /**
734
+ * Set the user agent to pass to the server if `player` needs to connect
735
+ * to a server during playback. This is typically used when playing HTTP
736
+ * or RTSP streams.
737
+ * @param config a #GstPlayer configuration
738
+ * @param agent the string to use as user agent
739
+ */
740
+ static config_set_user_agent(config: Gst.Structure, agent: string | null): void
741
+ static get_audio_streams(info: PlayerMediaInfo): PlayerAudioInfo[]
742
+ static get_subtitle_streams(info: PlayerMediaInfo): PlayerSubtitleInfo[]
743
+ static get_video_streams(info: PlayerMediaInfo): PlayerVideoInfo[]
744
+ /**
745
+ * Frees a %NULL terminated array of #GstPlayerVisualization.
746
+ * @param viss a %NULL terminated array of #GstPlayerVisualization to free
747
+ */
748
+ static visualizations_free(viss: PlayerVisualization): void
749
+ static visualizations_get(): PlayerVisualization[]
750
+ }
751
+
752
+ export module PlayerAudioInfo {
753
+
754
+ // Constructor properties interface
755
+
756
+ export interface ConstructorProperties extends PlayerStreamInfo.ConstructorProperties {
757
+ }
758
+
759
+ }
760
+
761
+ export interface PlayerAudioInfo {
762
+
763
+ // Owm methods of GstPlayer-1.0.GstPlayer.PlayerAudioInfo
764
+
765
+ get_bitrate(): number
766
+ get_channels(): number
767
+ get_language(): string | null
768
+ get_max_bitrate(): number
769
+ get_sample_rate(): number
770
+
771
+ // Class property signals of GstPlayer-1.0.GstPlayer.PlayerAudioInfo
772
+
773
+ connect(sigName: string, callback: (...args: any[]) => void): number
774
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
775
+ emit(sigName: string, ...args: any[]): void
776
+ disconnect(id: number): void
777
+ }
778
+
779
+ /**
780
+ * #GstPlayerStreamInfo specific to audio streams.
781
+ * @class
782
+ */
783
+ export class PlayerAudioInfo extends PlayerStreamInfo {
784
+
785
+ // Own properties of GstPlayer-1.0.GstPlayer.PlayerAudioInfo
786
+
787
+ static name: string
788
+ static $gtype: GObject.GType<PlayerAudioInfo>
789
+
790
+ // Constructors of GstPlayer-1.0.GstPlayer.PlayerAudioInfo
791
+
792
+ constructor(config?: PlayerAudioInfo.ConstructorProperties)
793
+ _init(config?: PlayerAudioInfo.ConstructorProperties): void
794
+ }
795
+
796
+ export module PlayerGMainContextSignalDispatcher {
797
+
798
+ // Constructor properties interface
799
+
800
+ export interface ConstructorProperties extends PlayerSignalDispatcher.ConstructorProperties, GObject.Object.ConstructorProperties {
801
+
802
+ // Own constructor properties of GstPlayer-1.0.GstPlayer.PlayerGMainContextSignalDispatcher
803
+
804
+ application_context?: GLib.MainContext | null
805
+ }
806
+
807
+ }
808
+
809
+ export interface PlayerGMainContextSignalDispatcher extends PlayerSignalDispatcher {
810
+
811
+ // Own properties of GstPlayer-1.0.GstPlayer.PlayerGMainContextSignalDispatcher
812
+
813
+ readonly application_context: GLib.MainContext
814
+
815
+ // Class property signals of GstPlayer-1.0.GstPlayer.PlayerGMainContextSignalDispatcher
816
+
817
+ connect(sigName: "notify::application-context", callback: (($obj: PlayerGMainContextSignalDispatcher, pspec: GObject.ParamSpec) => void)): number
818
+ connect_after(sigName: "notify::application-context", callback: (($obj: PlayerGMainContextSignalDispatcher, pspec: GObject.ParamSpec) => void)): number
819
+ emit(sigName: "notify::application-context", ...args: any[]): void
820
+ connect(sigName: string, callback: (...args: any[]) => void): number
821
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
822
+ emit(sigName: string, ...args: any[]): void
823
+ disconnect(id: number): void
824
+ }
825
+
826
+ export class PlayerGMainContextSignalDispatcher extends GObject.Object {
827
+
828
+ // Own properties of GstPlayer-1.0.GstPlayer.PlayerGMainContextSignalDispatcher
829
+
830
+ static name: string
831
+ static $gtype: GObject.GType<PlayerGMainContextSignalDispatcher>
832
+
833
+ // Constructors of GstPlayer-1.0.GstPlayer.PlayerGMainContextSignalDispatcher
834
+
835
+ constructor(config?: PlayerGMainContextSignalDispatcher.ConstructorProperties)
836
+ _init(config?: PlayerGMainContextSignalDispatcher.ConstructorProperties): void
837
+ /**
838
+ * Creates a new GstPlayerSignalDispatcher that uses `application_context,`
839
+ * or the thread default one if %NULL is used. See gst_player_new().
840
+ * @param application_context GMainContext to use or %NULL
841
+ * @returns the new GstPlayerSignalDispatcher
842
+ */
843
+ static new(application_context: GLib.MainContext | null): PlayerSignalDispatcher
844
+ }
845
+
846
+ export module PlayerMediaInfo {
847
+
848
+ // Constructor properties interface
849
+
850
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
851
+ }
852
+
853
+ }
854
+
855
+ export interface PlayerMediaInfo {
856
+
857
+ // Owm methods of GstPlayer-1.0.GstPlayer.PlayerMediaInfo
858
+
859
+ get_audio_streams(): PlayerAudioInfo[]
860
+ get_container_format(): string | null
861
+ get_duration(): Gst.ClockTime
862
+ /**
863
+ * Function to get the image (or preview-image) stored in taglist.
864
+ * Application can use `gst_sample_*_()` API's to get caps, buffer etc.
865
+ * @returns GstSample or %NULL.
866
+ */
867
+ get_image_sample(): Gst.Sample | null
868
+ get_number_of_audio_streams(): number
869
+ get_number_of_streams(): number
870
+ get_number_of_subtitle_streams(): number
871
+ get_number_of_video_streams(): number
872
+ get_stream_list(): PlayerStreamInfo[]
873
+ get_subtitle_streams(): PlayerSubtitleInfo[]
874
+ get_tags(): Gst.TagList | null
875
+ get_title(): string | null
876
+ get_uri(): string | null
877
+ get_video_streams(): PlayerVideoInfo[]
878
+ is_live(): boolean
879
+ is_seekable(): boolean
880
+
881
+ // Class property signals of GstPlayer-1.0.GstPlayer.PlayerMediaInfo
882
+
883
+ connect(sigName: string, callback: (...args: any[]) => void): number
884
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
885
+ emit(sigName: string, ...args: any[]): void
886
+ disconnect(id: number): void
887
+ }
888
+
889
+ /**
890
+ * Structure containing the media information of a URI.
891
+ * @class
892
+ */
893
+ export class PlayerMediaInfo extends GObject.Object {
894
+
895
+ // Own properties of GstPlayer-1.0.GstPlayer.PlayerMediaInfo
896
+
897
+ static name: string
898
+ static $gtype: GObject.GType<PlayerMediaInfo>
899
+
900
+ // Constructors of GstPlayer-1.0.GstPlayer.PlayerMediaInfo
901
+
902
+ constructor(config?: PlayerMediaInfo.ConstructorProperties)
903
+ _init(config?: PlayerMediaInfo.ConstructorProperties): void
904
+ }
905
+
906
+ export module PlayerStreamInfo {
907
+
908
+ // Constructor properties interface
909
+
910
+ export interface ConstructorProperties extends GObject.Object.ConstructorProperties {
911
+ }
912
+
913
+ }
914
+
915
+ export interface PlayerStreamInfo {
916
+
917
+ // Owm methods of GstPlayer-1.0.GstPlayer.PlayerStreamInfo
918
+
919
+ get_caps(): Gst.Caps | null
920
+ /**
921
+ * A string describing codec used in #GstPlayerStreamInfo.
922
+ * @returns codec string or %NULL on unknown.
923
+ */
924
+ get_codec(): string | null
925
+ /**
926
+ * Function to get stream index from #GstPlayerStreamInfo instance or -1 if
927
+ * unknown.
928
+ * @returns the stream index of this stream.
929
+ */
930
+ get_index(): number
931
+ /**
932
+ * Function to return human readable name for the stream type
933
+ * of the given `info` (ex: "audio", "video", "subtitle")
934
+ * @returns a human readable name
935
+ */
936
+ get_stream_type(): string | null
937
+ get_tags(): Gst.TagList | null
938
+
939
+ // Class property signals of GstPlayer-1.0.GstPlayer.PlayerStreamInfo
940
+
941
+ connect(sigName: string, callback: (...args: any[]) => void): number
942
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
943
+ emit(sigName: string, ...args: any[]): void
944
+ disconnect(id: number): void
945
+ }
946
+
947
+ /**
948
+ * Base structure for information concerning a media stream. Depending on
949
+ * the stream type, one can find more media-specific information in
950
+ * #GstPlayerVideoInfo, #GstPlayerAudioInfo, #GstPlayerSubtitleInfo.
951
+ * @class
952
+ */
953
+ export class PlayerStreamInfo extends GObject.Object {
954
+
955
+ // Own properties of GstPlayer-1.0.GstPlayer.PlayerStreamInfo
956
+
957
+ static name: string
958
+ static $gtype: GObject.GType<PlayerStreamInfo>
959
+
960
+ // Constructors of GstPlayer-1.0.GstPlayer.PlayerStreamInfo
961
+
962
+ constructor(config?: PlayerStreamInfo.ConstructorProperties)
963
+ _init(config?: PlayerStreamInfo.ConstructorProperties): void
964
+ }
965
+
966
+ export module PlayerSubtitleInfo {
967
+
968
+ // Constructor properties interface
969
+
970
+ export interface ConstructorProperties extends PlayerStreamInfo.ConstructorProperties {
971
+ }
972
+
973
+ }
974
+
975
+ export interface PlayerSubtitleInfo {
976
+
977
+ // Owm methods of GstPlayer-1.0.GstPlayer.PlayerSubtitleInfo
978
+
979
+ get_language(): string | null
980
+
981
+ // Class property signals of GstPlayer-1.0.GstPlayer.PlayerSubtitleInfo
982
+
983
+ connect(sigName: string, callback: (...args: any[]) => void): number
984
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
985
+ emit(sigName: string, ...args: any[]): void
986
+ disconnect(id: number): void
987
+ }
988
+
989
+ /**
990
+ * #GstPlayerStreamInfo specific to subtitle streams.
991
+ * @class
992
+ */
993
+ export class PlayerSubtitleInfo extends PlayerStreamInfo {
994
+
995
+ // Own properties of GstPlayer-1.0.GstPlayer.PlayerSubtitleInfo
996
+
997
+ static name: string
998
+ static $gtype: GObject.GType<PlayerSubtitleInfo>
999
+
1000
+ // Constructors of GstPlayer-1.0.GstPlayer.PlayerSubtitleInfo
1001
+
1002
+ constructor(config?: PlayerSubtitleInfo.ConstructorProperties)
1003
+ _init(config?: PlayerSubtitleInfo.ConstructorProperties): void
1004
+ }
1005
+
1006
+ export module PlayerVideoInfo {
1007
+
1008
+ // Constructor properties interface
1009
+
1010
+ export interface ConstructorProperties extends PlayerStreamInfo.ConstructorProperties {
1011
+ }
1012
+
1013
+ }
1014
+
1015
+ export interface PlayerVideoInfo {
1016
+
1017
+ // Owm methods of GstPlayer-1.0.GstPlayer.PlayerVideoInfo
1018
+
1019
+ get_bitrate(): number
1020
+ get_framerate(): [ /* fps_n */ number, /* fps_d */ number ]
1021
+ get_height(): number
1022
+ get_max_bitrate(): number
1023
+ /**
1024
+ * Returns the pixel aspect ratio in `par_n` and `par_d`
1025
+ */
1026
+ get_pixel_aspect_ratio(): [ /* par_n */ number, /* par_d */ number ]
1027
+ get_width(): number
1028
+
1029
+ // Class property signals of GstPlayer-1.0.GstPlayer.PlayerVideoInfo
1030
+
1031
+ connect(sigName: string, callback: (...args: any[]) => void): number
1032
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1033
+ emit(sigName: string, ...args: any[]): void
1034
+ disconnect(id: number): void
1035
+ }
1036
+
1037
+ /**
1038
+ * #GstPlayerStreamInfo specific to video streams.
1039
+ * @class
1040
+ */
1041
+ export class PlayerVideoInfo extends PlayerStreamInfo {
1042
+
1043
+ // Own properties of GstPlayer-1.0.GstPlayer.PlayerVideoInfo
1044
+
1045
+ static name: string
1046
+ static $gtype: GObject.GType<PlayerVideoInfo>
1047
+
1048
+ // Constructors of GstPlayer-1.0.GstPlayer.PlayerVideoInfo
1049
+
1050
+ constructor(config?: PlayerVideoInfo.ConstructorProperties)
1051
+ _init(config?: PlayerVideoInfo.ConstructorProperties): void
1052
+ }
1053
+
1054
+ export module PlayerVideoOverlayVideoRenderer {
1055
+
1056
+ // Constructor properties interface
1057
+
1058
+ export interface ConstructorProperties extends PlayerVideoRenderer.ConstructorProperties, GObject.Object.ConstructorProperties {
1059
+
1060
+ // Own constructor properties of GstPlayer-1.0.GstPlayer.PlayerVideoOverlayVideoRenderer
1061
+
1062
+ video_sink?: Gst.Element | null
1063
+ window_handle?: any | null
1064
+ }
1065
+
1066
+ }
1067
+
1068
+ export interface PlayerVideoOverlayVideoRenderer extends PlayerVideoRenderer {
1069
+
1070
+ // Own properties of GstPlayer-1.0.GstPlayer.PlayerVideoOverlayVideoRenderer
1071
+
1072
+ video_sink: Gst.Element | null
1073
+ window_handle: any
1074
+
1075
+ // Owm methods of GstPlayer-1.0.GstPlayer.PlayerVideoOverlayVideoRenderer
1076
+
1077
+ /**
1078
+ * Tell an overlay that it has been exposed. This will redraw the current frame
1079
+ * in the drawable even if the pipeline is PAUSED.
1080
+ */
1081
+ expose(): void
1082
+ /**
1083
+ * Return the currently configured render rectangle. See gst_player_video_overlay_video_renderer_set_render_rectangle()
1084
+ * for details.
1085
+ */
1086
+ get_render_rectangle(): [ /* x */ number, /* y */ number, /* width */ number, /* height */ number ]
1087
+ get_window_handle(): any | null
1088
+ /**
1089
+ * Configure a subregion as a video target within the window set by
1090
+ * gst_player_video_overlay_video_renderer_set_window_handle(). If this is not
1091
+ * used or not supported the video will fill the area of the window set as the
1092
+ * overlay to 100%. By specifying the rectangle, the video can be overlaid to
1093
+ * a specific region of that window only. After setting the new rectangle one
1094
+ * should call gst_player_video_overlay_video_renderer_expose() to force a
1095
+ * redraw. To unset the region pass -1 for the `width` and `height` parameters.
1096
+ *
1097
+ * This method is needed for non fullscreen video overlay in UI toolkits that
1098
+ * do not support subwindows.
1099
+ * @param x the horizontal offset of the render area inside the window
1100
+ * @param y the vertical offset of the render area inside the window
1101
+ * @param width the width of the render area inside the window
1102
+ * @param height the height of the render area inside the window
1103
+ */
1104
+ set_render_rectangle(x: number, y: number, width: number, height: number): void
1105
+ /**
1106
+ * Sets the platform specific window handle into which the video
1107
+ * should be rendered
1108
+ * @param window_handle handle referencing to the platform specific window
1109
+ */
1110
+ set_window_handle(window_handle: any | null): void
1111
+
1112
+ // Class property signals of GstPlayer-1.0.GstPlayer.PlayerVideoOverlayVideoRenderer
1113
+
1114
+ connect(sigName: "notify::video-sink", callback: (($obj: PlayerVideoOverlayVideoRenderer, pspec: GObject.ParamSpec) => void)): number
1115
+ connect_after(sigName: "notify::video-sink", callback: (($obj: PlayerVideoOverlayVideoRenderer, pspec: GObject.ParamSpec) => void)): number
1116
+ emit(sigName: "notify::video-sink", ...args: any[]): void
1117
+ connect(sigName: "notify::window-handle", callback: (($obj: PlayerVideoOverlayVideoRenderer, pspec: GObject.ParamSpec) => void)): number
1118
+ connect_after(sigName: "notify::window-handle", callback: (($obj: PlayerVideoOverlayVideoRenderer, pspec: GObject.ParamSpec) => void)): number
1119
+ emit(sigName: "notify::window-handle", ...args: any[]): void
1120
+ connect(sigName: string, callback: (...args: any[]) => void): number
1121
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
1122
+ emit(sigName: string, ...args: any[]): void
1123
+ disconnect(id: number): void
1124
+ }
1125
+
1126
+ export class PlayerVideoOverlayVideoRenderer extends GObject.Object {
1127
+
1128
+ // Own properties of GstPlayer-1.0.GstPlayer.PlayerVideoOverlayVideoRenderer
1129
+
1130
+ static name: string
1131
+ static $gtype: GObject.GType<PlayerVideoOverlayVideoRenderer>
1132
+
1133
+ // Constructors of GstPlayer-1.0.GstPlayer.PlayerVideoOverlayVideoRenderer
1134
+
1135
+ constructor(config?: PlayerVideoOverlayVideoRenderer.ConstructorProperties)
1136
+ _init(config?: PlayerVideoOverlayVideoRenderer.ConstructorProperties): void
1137
+ static new(window_handle: any | null): PlayerVideoRenderer
1138
+ static new_with_sink(window_handle: any | null, video_sink: Gst.Element): PlayerVideoRenderer
1139
+ }
1140
+
1141
+ export interface PlayerAudioInfoClass {
1142
+ }
1143
+
1144
+ export abstract class PlayerAudioInfoClass {
1145
+
1146
+ // Own properties of GstPlayer-1.0.GstPlayer.PlayerAudioInfoClass
1147
+
1148
+ static name: string
1149
+ }
1150
+
1151
+ export interface PlayerClass {
1152
+ }
1153
+
1154
+ export abstract class PlayerClass {
1155
+
1156
+ // Own properties of GstPlayer-1.0.GstPlayer.PlayerClass
1157
+
1158
+ static name: string
1159
+ }
1160
+
1161
+ export interface PlayerGMainContextSignalDispatcherClass {
1162
+ }
1163
+
1164
+ export abstract class PlayerGMainContextSignalDispatcherClass {
1165
+
1166
+ // Own properties of GstPlayer-1.0.GstPlayer.PlayerGMainContextSignalDispatcherClass
1167
+
1168
+ static name: string
1169
+ }
1170
+
1171
+ export interface PlayerMediaInfoClass {
1172
+ }
1173
+
1174
+ export abstract class PlayerMediaInfoClass {
1175
+
1176
+ // Own properties of GstPlayer-1.0.GstPlayer.PlayerMediaInfoClass
1177
+
1178
+ static name: string
1179
+ }
1180
+
1181
+ export interface PlayerSignalDispatcherInterface {
1182
+
1183
+ // Own fields of GstPlayer-1.0.GstPlayer.PlayerSignalDispatcherInterface
1184
+
1185
+ parent_iface: GObject.TypeInterface
1186
+ dispatch: (self: PlayerSignalDispatcher, player: Player, emitter: PlayerSignalDispatcherFunc) => void
1187
+ }
1188
+
1189
+ export abstract class PlayerSignalDispatcherInterface {
1190
+
1191
+ // Own properties of GstPlayer-1.0.GstPlayer.PlayerSignalDispatcherInterface
1192
+
1193
+ static name: string
1194
+ }
1195
+
1196
+ export interface PlayerStreamInfoClass {
1197
+ }
1198
+
1199
+ export abstract class PlayerStreamInfoClass {
1200
+
1201
+ // Own properties of GstPlayer-1.0.GstPlayer.PlayerStreamInfoClass
1202
+
1203
+ static name: string
1204
+ }
1205
+
1206
+ export interface PlayerSubtitleInfoClass {
1207
+ }
1208
+
1209
+ export abstract class PlayerSubtitleInfoClass {
1210
+
1211
+ // Own properties of GstPlayer-1.0.GstPlayer.PlayerSubtitleInfoClass
1212
+
1213
+ static name: string
1214
+ }
1215
+
1216
+ export interface PlayerVideoInfoClass {
1217
+ }
1218
+
1219
+ export abstract class PlayerVideoInfoClass {
1220
+
1221
+ // Own properties of GstPlayer-1.0.GstPlayer.PlayerVideoInfoClass
1222
+
1223
+ static name: string
1224
+ }
1225
+
1226
+ export interface PlayerVideoOverlayVideoRendererClass {
1227
+ }
1228
+
1229
+ export abstract class PlayerVideoOverlayVideoRendererClass {
1230
+
1231
+ // Own properties of GstPlayer-1.0.GstPlayer.PlayerVideoOverlayVideoRendererClass
1232
+
1233
+ static name: string
1234
+ }
1235
+
1236
+ export interface PlayerVideoRendererInterface {
1237
+
1238
+ // Own fields of GstPlayer-1.0.GstPlayer.PlayerVideoRendererInterface
1239
+
1240
+ parent_iface: GObject.TypeInterface
1241
+ }
1242
+
1243
+ export abstract class PlayerVideoRendererInterface {
1244
+
1245
+ // Own properties of GstPlayer-1.0.GstPlayer.PlayerVideoRendererInterface
1246
+
1247
+ static name: string
1248
+ }
1249
+
1250
+ export interface PlayerVisualization {
1251
+
1252
+ // Own fields of GstPlayer-1.0.GstPlayer.PlayerVisualization
1253
+
1254
+ /**
1255
+ * name of the visualization.
1256
+ * @field
1257
+ */
1258
+ name: string | null
1259
+ /**
1260
+ * description of the visualization.
1261
+ * @field
1262
+ */
1263
+ description: string | null
1264
+
1265
+ // Owm methods of GstPlayer-1.0.GstPlayer.PlayerVisualization
1266
+
1267
+ /**
1268
+ * Makes a copy of the #GstPlayerVisualization. The result must be
1269
+ * freed using gst_player_visualization_free().
1270
+ * @returns an allocated copy of @vis.
1271
+ */
1272
+ copy(): PlayerVisualization
1273
+ /**
1274
+ * Frees a #GstPlayerVisualization.
1275
+ */
1276
+ free(): void
1277
+ }
1278
+
1279
+ /**
1280
+ * A #GstPlayerVisualization descriptor.
1281
+ * @record
1282
+ */
1283
+ export class PlayerVisualization {
1284
+
1285
+ // Own properties of GstPlayer-1.0.GstPlayer.PlayerVisualization
1286
+
1287
+ static name: string
1288
+ }
1289
+
1290
+ /**
1291
+ * Name of the imported GIR library
1292
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
1293
+ */
1294
+ export const __name__: string
1295
+ /**
1296
+ * Version of the imported GIR library
1297
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
1298
+ */
1299
+ export const __version__: string
1300
+ // END