@girs/farstream-0.2 0.2.0-3.2.6 → 0.2.0-3.2.7

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 CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/farstream-0.2)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Farstream-0.2, generated from library version 0.2.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
8
+ GJS TypeScript type definitions for Farstream-0.2, generated from library version 0.2.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
9
9
 
10
10
 
11
11
  ## Install
@@ -271,7 +271,7 @@ export enum StreamDirection {
271
271
  /**
272
272
  * A format that can be used in printf like format strings to format a FsCodec
273
273
  */
274
- export const CODEC_FORMAT: string | null
274
+ export const CODEC_FORMAT: string
275
275
  /**
276
276
  * If the id of a #FsCodec is #FS_CODEC_ID_ANY, then it will be replaced
277
277
  * with a dynamic payload type at runtime
@@ -286,7 +286,7 @@ export const CODEC_ID_DISABLE: number
286
286
  * A format that can be used in printf like format strings to format a
287
287
  * FsRtpHeaderExtension
288
288
  */
289
- export const RTP_HEADER_EXTENSION_FORMAT: string | null
289
+ export const RTP_HEADER_EXTENSION_FORMAT: string
290
290
  /**
291
291
  * Copies a GList of #FsCandidate and its contents
292
292
  * @param candidate_list A GList of #FsCandidate
@@ -333,14 +333,14 @@ export function codec_list_copy(codec_list: Codec[]): Codec[]
333
333
  * @param filename Name of the #GKeyFile to read the codecs parameters from
334
334
  * @returns The #GList of #FsCodec or %NULL if the keyfile was empty or an error occured.
335
335
  */
336
- export function codec_list_from_keyfile(filename: string | null): Codec[]
336
+ export function codec_list_from_keyfile(filename: string): Codec[]
337
337
  export function error_quark(): GLib.Quark
338
338
  /**
339
339
  * Gives a user-printable string representing the media type
340
340
  * @param media_type A media type
341
341
  * @returns a static string representing the media type
342
342
  */
343
- export function media_type_to_string(media_type: MediaType): string | null
343
+ export function media_type_to_string(media_type: MediaType): string
344
344
  /**
345
345
  * Parses a "farstream-farstream" message and checks if it matches
346
346
  * the `object` parameters.
@@ -348,7 +348,7 @@ export function media_type_to_string(media_type: MediaType): string | null
348
348
  * @param message a #GstMessage to parse
349
349
  * @returns %TRUE if the message matches the object and is valid.
350
350
  */
351
- export function parse_error(object: GObject.Object, message: Gst.Message): [ /* returnType */ boolean, /* error */ Error, /* error_msg */ string | null ]
351
+ export function parse_error(object: GObject.Object, message: Gst.Message): [ /* returnType */ boolean, /* error */ Error, /* error_msg */ string ]
352
352
  /**
353
353
  * Does a deep copy of a #GList of #FsRtpHeaderExtension
354
354
  * @param extensions a #GList of #FsRtpHeaderExtension
@@ -388,7 +388,7 @@ export function rtp_header_extension_list_copy(extensions: RtpHeaderExtension[])
388
388
  * @param media_type The media type for which to get header extensions
389
389
  * @returns a #GList of #FsRtpHeaderExtension that must be freed with fs_rtp_header_extension_list_destroy()
390
390
  */
391
- export function rtp_header_extension_list_from_keyfile(filename: string | null, media_type: MediaType): RtpHeaderExtension[]
391
+ export function rtp_header_extension_list_from_keyfile(filename: string, media_type: MediaType): RtpHeaderExtension[]
392
392
  /**
393
393
  * These default codec preferences should work with the elements that are
394
394
  * available in the main GStreamer element repositories.
@@ -463,7 +463,7 @@ export interface Conference extends Gst.ChildProxy {
463
463
  * You are responsible for freeing it by calling g_value_unset()
464
464
  * @param name name of the property
465
465
  */
466
- get_property(name: string | null): /* value */ any
466
+ get_property(name: string): /* value */ any
467
467
 
468
468
  // Overloads of get_property
469
469
 
@@ -487,7 +487,7 @@ export interface Conference extends Gst.ChildProxy {
487
487
  * @param property_name the name of the property to get
488
488
  * @param value return location for the property value
489
489
  */
490
- get_property(property_name: string | null, value: any): void
490
+ get_property(property_name: string, value: any): void
491
491
  /**
492
492
  * Gets a property of an object.
493
493
  *
@@ -508,7 +508,7 @@ export interface Conference extends Gst.ChildProxy {
508
508
  * @param property_name the name of the property to get
509
509
  * @param value return location for the property value
510
510
  */
511
- get_property(property_name: string | null, value: any): void
511
+ get_property(property_name: string, value: any): void
512
512
  /**
513
513
  * Increases the reference count of `object`.
514
514
  *
@@ -647,7 +647,7 @@ export interface ElementAddedNotifier {
647
647
  * @param filename The name of the keyfile to use
648
648
  * @returns %TRUE if the file was successfully loaded, %FALSE otherwise
649
649
  */
650
- set_properties_from_file(filename: string | null): boolean
650
+ set_properties_from_file(filename: string): boolean
651
651
  /**
652
652
  * Using a #GKeyFile where the groups are the element's type or name
653
653
  * and the key=value are the property and its value, this function
@@ -816,7 +816,7 @@ export class Plugin extends GObject.TypeModule {
816
816
  * @param type_suffix Get list of plugins with this type suffix
817
817
  * @returns a newly allocated NULL terminated array of strings or %NULL if no strings were found. It should be freed with g_strfreev().
818
818
  */
819
- static list_available(type_suffix: string | null): string[]
819
+ static list_available(type_suffix: string): string[]
820
820
  }
821
821
 
822
822
  export module Session {
@@ -1069,14 +1069,14 @@ export interface Session {
1069
1069
  * @param error_no The number of the error of type #FsError
1070
1070
  * @param error_msg Error message
1071
1071
  */
1072
- emit_error(error_no: number, error_msg: string | null): void
1072
+ emit_error(error_no: number, error_msg: string): void
1073
1073
  /**
1074
1074
  * Returns the GType of the stream transmitter, bindings can use it
1075
1075
  * to validate/convert the parameters passed to fs_session_new_stream().
1076
1076
  * @param transmitter The name of the transmitter
1077
1077
  * @returns The #GType of the stream transmitter
1078
1078
  */
1079
- get_stream_transmitter_type(transmitter: string | null): GObject.GType
1079
+ get_stream_transmitter_type(transmitter: string): GObject.GType
1080
1080
  /**
1081
1081
  * Get the list of all available transmitters for this session.
1082
1082
  * @returns a newly-allocagted %NULL terminated array of named of transmitters or %NULL if no transmitter is needed for this type of session. It should be freed with g_strfreev().
@@ -1215,7 +1215,7 @@ export interface Session {
1215
1215
  * @param transmitter The name of the transmitter
1216
1216
  * @returns The #GType of the stream transmitter
1217
1217
  */
1218
- vfunc_get_stream_transmitter_type(transmitter: string | null): GObject.GType
1218
+ vfunc_get_stream_transmitter_type(transmitter: string): GObject.GType
1219
1219
  /**
1220
1220
  * Get the list of all available transmitters for this session.
1221
1221
  * @virtual
@@ -1553,7 +1553,7 @@ export interface Stream {
1553
1553
  * @param error_no The number of the error
1554
1554
  * @param error_msg Error message to be displayed to user
1555
1555
  */
1556
- emit_error(error_no: number, error_msg: string | null): void
1556
+ emit_error(error_no: number, error_msg: string): void
1557
1557
  /**
1558
1558
  * Emits the #FsStream::src-pad-added" signal, it should only be
1559
1559
  * called by subclasses.
@@ -1638,7 +1638,7 @@ export interface Stream {
1638
1638
  * @param stream_transmitter_parameters an array of n_parameters #GParameter struct that will be passed to the newly-create #FsStreamTransmitter
1639
1639
  * @returns %TRUE if the transmitter could be set, %FALSE otherwise
1640
1640
  */
1641
- set_transmitter(transmitter: string | null, stream_transmitter_parameters: GObject.Parameter[] | null): boolean
1641
+ set_transmitter(transmitter: string, stream_transmitter_parameters: GObject.Parameter[] | null): boolean
1642
1642
  /**
1643
1643
  * Set the transmitter to use for this stream. This function will only succeed
1644
1644
  * once.
@@ -1652,7 +1652,7 @@ export interface Stream {
1652
1652
  * @param stream_transmitter_parameters A #GHashTable of string->GValue containing the parameters.
1653
1653
  * @returns %TRUE if the transmitter could be set, %FALSE otherwise
1654
1654
  */
1655
- set_transmitter_ht(transmitter: string | null, stream_transmitter_parameters: GLib.HashTable | null): boolean
1655
+ set_transmitter_ht(transmitter: string, stream_transmitter_parameters: GLib.HashTable | null): boolean
1656
1656
 
1657
1657
  // Own virtual methods of Farstream-0.2.Farstream.Stream
1658
1658
 
@@ -1723,7 +1723,7 @@ export interface Stream {
1723
1723
  * @param stream_transmitter_parameters an array of n_parameters #GParameter struct that will be passed to the newly-create #FsStreamTransmitter
1724
1724
  * @returns %TRUE if the transmitter could be set, %FALSE otherwise
1725
1725
  */
1726
- vfunc_set_transmitter(transmitter: string | null, stream_transmitter_parameters: GObject.Parameter[] | null): boolean
1726
+ vfunc_set_transmitter(transmitter: string, stream_transmitter_parameters: GObject.Parameter[] | null): boolean
1727
1727
 
1728
1728
  // Own signals of Farstream-0.2.Farstream.Stream
1729
1729
 
@@ -1892,7 +1892,7 @@ export interface StreamTransmitter {
1892
1892
  * @param error_no The number of the error
1893
1893
  * @param error_msg Error message (for the programmer)
1894
1894
  */
1895
- emit_error(error_no: number, error_msg: string | null): void
1895
+ emit_error(error_no: number, error_msg: string): void
1896
1896
  /**
1897
1897
  * This function forces data to be sent immediately to the selected remote
1898
1898
  * candidate, by-passing any connectivity checks. There should be at most
@@ -2111,7 +2111,7 @@ export interface Transmitter {
2111
2111
  * @param error_no The number of the error
2112
2112
  * @param error_msg Error message to be displayed to user
2113
2113
  */
2114
- emit_error(error_no: number, error_msg: string | null): void
2114
+ emit_error(error_no: number, error_msg: string): void
2115
2115
  /**
2116
2116
  * This function returns the GObject type for the stream transmitter.
2117
2117
  * This is meant for bindings that need to introspect the type of arguments
@@ -2202,7 +2202,7 @@ export class Transmitter extends GObject.Object {
2202
2202
  * @param tos The Type of Service of the socket, max is 255
2203
2203
  * @returns a newly-created #FsTransmitter of the requested type (or NULL if there is an error)
2204
2204
  */
2205
- constructor(type: string | null, components: number, tos: number)
2205
+ constructor(type: string, components: number, tos: number)
2206
2206
  /**
2207
2207
  * This function creates a new transmitter of the requested type.
2208
2208
  * It will load the appropriate plugin as required.
@@ -2212,7 +2212,7 @@ export class Transmitter extends GObject.Object {
2212
2212
  * @param tos The Type of Service of the socket, max is 255
2213
2213
  * @returns a newly-created #FsTransmitter of the requested type (or NULL if there is an error)
2214
2214
  */
2215
- static new(type: string | null, components: number, tos: number): Transmitter
2215
+ static new(type: string, components: number, tos: number): Transmitter
2216
2216
  _init(config?: Transmitter.ConstructorProperties): void
2217
2217
  /**
2218
2218
  * Get the list of all available transmitters
@@ -2321,7 +2321,7 @@ export class Candidate {
2321
2321
  * @param port the UDP/TCP port
2322
2322
  * @returns a newly-allocated #FsCandidate
2323
2323
  */
2324
- constructor(foundation: string | null, component_id: number, type: CandidateType, proto: NetworkProtocol, ip: string | null, port: number)
2324
+ constructor(foundation: string, component_id: number, type: CandidateType, proto: NetworkProtocol, ip: string | null, port: number)
2325
2325
  /**
2326
2326
  * Allocates a new #FsCandidate, the rest of the fields can be optionally
2327
2327
  * filled manually. See also fs_candidate_new_full()
@@ -2334,7 +2334,7 @@ export class Candidate {
2334
2334
  * @param port the UDP/TCP port
2335
2335
  * @returns a newly-allocated #FsCandidate
2336
2336
  */
2337
- static new(foundation: string | null, component_id: number, type: CandidateType, proto: NetworkProtocol, ip: string | null, port: number): Candidate
2337
+ static new(foundation: string, component_id: number, type: CandidateType, proto: NetworkProtocol, ip: string | null, port: number): Candidate
2338
2338
  /**
2339
2339
  * Allocates a new #FsCandidate, filling all the fields. See also
2340
2340
  * fs_candidate_new()
@@ -2353,7 +2353,7 @@ export class Candidate {
2353
2353
  * @param ttl The TTL used when sending Multicast packet (0 = auto)
2354
2354
  * @returns a newly-allocated #FsCandidate
2355
2355
  */
2356
- static new_full(foundation: string | null, component_id: number, ip: string | null, port: number, base_ip: string | null, base_port: number, proto: NetworkProtocol, priority: number, type: CandidateType, username: string | null, password: string | null, ttl: number): Candidate
2356
+ static new_full(foundation: string, component_id: number, ip: string | null, port: number, base_ip: string | null, base_port: number, proto: NetworkProtocol, priority: number, type: CandidateType, username: string | null, password: string | null, ttl: number): Candidate
2357
2357
  }
2358
2358
 
2359
2359
  export interface Codec {
@@ -2412,13 +2412,13 @@ export interface Codec {
2412
2412
  * @param subtype The subtype of the feedback parameter
2413
2413
  * @param extra_params The extra_params of the feeback parameter
2414
2414
  */
2415
- add_feedback_parameter(type: string | null, subtype: string | null, extra_params: string | null): void
2415
+ add_feedback_parameter(type: string, subtype: string, extra_params: string): void
2416
2416
  /**
2417
2417
  * This function adds an new optional parameter to a #FsCodec
2418
2418
  * @param name The name of the optional parameter
2419
2419
  * @param value The extra_params of the optional parameter
2420
2420
  */
2421
- add_optional_parameter(name: string | null, value: string | null): void
2421
+ add_optional_parameter(name: string, value: string): void
2422
2422
  /**
2423
2423
  * Compare two codecs, it will declare two codecs to be identical even
2424
2424
  * if their optional parameters are in a different order. %NULL encoding names
@@ -2448,7 +2448,7 @@ export interface Codec {
2448
2448
  * @param value The value of the parameter to search for or %NULL for any value
2449
2449
  * @returns the #FsCodecParameter from the #FsCodec or %NULL
2450
2450
  */
2451
- get_optional_parameter(name: string | null, value: string | null): CodecParameter
2451
+ get_optional_parameter(name: string, value: string | null): CodecParameter
2452
2452
  /**
2453
2453
  * Removes an optional parameter from a codec.
2454
2454
  *
@@ -2491,7 +2491,7 @@ export class Codec {
2491
2491
  * @param clock_rate The clock rate this codec encodes at, if applicable
2492
2492
  * @returns A newly allocated #FsCodec
2493
2493
  */
2494
- constructor(id: number, encoding_name: string | null, media_type: MediaType, clock_rate: number)
2494
+ constructor(id: number, encoding_name: string, media_type: MediaType, clock_rate: number)
2495
2495
  /**
2496
2496
  * Allocates and initializes a #FsCodec structure
2497
2497
  * @constructor
@@ -2501,7 +2501,7 @@ export class Codec {
2501
2501
  * @param clock_rate The clock rate this codec encodes at, if applicable
2502
2502
  * @returns A newly allocated #FsCodec
2503
2503
  */
2504
- static new(id: number, encoding_name: string | null, media_type: MediaType, clock_rate: number): Codec
2504
+ static new(id: number, encoding_name: string, media_type: MediaType, clock_rate: number): Codec
2505
2505
  }
2506
2506
 
2507
2507
  export interface CodecParameter {
@@ -2751,7 +2751,7 @@ export class RtpHeaderExtension {
2751
2751
  * @param uri The URI that defines this extension
2752
2752
  * @returns a new #FsRtpHeaderExtension
2753
2753
  */
2754
- constructor(id: number, direction: StreamDirection, uri: string | null)
2754
+ constructor(id: number, direction: StreamDirection, uri: string)
2755
2755
  /**
2756
2756
  * Creates a new #FsRtpHeaderExtension
2757
2757
  * @constructor
@@ -2760,7 +2760,7 @@ export class RtpHeaderExtension {
2760
2760
  * @param uri The URI that defines this extension
2761
2761
  * @returns a new #FsRtpHeaderExtension
2762
2762
  */
2763
- static new(id: number, direction: StreamDirection, uri: string | null): RtpHeaderExtension
2763
+ static new(id: number, direction: StreamDirection, uri: string): RtpHeaderExtension
2764
2764
  }
2765
2765
 
2766
2766
  export interface SessionClass {
@@ -2778,7 +2778,7 @@ export interface SessionClass {
2778
2778
  set_send_codec: (session: Session, send_codec: Codec) => boolean
2779
2779
  set_codec_preferences: (session: Session, codec_preferences: Codec[] | null) => boolean
2780
2780
  list_transmitters: (session: Session) => string[]
2781
- get_stream_transmitter_type: (session: Session, transmitter: string | null) => GObject.GType
2781
+ get_stream_transmitter_type: (session: Session, transmitter: string) => GObject.GType
2782
2782
  codecs_need_resend: (session: Session, old_codecs: Codec[] | null, new_codecs: Codec[] | null) => Codec[]
2783
2783
  set_allowed_caps: (session: Session, sink_caps: Gst.Caps | null, src_caps: Gst.Caps | null) => boolean
2784
2784
  set_encryption_parameters: (session: Session, parameters: Gst.Structure | null) => boolean
@@ -2818,7 +2818,7 @@ export interface StreamClass {
2818
2818
  force_remote_candidates: (stream: Stream, remote_candidates: Candidate[]) => boolean
2819
2819
  set_remote_codecs: (stream: Stream, remote_codecs: Codec[]) => boolean
2820
2820
  add_id: (stream: Stream, id: number) => void
2821
- set_transmitter: (stream: Stream, transmitter: string | null, stream_transmitter_parameters: GObject.Parameter[] | null) => boolean
2821
+ set_transmitter: (stream: Stream, transmitter: string, stream_transmitter_parameters: GObject.Parameter[] | null) => boolean
2822
2822
  set_decryption_parameters: (stream: Stream, parameters: Gst.Structure) => boolean
2823
2823
  }
2824
2824
 
@@ -273,7 +273,7 @@ enum StreamDirection {
273
273
  /**
274
274
  * A format that can be used in printf like format strings to format a FsCodec
275
275
  */
276
- const CODEC_FORMAT: string | null
276
+ const CODEC_FORMAT: string
277
277
  /**
278
278
  * If the id of a #FsCodec is #FS_CODEC_ID_ANY, then it will be replaced
279
279
  * with a dynamic payload type at runtime
@@ -288,7 +288,7 @@ const CODEC_ID_DISABLE: number
288
288
  * A format that can be used in printf like format strings to format a
289
289
  * FsRtpHeaderExtension
290
290
  */
291
- const RTP_HEADER_EXTENSION_FORMAT: string | null
291
+ const RTP_HEADER_EXTENSION_FORMAT: string
292
292
  /**
293
293
  * Copies a GList of #FsCandidate and its contents
294
294
  * @param candidate_list A GList of #FsCandidate
@@ -335,14 +335,14 @@ function codec_list_copy(codec_list: Codec[]): Codec[]
335
335
  * @param filename Name of the #GKeyFile to read the codecs parameters from
336
336
  * @returns The #GList of #FsCodec or %NULL if the keyfile was empty or an error occured.
337
337
  */
338
- function codec_list_from_keyfile(filename: string | null): Codec[]
338
+ function codec_list_from_keyfile(filename: string): Codec[]
339
339
  function error_quark(): GLib.Quark
340
340
  /**
341
341
  * Gives a user-printable string representing the media type
342
342
  * @param media_type A media type
343
343
  * @returns a static string representing the media type
344
344
  */
345
- function media_type_to_string(media_type: MediaType): string | null
345
+ function media_type_to_string(media_type: MediaType): string
346
346
  /**
347
347
  * Parses a "farstream-farstream" message and checks if it matches
348
348
  * the `object` parameters.
@@ -350,7 +350,7 @@ function media_type_to_string(media_type: MediaType): string | null
350
350
  * @param message a #GstMessage to parse
351
351
  * @returns %TRUE if the message matches the object and is valid.
352
352
  */
353
- function parse_error(object: GObject.Object, message: Gst.Message): [ /* returnType */ boolean, /* error */ Error, /* error_msg */ string | null ]
353
+ function parse_error(object: GObject.Object, message: Gst.Message): [ /* returnType */ boolean, /* error */ Error, /* error_msg */ string ]
354
354
  /**
355
355
  * Does a deep copy of a #GList of #FsRtpHeaderExtension
356
356
  * @param extensions a #GList of #FsRtpHeaderExtension
@@ -390,7 +390,7 @@ function rtp_header_extension_list_copy(extensions: RtpHeaderExtension[]): RtpHe
390
390
  * @param media_type The media type for which to get header extensions
391
391
  * @returns a #GList of #FsRtpHeaderExtension that must be freed with fs_rtp_header_extension_list_destroy()
392
392
  */
393
- function rtp_header_extension_list_from_keyfile(filename: string | null, media_type: MediaType): RtpHeaderExtension[]
393
+ function rtp_header_extension_list_from_keyfile(filename: string, media_type: MediaType): RtpHeaderExtension[]
394
394
  /**
395
395
  * These default codec preferences should work with the elements that are
396
396
  * available in the main GStreamer element repositories.
@@ -465,7 +465,7 @@ interface Conference extends Gst.ChildProxy {
465
465
  * You are responsible for freeing it by calling g_value_unset()
466
466
  * @param name name of the property
467
467
  */
468
- get_property(name: string | null): /* value */ any
468
+ get_property(name: string): /* value */ any
469
469
 
470
470
  // Overloads of get_property
471
471
 
@@ -489,7 +489,7 @@ interface Conference extends Gst.ChildProxy {
489
489
  * @param property_name the name of the property to get
490
490
  * @param value return location for the property value
491
491
  */
492
- get_property(property_name: string | null, value: any): void
492
+ get_property(property_name: string, value: any): void
493
493
  /**
494
494
  * Gets a property of an object.
495
495
  *
@@ -510,7 +510,7 @@ interface Conference extends Gst.ChildProxy {
510
510
  * @param property_name the name of the property to get
511
511
  * @param value return location for the property value
512
512
  */
513
- get_property(property_name: string | null, value: any): void
513
+ get_property(property_name: string, value: any): void
514
514
  /**
515
515
  * Increases the reference count of `object`.
516
516
  *
@@ -649,7 +649,7 @@ interface ElementAddedNotifier {
649
649
  * @param filename The name of the keyfile to use
650
650
  * @returns %TRUE if the file was successfully loaded, %FALSE otherwise
651
651
  */
652
- set_properties_from_file(filename: string | null): boolean
652
+ set_properties_from_file(filename: string): boolean
653
653
  /**
654
654
  * Using a #GKeyFile where the groups are the element's type or name
655
655
  * and the key=value are the property and its value, this function
@@ -818,7 +818,7 @@ class Plugin extends GObject.TypeModule {
818
818
  * @param type_suffix Get list of plugins with this type suffix
819
819
  * @returns a newly allocated NULL terminated array of strings or %NULL if no strings were found. It should be freed with g_strfreev().
820
820
  */
821
- static list_available(type_suffix: string | null): string[]
821
+ static list_available(type_suffix: string): string[]
822
822
  }
823
823
 
824
824
  module Session {
@@ -1071,14 +1071,14 @@ interface Session {
1071
1071
  * @param error_no The number of the error of type #FsError
1072
1072
  * @param error_msg Error message
1073
1073
  */
1074
- emit_error(error_no: number, error_msg: string | null): void
1074
+ emit_error(error_no: number, error_msg: string): void
1075
1075
  /**
1076
1076
  * Returns the GType of the stream transmitter, bindings can use it
1077
1077
  * to validate/convert the parameters passed to fs_session_new_stream().
1078
1078
  * @param transmitter The name of the transmitter
1079
1079
  * @returns The #GType of the stream transmitter
1080
1080
  */
1081
- get_stream_transmitter_type(transmitter: string | null): GObject.GType
1081
+ get_stream_transmitter_type(transmitter: string): GObject.GType
1082
1082
  /**
1083
1083
  * Get the list of all available transmitters for this session.
1084
1084
  * @returns a newly-allocagted %NULL terminated array of named of transmitters or %NULL if no transmitter is needed for this type of session. It should be freed with g_strfreev().
@@ -1217,7 +1217,7 @@ interface Session {
1217
1217
  * @param transmitter The name of the transmitter
1218
1218
  * @returns The #GType of the stream transmitter
1219
1219
  */
1220
- vfunc_get_stream_transmitter_type(transmitter: string | null): GObject.GType
1220
+ vfunc_get_stream_transmitter_type(transmitter: string): GObject.GType
1221
1221
  /**
1222
1222
  * Get the list of all available transmitters for this session.
1223
1223
  * @virtual
@@ -1555,7 +1555,7 @@ interface Stream {
1555
1555
  * @param error_no The number of the error
1556
1556
  * @param error_msg Error message to be displayed to user
1557
1557
  */
1558
- emit_error(error_no: number, error_msg: string | null): void
1558
+ emit_error(error_no: number, error_msg: string): void
1559
1559
  /**
1560
1560
  * Emits the #FsStream::src-pad-added" signal, it should only be
1561
1561
  * called by subclasses.
@@ -1640,7 +1640,7 @@ interface Stream {
1640
1640
  * @param stream_transmitter_parameters an array of n_parameters #GParameter struct that will be passed to the newly-create #FsStreamTransmitter
1641
1641
  * @returns %TRUE if the transmitter could be set, %FALSE otherwise
1642
1642
  */
1643
- set_transmitter(transmitter: string | null, stream_transmitter_parameters: GObject.Parameter[] | null): boolean
1643
+ set_transmitter(transmitter: string, stream_transmitter_parameters: GObject.Parameter[] | null): boolean
1644
1644
  /**
1645
1645
  * Set the transmitter to use for this stream. This function will only succeed
1646
1646
  * once.
@@ -1654,7 +1654,7 @@ interface Stream {
1654
1654
  * @param stream_transmitter_parameters A #GHashTable of string->GValue containing the parameters.
1655
1655
  * @returns %TRUE if the transmitter could be set, %FALSE otherwise
1656
1656
  */
1657
- set_transmitter_ht(transmitter: string | null, stream_transmitter_parameters: GLib.HashTable | null): boolean
1657
+ set_transmitter_ht(transmitter: string, stream_transmitter_parameters: GLib.HashTable | null): boolean
1658
1658
 
1659
1659
  // Own virtual methods of Farstream-0.2.Farstream.Stream
1660
1660
 
@@ -1725,7 +1725,7 @@ interface Stream {
1725
1725
  * @param stream_transmitter_parameters an array of n_parameters #GParameter struct that will be passed to the newly-create #FsStreamTransmitter
1726
1726
  * @returns %TRUE if the transmitter could be set, %FALSE otherwise
1727
1727
  */
1728
- vfunc_set_transmitter(transmitter: string | null, stream_transmitter_parameters: GObject.Parameter[] | null): boolean
1728
+ vfunc_set_transmitter(transmitter: string, stream_transmitter_parameters: GObject.Parameter[] | null): boolean
1729
1729
 
1730
1730
  // Own signals of Farstream-0.2.Farstream.Stream
1731
1731
 
@@ -1894,7 +1894,7 @@ interface StreamTransmitter {
1894
1894
  * @param error_no The number of the error
1895
1895
  * @param error_msg Error message (for the programmer)
1896
1896
  */
1897
- emit_error(error_no: number, error_msg: string | null): void
1897
+ emit_error(error_no: number, error_msg: string): void
1898
1898
  /**
1899
1899
  * This function forces data to be sent immediately to the selected remote
1900
1900
  * candidate, by-passing any connectivity checks. There should be at most
@@ -2113,7 +2113,7 @@ interface Transmitter {
2113
2113
  * @param error_no The number of the error
2114
2114
  * @param error_msg Error message to be displayed to user
2115
2115
  */
2116
- emit_error(error_no: number, error_msg: string | null): void
2116
+ emit_error(error_no: number, error_msg: string): void
2117
2117
  /**
2118
2118
  * This function returns the GObject type for the stream transmitter.
2119
2119
  * This is meant for bindings that need to introspect the type of arguments
@@ -2204,7 +2204,7 @@ class Transmitter extends GObject.Object {
2204
2204
  * @param tos The Type of Service of the socket, max is 255
2205
2205
  * @returns a newly-created #FsTransmitter of the requested type (or NULL if there is an error)
2206
2206
  */
2207
- constructor(type: string | null, components: number, tos: number)
2207
+ constructor(type: string, components: number, tos: number)
2208
2208
  /**
2209
2209
  * This function creates a new transmitter of the requested type.
2210
2210
  * It will load the appropriate plugin as required.
@@ -2214,7 +2214,7 @@ class Transmitter extends GObject.Object {
2214
2214
  * @param tos The Type of Service of the socket, max is 255
2215
2215
  * @returns a newly-created #FsTransmitter of the requested type (or NULL if there is an error)
2216
2216
  */
2217
- static new(type: string | null, components: number, tos: number): Transmitter
2217
+ static new(type: string, components: number, tos: number): Transmitter
2218
2218
  _init(config?: Transmitter.ConstructorProperties): void
2219
2219
  /**
2220
2220
  * Get the list of all available transmitters
@@ -2323,7 +2323,7 @@ class Candidate {
2323
2323
  * @param port the UDP/TCP port
2324
2324
  * @returns a newly-allocated #FsCandidate
2325
2325
  */
2326
- constructor(foundation: string | null, component_id: number, type: CandidateType, proto: NetworkProtocol, ip: string | null, port: number)
2326
+ constructor(foundation: string, component_id: number, type: CandidateType, proto: NetworkProtocol, ip: string | null, port: number)
2327
2327
  /**
2328
2328
  * Allocates a new #FsCandidate, the rest of the fields can be optionally
2329
2329
  * filled manually. See also fs_candidate_new_full()
@@ -2336,7 +2336,7 @@ class Candidate {
2336
2336
  * @param port the UDP/TCP port
2337
2337
  * @returns a newly-allocated #FsCandidate
2338
2338
  */
2339
- static new(foundation: string | null, component_id: number, type: CandidateType, proto: NetworkProtocol, ip: string | null, port: number): Candidate
2339
+ static new(foundation: string, component_id: number, type: CandidateType, proto: NetworkProtocol, ip: string | null, port: number): Candidate
2340
2340
  /**
2341
2341
  * Allocates a new #FsCandidate, filling all the fields. See also
2342
2342
  * fs_candidate_new()
@@ -2355,7 +2355,7 @@ class Candidate {
2355
2355
  * @param ttl The TTL used when sending Multicast packet (0 = auto)
2356
2356
  * @returns a newly-allocated #FsCandidate
2357
2357
  */
2358
- static new_full(foundation: string | null, component_id: number, ip: string | null, port: number, base_ip: string | null, base_port: number, proto: NetworkProtocol, priority: number, type: CandidateType, username: string | null, password: string | null, ttl: number): Candidate
2358
+ static new_full(foundation: string, component_id: number, ip: string | null, port: number, base_ip: string | null, base_port: number, proto: NetworkProtocol, priority: number, type: CandidateType, username: string | null, password: string | null, ttl: number): Candidate
2359
2359
  }
2360
2360
 
2361
2361
  interface Codec {
@@ -2414,13 +2414,13 @@ interface Codec {
2414
2414
  * @param subtype The subtype of the feedback parameter
2415
2415
  * @param extra_params The extra_params of the feeback parameter
2416
2416
  */
2417
- add_feedback_parameter(type: string | null, subtype: string | null, extra_params: string | null): void
2417
+ add_feedback_parameter(type: string, subtype: string, extra_params: string): void
2418
2418
  /**
2419
2419
  * This function adds an new optional parameter to a #FsCodec
2420
2420
  * @param name The name of the optional parameter
2421
2421
  * @param value The extra_params of the optional parameter
2422
2422
  */
2423
- add_optional_parameter(name: string | null, value: string | null): void
2423
+ add_optional_parameter(name: string, value: string): void
2424
2424
  /**
2425
2425
  * Compare two codecs, it will declare two codecs to be identical even
2426
2426
  * if their optional parameters are in a different order. %NULL encoding names
@@ -2450,7 +2450,7 @@ interface Codec {
2450
2450
  * @param value The value of the parameter to search for or %NULL for any value
2451
2451
  * @returns the #FsCodecParameter from the #FsCodec or %NULL
2452
2452
  */
2453
- get_optional_parameter(name: string | null, value: string | null): CodecParameter
2453
+ get_optional_parameter(name: string, value: string | null): CodecParameter
2454
2454
  /**
2455
2455
  * Removes an optional parameter from a codec.
2456
2456
  *
@@ -2493,7 +2493,7 @@ class Codec {
2493
2493
  * @param clock_rate The clock rate this codec encodes at, if applicable
2494
2494
  * @returns A newly allocated #FsCodec
2495
2495
  */
2496
- constructor(id: number, encoding_name: string | null, media_type: MediaType, clock_rate: number)
2496
+ constructor(id: number, encoding_name: string, media_type: MediaType, clock_rate: number)
2497
2497
  /**
2498
2498
  * Allocates and initializes a #FsCodec structure
2499
2499
  * @constructor
@@ -2503,7 +2503,7 @@ class Codec {
2503
2503
  * @param clock_rate The clock rate this codec encodes at, if applicable
2504
2504
  * @returns A newly allocated #FsCodec
2505
2505
  */
2506
- static new(id: number, encoding_name: string | null, media_type: MediaType, clock_rate: number): Codec
2506
+ static new(id: number, encoding_name: string, media_type: MediaType, clock_rate: number): Codec
2507
2507
  }
2508
2508
 
2509
2509
  interface CodecParameter {
@@ -2753,7 +2753,7 @@ class RtpHeaderExtension {
2753
2753
  * @param uri The URI that defines this extension
2754
2754
  * @returns a new #FsRtpHeaderExtension
2755
2755
  */
2756
- constructor(id: number, direction: StreamDirection, uri: string | null)
2756
+ constructor(id: number, direction: StreamDirection, uri: string)
2757
2757
  /**
2758
2758
  * Creates a new #FsRtpHeaderExtension
2759
2759
  * @constructor
@@ -2762,7 +2762,7 @@ class RtpHeaderExtension {
2762
2762
  * @param uri The URI that defines this extension
2763
2763
  * @returns a new #FsRtpHeaderExtension
2764
2764
  */
2765
- static new(id: number, direction: StreamDirection, uri: string | null): RtpHeaderExtension
2765
+ static new(id: number, direction: StreamDirection, uri: string): RtpHeaderExtension
2766
2766
  }
2767
2767
 
2768
2768
  interface SessionClass {
@@ -2780,7 +2780,7 @@ interface SessionClass {
2780
2780
  set_send_codec: (session: Session, send_codec: Codec) => boolean
2781
2781
  set_codec_preferences: (session: Session, codec_preferences: Codec[] | null) => boolean
2782
2782
  list_transmitters: (session: Session) => string[]
2783
- get_stream_transmitter_type: (session: Session, transmitter: string | null) => GObject.GType
2783
+ get_stream_transmitter_type: (session: Session, transmitter: string) => GObject.GType
2784
2784
  codecs_need_resend: (session: Session, old_codecs: Codec[] | null, new_codecs: Codec[] | null) => Codec[]
2785
2785
  set_allowed_caps: (session: Session, sink_caps: Gst.Caps | null, src_caps: Gst.Caps | null) => boolean
2786
2786
  set_encryption_parameters: (session: Session, parameters: Gst.Structure | null) => boolean
@@ -2820,7 +2820,7 @@ interface StreamClass {
2820
2820
  force_remote_candidates: (stream: Stream, remote_candidates: Candidate[]) => boolean
2821
2821
  set_remote_codecs: (stream: Stream, remote_codecs: Codec[]) => boolean
2822
2822
  add_id: (stream: Stream, id: number) => void
2823
- set_transmitter: (stream: Stream, transmitter: string | null, stream_transmitter_parameters: GObject.Parameter[] | null) => boolean
2823
+ set_transmitter: (stream: Stream, transmitter: string, stream_transmitter_parameters: GObject.Parameter[] | null) => boolean
2824
2824
  set_decryption_parameters: (stream: Stream, parameters: Gst.Structure) => boolean
2825
2825
  }
2826
2826
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/farstream-0.2",
3
- "version": "0.2.0-3.2.6",
3
+ "version": "0.2.0-3.2.7",
4
4
  "description": "GJS TypeScript type definitions for Farstream-0.2, generated from library version 0.2.0",
5
5
  "type": "module",
6
6
  "module": "farstream-0.2.js",
@@ -25,11 +25,11 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit farstream-0.2.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/gjs": "^3.2.6",
29
- "@girs/glib-2.0": "^2.78.0-3.2.6",
30
- "@girs/gmodule-2.0": "^2.0.0-3.2.6",
31
- "@girs/gobject-2.0": "^2.78.0-3.2.6",
32
- "@girs/gst-1.0": "^1.23.0-3.2.6"
28
+ "@girs/gjs": "^3.2.7",
29
+ "@girs/glib-2.0": "^2.78.0-3.2.7",
30
+ "@girs/gmodule-2.0": "^2.0.0-3.2.7",
31
+ "@girs/gobject-2.0": "^2.78.0-3.2.7",
32
+ "@girs/gst-1.0": "^1.23.0-3.2.7"
33
33
  },
34
34
  "devDependencies": {
35
35
  "typescript": "*"