@girs/farstream-0.2 0.2.0-3.2.6 → 0.2.0-3.2.8
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 +1 -1
- package/farstream-0.2-ambient.js +2 -0
- package/farstream-0.2-import.js +3 -0
- package/farstream-0.2.d.cts +38 -178
- package/farstream-0.2.d.ts +38 -178
- package/package.json +15 -9
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|

|
|
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.
|
|
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.8.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
package/farstream-0.2.d.cts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
819
|
+
static list_available(type_suffix: string): string[]
|
|
820
820
|
}
|
|
821
821
|
|
|
822
822
|
export module Session {
|
|
@@ -851,16 +851,11 @@ export module Session {
|
|
|
851
851
|
* The media-type of the session. This is either Audio, Video or both.
|
|
852
852
|
* This is a constructor parameter that cannot be changed.
|
|
853
853
|
*/
|
|
854
|
-
|
|
854
|
+
mediaType?: MediaType | null
|
|
855
855
|
/**
|
|
856
856
|
* Sets the IP ToS field (and if possible the IPv6 TCLASS field
|
|
857
857
|
*/
|
|
858
858
|
tos?: number | null
|
|
859
|
-
/**
|
|
860
|
-
* The media-type of the session. This is either Audio, Video or both.
|
|
861
|
-
* This is a constructor parameter that cannot be changed.
|
|
862
|
-
*/
|
|
863
|
-
mediaType?: MediaType | null
|
|
864
859
|
}
|
|
865
860
|
|
|
866
861
|
}
|
|
@@ -869,43 +864,18 @@ export interface Session {
|
|
|
869
864
|
|
|
870
865
|
// Own properties of Farstream-0.2.Farstream.Session
|
|
871
866
|
|
|
872
|
-
/**
|
|
873
|
-
* These are the #GstCaps that can be fed into the session,
|
|
874
|
-
* they are used to filter the codecs to only those that can
|
|
875
|
-
* accepted those caps as input.
|
|
876
|
-
*/
|
|
877
|
-
readonly allowed_sink_caps: Gst.Caps
|
|
878
867
|
/**
|
|
879
868
|
* These are the #GstCaps that can be fed into the session,
|
|
880
869
|
* they are used to filter the codecs to only those that can
|
|
881
870
|
* accepted those caps as input.
|
|
882
871
|
*/
|
|
883
872
|
readonly allowedSinkCaps: Gst.Caps
|
|
884
|
-
/**
|
|
885
|
-
* These are the #GstCaps that the session can produce,
|
|
886
|
-
* they are used to filter the codecs to only those that can
|
|
887
|
-
* accepted those caps as output.
|
|
888
|
-
*/
|
|
889
|
-
readonly allowed_src_caps: Gst.Caps
|
|
890
873
|
/**
|
|
891
874
|
* These are the #GstCaps that the session can produce,
|
|
892
875
|
* they are used to filter the codecs to only those that can
|
|
893
876
|
* accepted those caps as output.
|
|
894
877
|
*/
|
|
895
878
|
readonly allowedSrcCaps: Gst.Caps
|
|
896
|
-
/**
|
|
897
|
-
* This is the current preferences list for the local codecs. It is
|
|
898
|
-
* set by the user to specify the codec options and priorities. The user may
|
|
899
|
-
* change its value with fs_session_set_codec_preferences() at any time
|
|
900
|
-
* during a session. It is a #GList of #FsCodec.
|
|
901
|
-
* The user must free this codec list using fs_codec_list_destroy() when done.
|
|
902
|
-
*
|
|
903
|
-
* The payload type may be a valid dynamic PT (96-127), %FS_CODEC_ID_DISABLE
|
|
904
|
-
* or %FS_CODEC_ID_ANY. If the encoding name is "reserve-pt", then the
|
|
905
|
-
* payload type of the codec will be "reserved" and not be used by any
|
|
906
|
-
* dynamically assigned payload type.
|
|
907
|
-
*/
|
|
908
|
-
readonly codec_preferences: Codec[]
|
|
909
879
|
/**
|
|
910
880
|
* This is the current preferences list for the local codecs. It is
|
|
911
881
|
* set by the user to specify the codec options and priorities. The user may
|
|
@@ -939,25 +909,6 @@ export interface Session {
|
|
|
939
909
|
* fs_codec_list_destroy() when done.
|
|
940
910
|
*/
|
|
941
911
|
readonly codecs: Codec[]
|
|
942
|
-
/**
|
|
943
|
-
* This is the same list of codecs as #FsSession:codecs without
|
|
944
|
-
* the configuration information that describes the data sent. It is suitable
|
|
945
|
-
* for configurations where a list of codecs is shared by many senders.
|
|
946
|
-
* If one is using codecs such as Theora, Vorbis or H.264 that require
|
|
947
|
-
* such information to be transmitted, the configuration data should be
|
|
948
|
-
* included in the stream and retransmitted regularly.
|
|
949
|
-
*
|
|
950
|
-
* It may change when the codec preferences are set, when codecs are set
|
|
951
|
-
* on a #FsStream in this session, when a #FsStream is destroyed or
|
|
952
|
-
* asynchronously when new config data is discovered.
|
|
953
|
-
*
|
|
954
|
-
* The "farstream-codecs-changed" message will be emitted whenever the value
|
|
955
|
-
* of this property changes.
|
|
956
|
-
*
|
|
957
|
-
* It is a #GList of #FsCodec. User must free this codec list using
|
|
958
|
-
* fs_codec_list_destroy() when done.
|
|
959
|
-
*/
|
|
960
|
-
readonly codecs_without_config: Codec[]
|
|
961
912
|
/**
|
|
962
913
|
* This is the same list of codecs as #FsSession:codecs without
|
|
963
914
|
* the configuration information that describes the data sent. It is suitable
|
|
@@ -982,15 +933,6 @@ export interface Session {
|
|
|
982
933
|
* construct param and is read-only.
|
|
983
934
|
*/
|
|
984
935
|
readonly conference: Conference
|
|
985
|
-
/**
|
|
986
|
-
* Indicates the currently active send codec. A user can change the active
|
|
987
|
-
* send codec by calling fs_session_set_send_codec(). The send codec could
|
|
988
|
-
* also be automatically changed by Farstream. This property is an
|
|
989
|
-
* #FsCodec. User must free the codec using fs_codec_destroy() when done.
|
|
990
|
-
* The "farstream-send-codec-changed" message is emitted on the bus when
|
|
991
|
-
* the value of this property changes.
|
|
992
|
-
*/
|
|
993
|
-
readonly current_send_codec: Codec
|
|
994
936
|
/**
|
|
995
937
|
* Indicates the currently active send codec. A user can change the active
|
|
996
938
|
* send codec by calling fs_session_set_send_codec(). The send codec could
|
|
@@ -1000,10 +942,6 @@ export interface Session {
|
|
|
1000
942
|
* the value of this property changes.
|
|
1001
943
|
*/
|
|
1002
944
|
readonly currentSendCodec: Codec
|
|
1003
|
-
/**
|
|
1004
|
-
* Retrieves previously set encryption parameters
|
|
1005
|
-
*/
|
|
1006
|
-
readonly encryption_parameters: Gst.Structure
|
|
1007
945
|
/**
|
|
1008
946
|
* Retrieves previously set encryption parameters
|
|
1009
947
|
*/
|
|
@@ -1013,21 +951,11 @@ export interface Session {
|
|
|
1013
951
|
* will be this id
|
|
1014
952
|
*/
|
|
1015
953
|
readonly id: number
|
|
1016
|
-
/**
|
|
1017
|
-
* The media-type of the session. This is either Audio, Video or both.
|
|
1018
|
-
* This is a constructor parameter that cannot be changed.
|
|
1019
|
-
*/
|
|
1020
|
-
readonly media_type: MediaType
|
|
1021
954
|
/**
|
|
1022
955
|
* The media-type of the session. This is either Audio, Video or both.
|
|
1023
956
|
* This is a constructor parameter that cannot be changed.
|
|
1024
957
|
*/
|
|
1025
958
|
readonly mediaType: MediaType
|
|
1026
|
-
/**
|
|
1027
|
-
* The Gstreamer sink pad that must be used to send media data on this
|
|
1028
|
-
* session. User must unref this GstPad when done with it.
|
|
1029
|
-
*/
|
|
1030
|
-
readonly sink_pad: Gst.Pad
|
|
1031
959
|
/**
|
|
1032
960
|
* The Gstreamer sink pad that must be used to send media data on this
|
|
1033
961
|
* session. User must unref this GstPad when done with it.
|
|
@@ -1069,14 +997,14 @@ export interface Session {
|
|
|
1069
997
|
* @param error_no The number of the error of type #FsError
|
|
1070
998
|
* @param error_msg Error message
|
|
1071
999
|
*/
|
|
1072
|
-
emit_error(error_no: number, error_msg: string
|
|
1000
|
+
emit_error(error_no: number, error_msg: string): void
|
|
1073
1001
|
/**
|
|
1074
1002
|
* Returns the GType of the stream transmitter, bindings can use it
|
|
1075
1003
|
* to validate/convert the parameters passed to fs_session_new_stream().
|
|
1076
1004
|
* @param transmitter The name of the transmitter
|
|
1077
1005
|
* @returns The #GType of the stream transmitter
|
|
1078
1006
|
*/
|
|
1079
|
-
get_stream_transmitter_type(transmitter: string
|
|
1007
|
+
get_stream_transmitter_type(transmitter: string): GObject.GType
|
|
1080
1008
|
/**
|
|
1081
1009
|
* Get the list of all available transmitters for this session.
|
|
1082
1010
|
* @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 +1143,7 @@ export interface Session {
|
|
|
1215
1143
|
* @param transmitter The name of the transmitter
|
|
1216
1144
|
* @returns The #GType of the stream transmitter
|
|
1217
1145
|
*/
|
|
1218
|
-
vfunc_get_stream_transmitter_type(transmitter: string
|
|
1146
|
+
vfunc_get_stream_transmitter_type(transmitter: string): GObject.GType
|
|
1219
1147
|
/**
|
|
1220
1148
|
* Get the list of all available transmitters for this session.
|
|
1221
1149
|
* @virtual
|
|
@@ -1431,17 +1359,6 @@ export interface Stream {
|
|
|
1431
1359
|
|
|
1432
1360
|
// Own properties of Farstream-0.2.Farstream.Stream
|
|
1433
1361
|
|
|
1434
|
-
/**
|
|
1435
|
-
* This is the list of codecs that have been received by this stream.
|
|
1436
|
-
* The user must free the list if fs_codec_list_destroy().
|
|
1437
|
-
* The "farstream-recv-codecs-changed" message is send on the #GstBus
|
|
1438
|
-
* when the value of this property changes.
|
|
1439
|
-
* It is normally emitted right after #FsStream::src-pad-added
|
|
1440
|
-
* only if that codec was not previously received in this stream, but it can
|
|
1441
|
-
* also be emitted if the pad already exists, but the source material that
|
|
1442
|
-
* will come to it is different.
|
|
1443
|
-
*/
|
|
1444
|
-
readonly current_recv_codecs: Codec[]
|
|
1445
1362
|
/**
|
|
1446
1363
|
* This is the list of codecs that have been received by this stream.
|
|
1447
1364
|
* The user must free the list if fs_codec_list_destroy().
|
|
@@ -1453,10 +1370,6 @@ export interface Stream {
|
|
|
1453
1370
|
* will come to it is different.
|
|
1454
1371
|
*/
|
|
1455
1372
|
readonly currentRecvCodecs: Codec[]
|
|
1456
|
-
/**
|
|
1457
|
-
* Retrieves previously set decryption parameters
|
|
1458
|
-
*/
|
|
1459
|
-
readonly decryption_parameters: Gst.Structure
|
|
1460
1373
|
/**
|
|
1461
1374
|
* Retrieves previously set decryption parameters
|
|
1462
1375
|
*/
|
|
@@ -1467,14 +1380,6 @@ export interface Stream {
|
|
|
1467
1380
|
* required by setting this property.
|
|
1468
1381
|
*/
|
|
1469
1382
|
direction: StreamDirection
|
|
1470
|
-
/**
|
|
1471
|
-
* This is the list of negotiatied codecs, it is the same list as the list
|
|
1472
|
-
* of #FsCodec from the parent #FsSession, except that the codec config data
|
|
1473
|
-
* has been replaced with the data from the remote codecs for this stream.
|
|
1474
|
-
* This is the list of #FsCodec used to receive data from this stream.
|
|
1475
|
-
* It is a #GList of #FsCodec.
|
|
1476
|
-
*/
|
|
1477
|
-
readonly negotiated_codecs: Codec[]
|
|
1478
1383
|
/**
|
|
1479
1384
|
* This is the list of negotiatied codecs, it is the same list as the list
|
|
1480
1385
|
* of #FsCodec from the parent #FsSession, except that the codec config data
|
|
@@ -1488,12 +1393,6 @@ export interface Stream {
|
|
|
1488
1393
|
* is read-only construction.
|
|
1489
1394
|
*/
|
|
1490
1395
|
readonly participant: Participant
|
|
1491
|
-
/**
|
|
1492
|
-
* This is the list of remote codecs for this stream. They must be set by the
|
|
1493
|
-
* user as soon as they are known using fs_stream_set_remote_codecs()
|
|
1494
|
-
* (generally through external signaling). It is a #GList of #FsCodec.
|
|
1495
|
-
*/
|
|
1496
|
-
readonly remote_codecs: Codec[]
|
|
1497
1396
|
/**
|
|
1498
1397
|
* This is the list of remote codecs for this stream. They must be set by the
|
|
1499
1398
|
* user as soon as they are known using fs_stream_set_remote_codecs()
|
|
@@ -1553,7 +1452,7 @@ export interface Stream {
|
|
|
1553
1452
|
* @param error_no The number of the error
|
|
1554
1453
|
* @param error_msg Error message to be displayed to user
|
|
1555
1454
|
*/
|
|
1556
|
-
emit_error(error_no: number, error_msg: string
|
|
1455
|
+
emit_error(error_no: number, error_msg: string): void
|
|
1557
1456
|
/**
|
|
1558
1457
|
* Emits the #FsStream::src-pad-added" signal, it should only be
|
|
1559
1458
|
* called by subclasses.
|
|
@@ -1638,7 +1537,7 @@ export interface Stream {
|
|
|
1638
1537
|
* @param stream_transmitter_parameters an array of n_parameters #GParameter struct that will be passed to the newly-create #FsStreamTransmitter
|
|
1639
1538
|
* @returns %TRUE if the transmitter could be set, %FALSE otherwise
|
|
1640
1539
|
*/
|
|
1641
|
-
set_transmitter(transmitter: string
|
|
1540
|
+
set_transmitter(transmitter: string, stream_transmitter_parameters: GObject.Parameter[] | null): boolean
|
|
1642
1541
|
/**
|
|
1643
1542
|
* Set the transmitter to use for this stream. This function will only succeed
|
|
1644
1543
|
* once.
|
|
@@ -1652,7 +1551,7 @@ export interface Stream {
|
|
|
1652
1551
|
* @param stream_transmitter_parameters A #GHashTable of string->GValue containing the parameters.
|
|
1653
1552
|
* @returns %TRUE if the transmitter could be set, %FALSE otherwise
|
|
1654
1553
|
*/
|
|
1655
|
-
set_transmitter_ht(transmitter: string
|
|
1554
|
+
set_transmitter_ht(transmitter: string, stream_transmitter_parameters: GLib.HashTable | null): boolean
|
|
1656
1555
|
|
|
1657
1556
|
// Own virtual methods of Farstream-0.2.Farstream.Stream
|
|
1658
1557
|
|
|
@@ -1723,7 +1622,7 @@ export interface Stream {
|
|
|
1723
1622
|
* @param stream_transmitter_parameters an array of n_parameters #GParameter struct that will be passed to the newly-create #FsStreamTransmitter
|
|
1724
1623
|
* @returns %TRUE if the transmitter could be set, %FALSE otherwise
|
|
1725
1624
|
*/
|
|
1726
|
-
vfunc_set_transmitter(transmitter: string
|
|
1625
|
+
vfunc_set_transmitter(transmitter: string, stream_transmitter_parameters: GObject.Parameter[] | null): boolean
|
|
1727
1626
|
|
|
1728
1627
|
// Own signals of Farstream-0.2.Farstream.Stream
|
|
1729
1628
|
|
|
@@ -1837,18 +1736,12 @@ export module StreamTransmitter {
|
|
|
1837
1736
|
* This tells the stream transmitter to associate incoming data with this
|
|
1838
1737
|
* based on the source without looking at the content if possible.
|
|
1839
1738
|
*/
|
|
1840
|
-
|
|
1841
|
-
|
|
1739
|
+
associateOnSource?: boolean | null
|
|
1740
|
+
preferredLocalCandidates?: any | null
|
|
1842
1741
|
/**
|
|
1843
1742
|
* A network source #GstElement to be used by the #FsSession
|
|
1844
1743
|
*/
|
|
1845
1744
|
sending?: boolean | null
|
|
1846
|
-
/**
|
|
1847
|
-
* This tells the stream transmitter to associate incoming data with this
|
|
1848
|
-
* based on the source without looking at the content if possible.
|
|
1849
|
-
*/
|
|
1850
|
-
associateOnSource?: boolean | null
|
|
1851
|
-
preferredLocalCandidates?: any | null
|
|
1852
1745
|
}
|
|
1853
1746
|
|
|
1854
1747
|
}
|
|
@@ -1857,17 +1750,11 @@ export interface StreamTransmitter {
|
|
|
1857
1750
|
|
|
1858
1751
|
// Own properties of Farstream-0.2.Farstream.StreamTransmitter
|
|
1859
1752
|
|
|
1860
|
-
/**
|
|
1861
|
-
* This tells the stream transmitter to associate incoming data with this
|
|
1862
|
-
* based on the source without looking at the content if possible.
|
|
1863
|
-
*/
|
|
1864
|
-
readonly associate_on_source: boolean
|
|
1865
1753
|
/**
|
|
1866
1754
|
* This tells the stream transmitter to associate incoming data with this
|
|
1867
1755
|
* based on the source without looking at the content if possible.
|
|
1868
1756
|
*/
|
|
1869
1757
|
readonly associateOnSource: boolean
|
|
1870
|
-
readonly preferred_local_candidates: any
|
|
1871
1758
|
readonly preferredLocalCandidates: any
|
|
1872
1759
|
/**
|
|
1873
1760
|
* A network source #GstElement to be used by the #FsSession
|
|
@@ -1892,7 +1779,7 @@ export interface StreamTransmitter {
|
|
|
1892
1779
|
* @param error_no The number of the error
|
|
1893
1780
|
* @param error_msg Error message (for the programmer)
|
|
1894
1781
|
*/
|
|
1895
|
-
emit_error(error_no: number, error_msg: string
|
|
1782
|
+
emit_error(error_no: number, error_msg: string): void
|
|
1896
1783
|
/**
|
|
1897
1784
|
* This function forces data to be sent immediately to the selected remote
|
|
1898
1785
|
* candidate, by-passing any connectivity checks. There should be at most
|
|
@@ -2028,16 +1915,11 @@ export module Transmitter {
|
|
|
2028
1915
|
* Apply current stream time to buffers or provide buffers without
|
|
2029
1916
|
* timestamps. Must be set before creating a stream transmitter.
|
|
2030
1917
|
*/
|
|
2031
|
-
|
|
1918
|
+
doTimestamp?: boolean | null
|
|
2032
1919
|
/**
|
|
2033
1920
|
* Sets the IP ToS field (and if possible the IPv6 TCLASS field
|
|
2034
1921
|
*/
|
|
2035
1922
|
tos?: number | null
|
|
2036
|
-
/**
|
|
2037
|
-
* Apply current stream time to buffers or provide buffers without
|
|
2038
|
-
* timestamps. Must be set before creating a stream transmitter.
|
|
2039
|
-
*/
|
|
2040
|
-
doTimestamp?: boolean | null
|
|
2041
1923
|
}
|
|
2042
1924
|
|
|
2043
1925
|
}
|
|
@@ -2050,25 +1932,11 @@ export interface Transmitter {
|
|
|
2050
1932
|
* The number of components to create
|
|
2051
1933
|
*/
|
|
2052
1934
|
readonly components: number
|
|
2053
|
-
/**
|
|
2054
|
-
* Apply current stream time to buffers or provide buffers without
|
|
2055
|
-
* timestamps. Must be set before creating a stream transmitter.
|
|
2056
|
-
*/
|
|
2057
|
-
do_timestamp: boolean
|
|
2058
1935
|
/**
|
|
2059
1936
|
* Apply current stream time to buffers or provide buffers without
|
|
2060
1937
|
* timestamps. Must be set before creating a stream transmitter.
|
|
2061
1938
|
*/
|
|
2062
1939
|
doTimestamp: boolean
|
|
2063
|
-
/**
|
|
2064
|
-
* A network source #GstElement to be used by the #FsSession
|
|
2065
|
-
* These element's sink must have async=FALSE
|
|
2066
|
-
* This element MUST provide a pad named "sink_\%u" per component.
|
|
2067
|
-
* These pads number must start at 1 (the \%u corresponds to the component
|
|
2068
|
-
* number).
|
|
2069
|
-
* These pads MUST be static pads.
|
|
2070
|
-
*/
|
|
2071
|
-
readonly gst_sink: Gst.Element
|
|
2072
1940
|
/**
|
|
2073
1941
|
* A network source #GstElement to be used by the #FsSession
|
|
2074
1942
|
* These element's sink must have async=FALSE
|
|
@@ -2078,14 +1946,6 @@ export interface Transmitter {
|
|
|
2078
1946
|
* These pads MUST be static pads.
|
|
2079
1947
|
*/
|
|
2080
1948
|
readonly gstSink: Gst.Element
|
|
2081
|
-
/**
|
|
2082
|
-
* A network source #GstElement to be used by the #FsSession
|
|
2083
|
-
* This element MUST provide a source pad named "src_%u" per component.
|
|
2084
|
-
* These pads number must start at 1 (the %u corresponds to the component
|
|
2085
|
-
* number).
|
|
2086
|
-
* These pads MUST be static pads.
|
|
2087
|
-
*/
|
|
2088
|
-
readonly gst_src: Gst.Element
|
|
2089
1949
|
/**
|
|
2090
1950
|
* A network source #GstElement to be used by the #FsSession
|
|
2091
1951
|
* This element MUST provide a source pad named "src_%u" per component.
|
|
@@ -2111,7 +1971,7 @@ export interface Transmitter {
|
|
|
2111
1971
|
* @param error_no The number of the error
|
|
2112
1972
|
* @param error_msg Error message to be displayed to user
|
|
2113
1973
|
*/
|
|
2114
|
-
emit_error(error_no: number, error_msg: string
|
|
1974
|
+
emit_error(error_no: number, error_msg: string): void
|
|
2115
1975
|
/**
|
|
2116
1976
|
* This function returns the GObject type for the stream transmitter.
|
|
2117
1977
|
* This is meant for bindings that need to introspect the type of arguments
|
|
@@ -2202,7 +2062,7 @@ export class Transmitter extends GObject.Object {
|
|
|
2202
2062
|
* @param tos The Type of Service of the socket, max is 255
|
|
2203
2063
|
* @returns a newly-created #FsTransmitter of the requested type (or NULL if there is an error)
|
|
2204
2064
|
*/
|
|
2205
|
-
constructor(type: string
|
|
2065
|
+
constructor(type: string, components: number, tos: number)
|
|
2206
2066
|
/**
|
|
2207
2067
|
* This function creates a new transmitter of the requested type.
|
|
2208
2068
|
* It will load the appropriate plugin as required.
|
|
@@ -2212,7 +2072,7 @@ export class Transmitter extends GObject.Object {
|
|
|
2212
2072
|
* @param tos The Type of Service of the socket, max is 255
|
|
2213
2073
|
* @returns a newly-created #FsTransmitter of the requested type (or NULL if there is an error)
|
|
2214
2074
|
*/
|
|
2215
|
-
static new(type: string
|
|
2075
|
+
static new(type: string, components: number, tos: number): Transmitter
|
|
2216
2076
|
_init(config?: Transmitter.ConstructorProperties): void
|
|
2217
2077
|
/**
|
|
2218
2078
|
* Get the list of all available transmitters
|
|
@@ -2321,7 +2181,7 @@ export class Candidate {
|
|
|
2321
2181
|
* @param port the UDP/TCP port
|
|
2322
2182
|
* @returns a newly-allocated #FsCandidate
|
|
2323
2183
|
*/
|
|
2324
|
-
constructor(foundation: string
|
|
2184
|
+
constructor(foundation: string, component_id: number, type: CandidateType, proto: NetworkProtocol, ip: string | null, port: number)
|
|
2325
2185
|
/**
|
|
2326
2186
|
* Allocates a new #FsCandidate, the rest of the fields can be optionally
|
|
2327
2187
|
* filled manually. See also fs_candidate_new_full()
|
|
@@ -2334,7 +2194,7 @@ export class Candidate {
|
|
|
2334
2194
|
* @param port the UDP/TCP port
|
|
2335
2195
|
* @returns a newly-allocated #FsCandidate
|
|
2336
2196
|
*/
|
|
2337
|
-
static new(foundation: string
|
|
2197
|
+
static new(foundation: string, component_id: number, type: CandidateType, proto: NetworkProtocol, ip: string | null, port: number): Candidate
|
|
2338
2198
|
/**
|
|
2339
2199
|
* Allocates a new #FsCandidate, filling all the fields. See also
|
|
2340
2200
|
* fs_candidate_new()
|
|
@@ -2353,7 +2213,7 @@ export class Candidate {
|
|
|
2353
2213
|
* @param ttl The TTL used when sending Multicast packet (0 = auto)
|
|
2354
2214
|
* @returns a newly-allocated #FsCandidate
|
|
2355
2215
|
*/
|
|
2356
|
-
static new_full(foundation: string
|
|
2216
|
+
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
2217
|
}
|
|
2358
2218
|
|
|
2359
2219
|
export interface Codec {
|
|
@@ -2412,13 +2272,13 @@ export interface Codec {
|
|
|
2412
2272
|
* @param subtype The subtype of the feedback parameter
|
|
2413
2273
|
* @param extra_params The extra_params of the feeback parameter
|
|
2414
2274
|
*/
|
|
2415
|
-
add_feedback_parameter(type: string
|
|
2275
|
+
add_feedback_parameter(type: string, subtype: string, extra_params: string): void
|
|
2416
2276
|
/**
|
|
2417
2277
|
* This function adds an new optional parameter to a #FsCodec
|
|
2418
2278
|
* @param name The name of the optional parameter
|
|
2419
2279
|
* @param value The extra_params of the optional parameter
|
|
2420
2280
|
*/
|
|
2421
|
-
add_optional_parameter(name: string
|
|
2281
|
+
add_optional_parameter(name: string, value: string): void
|
|
2422
2282
|
/**
|
|
2423
2283
|
* Compare two codecs, it will declare two codecs to be identical even
|
|
2424
2284
|
* if their optional parameters are in a different order. %NULL encoding names
|
|
@@ -2448,7 +2308,7 @@ export interface Codec {
|
|
|
2448
2308
|
* @param value The value of the parameter to search for or %NULL for any value
|
|
2449
2309
|
* @returns the #FsCodecParameter from the #FsCodec or %NULL
|
|
2450
2310
|
*/
|
|
2451
|
-
get_optional_parameter(name: string
|
|
2311
|
+
get_optional_parameter(name: string, value: string | null): CodecParameter
|
|
2452
2312
|
/**
|
|
2453
2313
|
* Removes an optional parameter from a codec.
|
|
2454
2314
|
*
|
|
@@ -2491,7 +2351,7 @@ export class Codec {
|
|
|
2491
2351
|
* @param clock_rate The clock rate this codec encodes at, if applicable
|
|
2492
2352
|
* @returns A newly allocated #FsCodec
|
|
2493
2353
|
*/
|
|
2494
|
-
constructor(id: number, encoding_name: string
|
|
2354
|
+
constructor(id: number, encoding_name: string, media_type: MediaType, clock_rate: number)
|
|
2495
2355
|
/**
|
|
2496
2356
|
* Allocates and initializes a #FsCodec structure
|
|
2497
2357
|
* @constructor
|
|
@@ -2501,7 +2361,7 @@ export class Codec {
|
|
|
2501
2361
|
* @param clock_rate The clock rate this codec encodes at, if applicable
|
|
2502
2362
|
* @returns A newly allocated #FsCodec
|
|
2503
2363
|
*/
|
|
2504
|
-
static new(id: number, encoding_name: string
|
|
2364
|
+
static new(id: number, encoding_name: string, media_type: MediaType, clock_rate: number): Codec
|
|
2505
2365
|
}
|
|
2506
2366
|
|
|
2507
2367
|
export interface CodecParameter {
|
|
@@ -2751,7 +2611,7 @@ export class RtpHeaderExtension {
|
|
|
2751
2611
|
* @param uri The URI that defines this extension
|
|
2752
2612
|
* @returns a new #FsRtpHeaderExtension
|
|
2753
2613
|
*/
|
|
2754
|
-
constructor(id: number, direction: StreamDirection, uri: string
|
|
2614
|
+
constructor(id: number, direction: StreamDirection, uri: string)
|
|
2755
2615
|
/**
|
|
2756
2616
|
* Creates a new #FsRtpHeaderExtension
|
|
2757
2617
|
* @constructor
|
|
@@ -2760,7 +2620,7 @@ export class RtpHeaderExtension {
|
|
|
2760
2620
|
* @param uri The URI that defines this extension
|
|
2761
2621
|
* @returns a new #FsRtpHeaderExtension
|
|
2762
2622
|
*/
|
|
2763
|
-
static new(id: number, direction: StreamDirection, uri: string
|
|
2623
|
+
static new(id: number, direction: StreamDirection, uri: string): RtpHeaderExtension
|
|
2764
2624
|
}
|
|
2765
2625
|
|
|
2766
2626
|
export interface SessionClass {
|
|
@@ -2778,7 +2638,7 @@ export interface SessionClass {
|
|
|
2778
2638
|
set_send_codec: (session: Session, send_codec: Codec) => boolean
|
|
2779
2639
|
set_codec_preferences: (session: Session, codec_preferences: Codec[] | null) => boolean
|
|
2780
2640
|
list_transmitters: (session: Session) => string[]
|
|
2781
|
-
get_stream_transmitter_type: (session: Session, transmitter: string
|
|
2641
|
+
get_stream_transmitter_type: (session: Session, transmitter: string) => GObject.GType
|
|
2782
2642
|
codecs_need_resend: (session: Session, old_codecs: Codec[] | null, new_codecs: Codec[] | null) => Codec[]
|
|
2783
2643
|
set_allowed_caps: (session: Session, sink_caps: Gst.Caps | null, src_caps: Gst.Caps | null) => boolean
|
|
2784
2644
|
set_encryption_parameters: (session: Session, parameters: Gst.Structure | null) => boolean
|
|
@@ -2818,7 +2678,7 @@ export interface StreamClass {
|
|
|
2818
2678
|
force_remote_candidates: (stream: Stream, remote_candidates: Candidate[]) => boolean
|
|
2819
2679
|
set_remote_codecs: (stream: Stream, remote_codecs: Codec[]) => boolean
|
|
2820
2680
|
add_id: (stream: Stream, id: number) => void
|
|
2821
|
-
set_transmitter: (stream: Stream, transmitter: string
|
|
2681
|
+
set_transmitter: (stream: Stream, transmitter: string, stream_transmitter_parameters: GObject.Parameter[] | null) => boolean
|
|
2822
2682
|
set_decryption_parameters: (stream: Stream, parameters: Gst.Structure) => boolean
|
|
2823
2683
|
}
|
|
2824
2684
|
|
package/farstream-0.2.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
821
|
+
static list_available(type_suffix: string): string[]
|
|
822
822
|
}
|
|
823
823
|
|
|
824
824
|
module Session {
|
|
@@ -853,16 +853,11 @@ module Session {
|
|
|
853
853
|
* The media-type of the session. This is either Audio, Video or both.
|
|
854
854
|
* This is a constructor parameter that cannot be changed.
|
|
855
855
|
*/
|
|
856
|
-
|
|
856
|
+
mediaType?: MediaType | null
|
|
857
857
|
/**
|
|
858
858
|
* Sets the IP ToS field (and if possible the IPv6 TCLASS field
|
|
859
859
|
*/
|
|
860
860
|
tos?: number | null
|
|
861
|
-
/**
|
|
862
|
-
* The media-type of the session. This is either Audio, Video or both.
|
|
863
|
-
* This is a constructor parameter that cannot be changed.
|
|
864
|
-
*/
|
|
865
|
-
mediaType?: MediaType | null
|
|
866
861
|
}
|
|
867
862
|
|
|
868
863
|
}
|
|
@@ -871,43 +866,18 @@ interface Session {
|
|
|
871
866
|
|
|
872
867
|
// Own properties of Farstream-0.2.Farstream.Session
|
|
873
868
|
|
|
874
|
-
/**
|
|
875
|
-
* These are the #GstCaps that can be fed into the session,
|
|
876
|
-
* they are used to filter the codecs to only those that can
|
|
877
|
-
* accepted those caps as input.
|
|
878
|
-
*/
|
|
879
|
-
readonly allowed_sink_caps: Gst.Caps
|
|
880
869
|
/**
|
|
881
870
|
* These are the #GstCaps that can be fed into the session,
|
|
882
871
|
* they are used to filter the codecs to only those that can
|
|
883
872
|
* accepted those caps as input.
|
|
884
873
|
*/
|
|
885
874
|
readonly allowedSinkCaps: Gst.Caps
|
|
886
|
-
/**
|
|
887
|
-
* These are the #GstCaps that the session can produce,
|
|
888
|
-
* they are used to filter the codecs to only those that can
|
|
889
|
-
* accepted those caps as output.
|
|
890
|
-
*/
|
|
891
|
-
readonly allowed_src_caps: Gst.Caps
|
|
892
875
|
/**
|
|
893
876
|
* These are the #GstCaps that the session can produce,
|
|
894
877
|
* they are used to filter the codecs to only those that can
|
|
895
878
|
* accepted those caps as output.
|
|
896
879
|
*/
|
|
897
880
|
readonly allowedSrcCaps: Gst.Caps
|
|
898
|
-
/**
|
|
899
|
-
* This is the current preferences list for the local codecs. It is
|
|
900
|
-
* set by the user to specify the codec options and priorities. The user may
|
|
901
|
-
* change its value with fs_session_set_codec_preferences() at any time
|
|
902
|
-
* during a session. It is a #GList of #FsCodec.
|
|
903
|
-
* The user must free this codec list using fs_codec_list_destroy() when done.
|
|
904
|
-
*
|
|
905
|
-
* The payload type may be a valid dynamic PT (96-127), %FS_CODEC_ID_DISABLE
|
|
906
|
-
* or %FS_CODEC_ID_ANY. If the encoding name is "reserve-pt", then the
|
|
907
|
-
* payload type of the codec will be "reserved" and not be used by any
|
|
908
|
-
* dynamically assigned payload type.
|
|
909
|
-
*/
|
|
910
|
-
readonly codec_preferences: Codec[]
|
|
911
881
|
/**
|
|
912
882
|
* This is the current preferences list for the local codecs. It is
|
|
913
883
|
* set by the user to specify the codec options and priorities. The user may
|
|
@@ -941,25 +911,6 @@ interface Session {
|
|
|
941
911
|
* fs_codec_list_destroy() when done.
|
|
942
912
|
*/
|
|
943
913
|
readonly codecs: Codec[]
|
|
944
|
-
/**
|
|
945
|
-
* This is the same list of codecs as #FsSession:codecs without
|
|
946
|
-
* the configuration information that describes the data sent. It is suitable
|
|
947
|
-
* for configurations where a list of codecs is shared by many senders.
|
|
948
|
-
* If one is using codecs such as Theora, Vorbis or H.264 that require
|
|
949
|
-
* such information to be transmitted, the configuration data should be
|
|
950
|
-
* included in the stream and retransmitted regularly.
|
|
951
|
-
*
|
|
952
|
-
* It may change when the codec preferences are set, when codecs are set
|
|
953
|
-
* on a #FsStream in this session, when a #FsStream is destroyed or
|
|
954
|
-
* asynchronously when new config data is discovered.
|
|
955
|
-
*
|
|
956
|
-
* The "farstream-codecs-changed" message will be emitted whenever the value
|
|
957
|
-
* of this property changes.
|
|
958
|
-
*
|
|
959
|
-
* It is a #GList of #FsCodec. User must free this codec list using
|
|
960
|
-
* fs_codec_list_destroy() when done.
|
|
961
|
-
*/
|
|
962
|
-
readonly codecs_without_config: Codec[]
|
|
963
914
|
/**
|
|
964
915
|
* This is the same list of codecs as #FsSession:codecs without
|
|
965
916
|
* the configuration information that describes the data sent. It is suitable
|
|
@@ -984,15 +935,6 @@ interface Session {
|
|
|
984
935
|
* construct param and is read-only.
|
|
985
936
|
*/
|
|
986
937
|
readonly conference: Conference
|
|
987
|
-
/**
|
|
988
|
-
* Indicates the currently active send codec. A user can change the active
|
|
989
|
-
* send codec by calling fs_session_set_send_codec(). The send codec could
|
|
990
|
-
* also be automatically changed by Farstream. This property is an
|
|
991
|
-
* #FsCodec. User must free the codec using fs_codec_destroy() when done.
|
|
992
|
-
* The "farstream-send-codec-changed" message is emitted on the bus when
|
|
993
|
-
* the value of this property changes.
|
|
994
|
-
*/
|
|
995
|
-
readonly current_send_codec: Codec
|
|
996
938
|
/**
|
|
997
939
|
* Indicates the currently active send codec. A user can change the active
|
|
998
940
|
* send codec by calling fs_session_set_send_codec(). The send codec could
|
|
@@ -1002,10 +944,6 @@ interface Session {
|
|
|
1002
944
|
* the value of this property changes.
|
|
1003
945
|
*/
|
|
1004
946
|
readonly currentSendCodec: Codec
|
|
1005
|
-
/**
|
|
1006
|
-
* Retrieves previously set encryption parameters
|
|
1007
|
-
*/
|
|
1008
|
-
readonly encryption_parameters: Gst.Structure
|
|
1009
947
|
/**
|
|
1010
948
|
* Retrieves previously set encryption parameters
|
|
1011
949
|
*/
|
|
@@ -1015,21 +953,11 @@ interface Session {
|
|
|
1015
953
|
* will be this id
|
|
1016
954
|
*/
|
|
1017
955
|
readonly id: number
|
|
1018
|
-
/**
|
|
1019
|
-
* The media-type of the session. This is either Audio, Video or both.
|
|
1020
|
-
* This is a constructor parameter that cannot be changed.
|
|
1021
|
-
*/
|
|
1022
|
-
readonly media_type: MediaType
|
|
1023
956
|
/**
|
|
1024
957
|
* The media-type of the session. This is either Audio, Video or both.
|
|
1025
958
|
* This is a constructor parameter that cannot be changed.
|
|
1026
959
|
*/
|
|
1027
960
|
readonly mediaType: MediaType
|
|
1028
|
-
/**
|
|
1029
|
-
* The Gstreamer sink pad that must be used to send media data on this
|
|
1030
|
-
* session. User must unref this GstPad when done with it.
|
|
1031
|
-
*/
|
|
1032
|
-
readonly sink_pad: Gst.Pad
|
|
1033
961
|
/**
|
|
1034
962
|
* The Gstreamer sink pad that must be used to send media data on this
|
|
1035
963
|
* session. User must unref this GstPad when done with it.
|
|
@@ -1071,14 +999,14 @@ interface Session {
|
|
|
1071
999
|
* @param error_no The number of the error of type #FsError
|
|
1072
1000
|
* @param error_msg Error message
|
|
1073
1001
|
*/
|
|
1074
|
-
emit_error(error_no: number, error_msg: string
|
|
1002
|
+
emit_error(error_no: number, error_msg: string): void
|
|
1075
1003
|
/**
|
|
1076
1004
|
* Returns the GType of the stream transmitter, bindings can use it
|
|
1077
1005
|
* to validate/convert the parameters passed to fs_session_new_stream().
|
|
1078
1006
|
* @param transmitter The name of the transmitter
|
|
1079
1007
|
* @returns The #GType of the stream transmitter
|
|
1080
1008
|
*/
|
|
1081
|
-
get_stream_transmitter_type(transmitter: string
|
|
1009
|
+
get_stream_transmitter_type(transmitter: string): GObject.GType
|
|
1082
1010
|
/**
|
|
1083
1011
|
* Get the list of all available transmitters for this session.
|
|
1084
1012
|
* @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 +1145,7 @@ interface Session {
|
|
|
1217
1145
|
* @param transmitter The name of the transmitter
|
|
1218
1146
|
* @returns The #GType of the stream transmitter
|
|
1219
1147
|
*/
|
|
1220
|
-
vfunc_get_stream_transmitter_type(transmitter: string
|
|
1148
|
+
vfunc_get_stream_transmitter_type(transmitter: string): GObject.GType
|
|
1221
1149
|
/**
|
|
1222
1150
|
* Get the list of all available transmitters for this session.
|
|
1223
1151
|
* @virtual
|
|
@@ -1433,17 +1361,6 @@ interface Stream {
|
|
|
1433
1361
|
|
|
1434
1362
|
// Own properties of Farstream-0.2.Farstream.Stream
|
|
1435
1363
|
|
|
1436
|
-
/**
|
|
1437
|
-
* This is the list of codecs that have been received by this stream.
|
|
1438
|
-
* The user must free the list if fs_codec_list_destroy().
|
|
1439
|
-
* The "farstream-recv-codecs-changed" message is send on the #GstBus
|
|
1440
|
-
* when the value of this property changes.
|
|
1441
|
-
* It is normally emitted right after #FsStream::src-pad-added
|
|
1442
|
-
* only if that codec was not previously received in this stream, but it can
|
|
1443
|
-
* also be emitted if the pad already exists, but the source material that
|
|
1444
|
-
* will come to it is different.
|
|
1445
|
-
*/
|
|
1446
|
-
readonly current_recv_codecs: Codec[]
|
|
1447
1364
|
/**
|
|
1448
1365
|
* This is the list of codecs that have been received by this stream.
|
|
1449
1366
|
* The user must free the list if fs_codec_list_destroy().
|
|
@@ -1455,10 +1372,6 @@ interface Stream {
|
|
|
1455
1372
|
* will come to it is different.
|
|
1456
1373
|
*/
|
|
1457
1374
|
readonly currentRecvCodecs: Codec[]
|
|
1458
|
-
/**
|
|
1459
|
-
* Retrieves previously set decryption parameters
|
|
1460
|
-
*/
|
|
1461
|
-
readonly decryption_parameters: Gst.Structure
|
|
1462
1375
|
/**
|
|
1463
1376
|
* Retrieves previously set decryption parameters
|
|
1464
1377
|
*/
|
|
@@ -1469,14 +1382,6 @@ interface Stream {
|
|
|
1469
1382
|
* required by setting this property.
|
|
1470
1383
|
*/
|
|
1471
1384
|
direction: StreamDirection
|
|
1472
|
-
/**
|
|
1473
|
-
* This is the list of negotiatied codecs, it is the same list as the list
|
|
1474
|
-
* of #FsCodec from the parent #FsSession, except that the codec config data
|
|
1475
|
-
* has been replaced with the data from the remote codecs for this stream.
|
|
1476
|
-
* This is the list of #FsCodec used to receive data from this stream.
|
|
1477
|
-
* It is a #GList of #FsCodec.
|
|
1478
|
-
*/
|
|
1479
|
-
readonly negotiated_codecs: Codec[]
|
|
1480
1385
|
/**
|
|
1481
1386
|
* This is the list of negotiatied codecs, it is the same list as the list
|
|
1482
1387
|
* of #FsCodec from the parent #FsSession, except that the codec config data
|
|
@@ -1490,12 +1395,6 @@ interface Stream {
|
|
|
1490
1395
|
* is read-only construction.
|
|
1491
1396
|
*/
|
|
1492
1397
|
readonly participant: Participant
|
|
1493
|
-
/**
|
|
1494
|
-
* This is the list of remote codecs for this stream. They must be set by the
|
|
1495
|
-
* user as soon as they are known using fs_stream_set_remote_codecs()
|
|
1496
|
-
* (generally through external signaling). It is a #GList of #FsCodec.
|
|
1497
|
-
*/
|
|
1498
|
-
readonly remote_codecs: Codec[]
|
|
1499
1398
|
/**
|
|
1500
1399
|
* This is the list of remote codecs for this stream. They must be set by the
|
|
1501
1400
|
* user as soon as they are known using fs_stream_set_remote_codecs()
|
|
@@ -1555,7 +1454,7 @@ interface Stream {
|
|
|
1555
1454
|
* @param error_no The number of the error
|
|
1556
1455
|
* @param error_msg Error message to be displayed to user
|
|
1557
1456
|
*/
|
|
1558
|
-
emit_error(error_no: number, error_msg: string
|
|
1457
|
+
emit_error(error_no: number, error_msg: string): void
|
|
1559
1458
|
/**
|
|
1560
1459
|
* Emits the #FsStream::src-pad-added" signal, it should only be
|
|
1561
1460
|
* called by subclasses.
|
|
@@ -1640,7 +1539,7 @@ interface Stream {
|
|
|
1640
1539
|
* @param stream_transmitter_parameters an array of n_parameters #GParameter struct that will be passed to the newly-create #FsStreamTransmitter
|
|
1641
1540
|
* @returns %TRUE if the transmitter could be set, %FALSE otherwise
|
|
1642
1541
|
*/
|
|
1643
|
-
set_transmitter(transmitter: string
|
|
1542
|
+
set_transmitter(transmitter: string, stream_transmitter_parameters: GObject.Parameter[] | null): boolean
|
|
1644
1543
|
/**
|
|
1645
1544
|
* Set the transmitter to use for this stream. This function will only succeed
|
|
1646
1545
|
* once.
|
|
@@ -1654,7 +1553,7 @@ interface Stream {
|
|
|
1654
1553
|
* @param stream_transmitter_parameters A #GHashTable of string->GValue containing the parameters.
|
|
1655
1554
|
* @returns %TRUE if the transmitter could be set, %FALSE otherwise
|
|
1656
1555
|
*/
|
|
1657
|
-
set_transmitter_ht(transmitter: string
|
|
1556
|
+
set_transmitter_ht(transmitter: string, stream_transmitter_parameters: GLib.HashTable | null): boolean
|
|
1658
1557
|
|
|
1659
1558
|
// Own virtual methods of Farstream-0.2.Farstream.Stream
|
|
1660
1559
|
|
|
@@ -1725,7 +1624,7 @@ interface Stream {
|
|
|
1725
1624
|
* @param stream_transmitter_parameters an array of n_parameters #GParameter struct that will be passed to the newly-create #FsStreamTransmitter
|
|
1726
1625
|
* @returns %TRUE if the transmitter could be set, %FALSE otherwise
|
|
1727
1626
|
*/
|
|
1728
|
-
vfunc_set_transmitter(transmitter: string
|
|
1627
|
+
vfunc_set_transmitter(transmitter: string, stream_transmitter_parameters: GObject.Parameter[] | null): boolean
|
|
1729
1628
|
|
|
1730
1629
|
// Own signals of Farstream-0.2.Farstream.Stream
|
|
1731
1630
|
|
|
@@ -1839,18 +1738,12 @@ module StreamTransmitter {
|
|
|
1839
1738
|
* This tells the stream transmitter to associate incoming data with this
|
|
1840
1739
|
* based on the source without looking at the content if possible.
|
|
1841
1740
|
*/
|
|
1842
|
-
|
|
1843
|
-
|
|
1741
|
+
associateOnSource?: boolean | null
|
|
1742
|
+
preferredLocalCandidates?: any | null
|
|
1844
1743
|
/**
|
|
1845
1744
|
* A network source #GstElement to be used by the #FsSession
|
|
1846
1745
|
*/
|
|
1847
1746
|
sending?: boolean | null
|
|
1848
|
-
/**
|
|
1849
|
-
* This tells the stream transmitter to associate incoming data with this
|
|
1850
|
-
* based on the source without looking at the content if possible.
|
|
1851
|
-
*/
|
|
1852
|
-
associateOnSource?: boolean | null
|
|
1853
|
-
preferredLocalCandidates?: any | null
|
|
1854
1747
|
}
|
|
1855
1748
|
|
|
1856
1749
|
}
|
|
@@ -1859,17 +1752,11 @@ interface StreamTransmitter {
|
|
|
1859
1752
|
|
|
1860
1753
|
// Own properties of Farstream-0.2.Farstream.StreamTransmitter
|
|
1861
1754
|
|
|
1862
|
-
/**
|
|
1863
|
-
* This tells the stream transmitter to associate incoming data with this
|
|
1864
|
-
* based on the source without looking at the content if possible.
|
|
1865
|
-
*/
|
|
1866
|
-
readonly associate_on_source: boolean
|
|
1867
1755
|
/**
|
|
1868
1756
|
* This tells the stream transmitter to associate incoming data with this
|
|
1869
1757
|
* based on the source without looking at the content if possible.
|
|
1870
1758
|
*/
|
|
1871
1759
|
readonly associateOnSource: boolean
|
|
1872
|
-
readonly preferred_local_candidates: any
|
|
1873
1760
|
readonly preferredLocalCandidates: any
|
|
1874
1761
|
/**
|
|
1875
1762
|
* A network source #GstElement to be used by the #FsSession
|
|
@@ -1894,7 +1781,7 @@ interface StreamTransmitter {
|
|
|
1894
1781
|
* @param error_no The number of the error
|
|
1895
1782
|
* @param error_msg Error message (for the programmer)
|
|
1896
1783
|
*/
|
|
1897
|
-
emit_error(error_no: number, error_msg: string
|
|
1784
|
+
emit_error(error_no: number, error_msg: string): void
|
|
1898
1785
|
/**
|
|
1899
1786
|
* This function forces data to be sent immediately to the selected remote
|
|
1900
1787
|
* candidate, by-passing any connectivity checks. There should be at most
|
|
@@ -2030,16 +1917,11 @@ module Transmitter {
|
|
|
2030
1917
|
* Apply current stream time to buffers or provide buffers without
|
|
2031
1918
|
* timestamps. Must be set before creating a stream transmitter.
|
|
2032
1919
|
*/
|
|
2033
|
-
|
|
1920
|
+
doTimestamp?: boolean | null
|
|
2034
1921
|
/**
|
|
2035
1922
|
* Sets the IP ToS field (and if possible the IPv6 TCLASS field
|
|
2036
1923
|
*/
|
|
2037
1924
|
tos?: number | null
|
|
2038
|
-
/**
|
|
2039
|
-
* Apply current stream time to buffers or provide buffers without
|
|
2040
|
-
* timestamps. Must be set before creating a stream transmitter.
|
|
2041
|
-
*/
|
|
2042
|
-
doTimestamp?: boolean | null
|
|
2043
1925
|
}
|
|
2044
1926
|
|
|
2045
1927
|
}
|
|
@@ -2052,25 +1934,11 @@ interface Transmitter {
|
|
|
2052
1934
|
* The number of components to create
|
|
2053
1935
|
*/
|
|
2054
1936
|
readonly components: number
|
|
2055
|
-
/**
|
|
2056
|
-
* Apply current stream time to buffers or provide buffers without
|
|
2057
|
-
* timestamps. Must be set before creating a stream transmitter.
|
|
2058
|
-
*/
|
|
2059
|
-
do_timestamp: boolean
|
|
2060
1937
|
/**
|
|
2061
1938
|
* Apply current stream time to buffers or provide buffers without
|
|
2062
1939
|
* timestamps. Must be set before creating a stream transmitter.
|
|
2063
1940
|
*/
|
|
2064
1941
|
doTimestamp: boolean
|
|
2065
|
-
/**
|
|
2066
|
-
* A network source #GstElement to be used by the #FsSession
|
|
2067
|
-
* These element's sink must have async=FALSE
|
|
2068
|
-
* This element MUST provide a pad named "sink_\%u" per component.
|
|
2069
|
-
* These pads number must start at 1 (the \%u corresponds to the component
|
|
2070
|
-
* number).
|
|
2071
|
-
* These pads MUST be static pads.
|
|
2072
|
-
*/
|
|
2073
|
-
readonly gst_sink: Gst.Element
|
|
2074
1942
|
/**
|
|
2075
1943
|
* A network source #GstElement to be used by the #FsSession
|
|
2076
1944
|
* These element's sink must have async=FALSE
|
|
@@ -2080,14 +1948,6 @@ interface Transmitter {
|
|
|
2080
1948
|
* These pads MUST be static pads.
|
|
2081
1949
|
*/
|
|
2082
1950
|
readonly gstSink: Gst.Element
|
|
2083
|
-
/**
|
|
2084
|
-
* A network source #GstElement to be used by the #FsSession
|
|
2085
|
-
* This element MUST provide a source pad named "src_%u" per component.
|
|
2086
|
-
* These pads number must start at 1 (the %u corresponds to the component
|
|
2087
|
-
* number).
|
|
2088
|
-
* These pads MUST be static pads.
|
|
2089
|
-
*/
|
|
2090
|
-
readonly gst_src: Gst.Element
|
|
2091
1951
|
/**
|
|
2092
1952
|
* A network source #GstElement to be used by the #FsSession
|
|
2093
1953
|
* This element MUST provide a source pad named "src_%u" per component.
|
|
@@ -2113,7 +1973,7 @@ interface Transmitter {
|
|
|
2113
1973
|
* @param error_no The number of the error
|
|
2114
1974
|
* @param error_msg Error message to be displayed to user
|
|
2115
1975
|
*/
|
|
2116
|
-
emit_error(error_no: number, error_msg: string
|
|
1976
|
+
emit_error(error_no: number, error_msg: string): void
|
|
2117
1977
|
/**
|
|
2118
1978
|
* This function returns the GObject type for the stream transmitter.
|
|
2119
1979
|
* This is meant for bindings that need to introspect the type of arguments
|
|
@@ -2204,7 +2064,7 @@ class Transmitter extends GObject.Object {
|
|
|
2204
2064
|
* @param tos The Type of Service of the socket, max is 255
|
|
2205
2065
|
* @returns a newly-created #FsTransmitter of the requested type (or NULL if there is an error)
|
|
2206
2066
|
*/
|
|
2207
|
-
constructor(type: string
|
|
2067
|
+
constructor(type: string, components: number, tos: number)
|
|
2208
2068
|
/**
|
|
2209
2069
|
* This function creates a new transmitter of the requested type.
|
|
2210
2070
|
* It will load the appropriate plugin as required.
|
|
@@ -2214,7 +2074,7 @@ class Transmitter extends GObject.Object {
|
|
|
2214
2074
|
* @param tos The Type of Service of the socket, max is 255
|
|
2215
2075
|
* @returns a newly-created #FsTransmitter of the requested type (or NULL if there is an error)
|
|
2216
2076
|
*/
|
|
2217
|
-
static new(type: string
|
|
2077
|
+
static new(type: string, components: number, tos: number): Transmitter
|
|
2218
2078
|
_init(config?: Transmitter.ConstructorProperties): void
|
|
2219
2079
|
/**
|
|
2220
2080
|
* Get the list of all available transmitters
|
|
@@ -2323,7 +2183,7 @@ class Candidate {
|
|
|
2323
2183
|
* @param port the UDP/TCP port
|
|
2324
2184
|
* @returns a newly-allocated #FsCandidate
|
|
2325
2185
|
*/
|
|
2326
|
-
constructor(foundation: string
|
|
2186
|
+
constructor(foundation: string, component_id: number, type: CandidateType, proto: NetworkProtocol, ip: string | null, port: number)
|
|
2327
2187
|
/**
|
|
2328
2188
|
* Allocates a new #FsCandidate, the rest of the fields can be optionally
|
|
2329
2189
|
* filled manually. See also fs_candidate_new_full()
|
|
@@ -2336,7 +2196,7 @@ class Candidate {
|
|
|
2336
2196
|
* @param port the UDP/TCP port
|
|
2337
2197
|
* @returns a newly-allocated #FsCandidate
|
|
2338
2198
|
*/
|
|
2339
|
-
static new(foundation: string
|
|
2199
|
+
static new(foundation: string, component_id: number, type: CandidateType, proto: NetworkProtocol, ip: string | null, port: number): Candidate
|
|
2340
2200
|
/**
|
|
2341
2201
|
* Allocates a new #FsCandidate, filling all the fields. See also
|
|
2342
2202
|
* fs_candidate_new()
|
|
@@ -2355,7 +2215,7 @@ class Candidate {
|
|
|
2355
2215
|
* @param ttl The TTL used when sending Multicast packet (0 = auto)
|
|
2356
2216
|
* @returns a newly-allocated #FsCandidate
|
|
2357
2217
|
*/
|
|
2358
|
-
static new_full(foundation: string
|
|
2218
|
+
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
2219
|
}
|
|
2360
2220
|
|
|
2361
2221
|
interface Codec {
|
|
@@ -2414,13 +2274,13 @@ interface Codec {
|
|
|
2414
2274
|
* @param subtype The subtype of the feedback parameter
|
|
2415
2275
|
* @param extra_params The extra_params of the feeback parameter
|
|
2416
2276
|
*/
|
|
2417
|
-
add_feedback_parameter(type: string
|
|
2277
|
+
add_feedback_parameter(type: string, subtype: string, extra_params: string): void
|
|
2418
2278
|
/**
|
|
2419
2279
|
* This function adds an new optional parameter to a #FsCodec
|
|
2420
2280
|
* @param name The name of the optional parameter
|
|
2421
2281
|
* @param value The extra_params of the optional parameter
|
|
2422
2282
|
*/
|
|
2423
|
-
add_optional_parameter(name: string
|
|
2283
|
+
add_optional_parameter(name: string, value: string): void
|
|
2424
2284
|
/**
|
|
2425
2285
|
* Compare two codecs, it will declare two codecs to be identical even
|
|
2426
2286
|
* if their optional parameters are in a different order. %NULL encoding names
|
|
@@ -2450,7 +2310,7 @@ interface Codec {
|
|
|
2450
2310
|
* @param value The value of the parameter to search for or %NULL for any value
|
|
2451
2311
|
* @returns the #FsCodecParameter from the #FsCodec or %NULL
|
|
2452
2312
|
*/
|
|
2453
|
-
get_optional_parameter(name: string
|
|
2313
|
+
get_optional_parameter(name: string, value: string | null): CodecParameter
|
|
2454
2314
|
/**
|
|
2455
2315
|
* Removes an optional parameter from a codec.
|
|
2456
2316
|
*
|
|
@@ -2493,7 +2353,7 @@ class Codec {
|
|
|
2493
2353
|
* @param clock_rate The clock rate this codec encodes at, if applicable
|
|
2494
2354
|
* @returns A newly allocated #FsCodec
|
|
2495
2355
|
*/
|
|
2496
|
-
constructor(id: number, encoding_name: string
|
|
2356
|
+
constructor(id: number, encoding_name: string, media_type: MediaType, clock_rate: number)
|
|
2497
2357
|
/**
|
|
2498
2358
|
* Allocates and initializes a #FsCodec structure
|
|
2499
2359
|
* @constructor
|
|
@@ -2503,7 +2363,7 @@ class Codec {
|
|
|
2503
2363
|
* @param clock_rate The clock rate this codec encodes at, if applicable
|
|
2504
2364
|
* @returns A newly allocated #FsCodec
|
|
2505
2365
|
*/
|
|
2506
|
-
static new(id: number, encoding_name: string
|
|
2366
|
+
static new(id: number, encoding_name: string, media_type: MediaType, clock_rate: number): Codec
|
|
2507
2367
|
}
|
|
2508
2368
|
|
|
2509
2369
|
interface CodecParameter {
|
|
@@ -2753,7 +2613,7 @@ class RtpHeaderExtension {
|
|
|
2753
2613
|
* @param uri The URI that defines this extension
|
|
2754
2614
|
* @returns a new #FsRtpHeaderExtension
|
|
2755
2615
|
*/
|
|
2756
|
-
constructor(id: number, direction: StreamDirection, uri: string
|
|
2616
|
+
constructor(id: number, direction: StreamDirection, uri: string)
|
|
2757
2617
|
/**
|
|
2758
2618
|
* Creates a new #FsRtpHeaderExtension
|
|
2759
2619
|
* @constructor
|
|
@@ -2762,7 +2622,7 @@ class RtpHeaderExtension {
|
|
|
2762
2622
|
* @param uri The URI that defines this extension
|
|
2763
2623
|
* @returns a new #FsRtpHeaderExtension
|
|
2764
2624
|
*/
|
|
2765
|
-
static new(id: number, direction: StreamDirection, uri: string
|
|
2625
|
+
static new(id: number, direction: StreamDirection, uri: string): RtpHeaderExtension
|
|
2766
2626
|
}
|
|
2767
2627
|
|
|
2768
2628
|
interface SessionClass {
|
|
@@ -2780,7 +2640,7 @@ interface SessionClass {
|
|
|
2780
2640
|
set_send_codec: (session: Session, send_codec: Codec) => boolean
|
|
2781
2641
|
set_codec_preferences: (session: Session, codec_preferences: Codec[] | null) => boolean
|
|
2782
2642
|
list_transmitters: (session: Session) => string[]
|
|
2783
|
-
get_stream_transmitter_type: (session: Session, transmitter: string
|
|
2643
|
+
get_stream_transmitter_type: (session: Session, transmitter: string) => GObject.GType
|
|
2784
2644
|
codecs_need_resend: (session: Session, old_codecs: Codec[] | null, new_codecs: Codec[] | null) => Codec[]
|
|
2785
2645
|
set_allowed_caps: (session: Session, sink_caps: Gst.Caps | null, src_caps: Gst.Caps | null) => boolean
|
|
2786
2646
|
set_encryption_parameters: (session: Session, parameters: Gst.Structure | null) => boolean
|
|
@@ -2820,7 +2680,7 @@ interface StreamClass {
|
|
|
2820
2680
|
force_remote_candidates: (stream: Stream, remote_candidates: Candidate[]) => boolean
|
|
2821
2681
|
set_remote_codecs: (stream: Stream, remote_codecs: Codec[]) => boolean
|
|
2822
2682
|
add_id: (stream: Stream, id: number) => void
|
|
2823
|
-
set_transmitter: (stream: Stream, transmitter: string
|
|
2683
|
+
set_transmitter: (stream: Stream, transmitter: string, stream_transmitter_parameters: GObject.Parameter[] | null) => boolean
|
|
2824
2684
|
set_decryption_parameters: (stream: Stream, parameters: Gst.Structure) => boolean
|
|
2825
2685
|
}
|
|
2826
2686
|
|
package/package.json
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/farstream-0.2",
|
|
3
|
-
"version": "0.2.0-3.2.
|
|
3
|
+
"version": "0.2.0-3.2.8",
|
|
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",
|
|
7
7
|
"main": "farstream-0.2.js",
|
|
8
8
|
"exports": {
|
|
9
|
-
"./ambient":
|
|
10
|
-
|
|
9
|
+
"./ambient": {
|
|
10
|
+
"types": "./farstream-0.2-ambient.d.ts",
|
|
11
|
+
"default": "./farstream-0.2-ambient.js"
|
|
12
|
+
},
|
|
13
|
+
"./import": {
|
|
14
|
+
"types": "./farstream-0.2-import.d.ts",
|
|
15
|
+
"default": "./farstream-0.2-import.js"
|
|
16
|
+
},
|
|
11
17
|
".": {
|
|
12
18
|
"import": {
|
|
13
19
|
"types": "./farstream-0.2.d.ts",
|
|
@@ -25,11 +31,11 @@
|
|
|
25
31
|
"test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit farstream-0.2.d.cts"
|
|
26
32
|
},
|
|
27
33
|
"dependencies": {
|
|
28
|
-
"@girs/gjs": "^3.2.
|
|
29
|
-
"@girs/glib-2.0": "^2.
|
|
30
|
-
"@girs/gmodule-2.0": "^2.0.0-3.2.
|
|
31
|
-
"@girs/gobject-2.0": "^2.
|
|
32
|
-
"@girs/gst-1.0": "^1.23.0-3.2.
|
|
34
|
+
"@girs/gjs": "^3.2.8",
|
|
35
|
+
"@girs/glib-2.0": "^2.77.0-3.2.8",
|
|
36
|
+
"@girs/gmodule-2.0": "^2.0.0-3.2.8",
|
|
37
|
+
"@girs/gobject-2.0": "^2.77.0-3.2.8",
|
|
38
|
+
"@girs/gst-1.0": "^1.23.0-3.2.8"
|
|
33
39
|
},
|
|
34
40
|
"devDependencies": {
|
|
35
41
|
"typescript": "*"
|
|
@@ -46,7 +52,7 @@
|
|
|
46
52
|
"license": "MIT",
|
|
47
53
|
"repository": {
|
|
48
54
|
"type": "git",
|
|
49
|
-
"url": "git+https://github.com/gjsify/
|
|
55
|
+
"url": "git+https://github.com/gjsify/ts-for-gir.git"
|
|
50
56
|
},
|
|
51
57
|
"bugs": {
|
|
52
58
|
"url": "https://github.com/gjsify/ts-for-gir/issues"
|