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