@girs/farstream-0.2 0.2.0-3.2.4 → 0.2.0-3.2.6
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 +14 -1
- package/farstream-0.2-ambient.d.ts +4 -1
- package/farstream-0.2-import.d.ts +0 -1
- package/farstream-0.2.d.cts +140 -0
- package/farstream-0.2.d.ts +140 -0
- package/package.json +6 -6
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.6.
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
## Install
|
|
@@ -81,6 +81,19 @@ Now you have also type support for this, too:
|
|
|
81
81
|
const Farstream = imports.gi.Farstream;
|
|
82
82
|
```
|
|
83
83
|
|
|
84
|
+
|
|
85
|
+
### ESM vs. CommonJS
|
|
86
|
+
|
|
87
|
+
GJS supports two different import syntaxes. The new modern ESM syntax and the old global imports syntax.
|
|
88
|
+
|
|
89
|
+
In TypeScript projects for GJS and GNOME Shell extensions, you have the flexibility to use `ESM` syntax and then decide the import syntax for your bundled file. If your bundler is configured to use `CommonJS`, it will convert to the GJS-specific global imports syntax, like `const moduleName = imports.gi[moduleName]`. This is different from the traditional `require` syntax seen in Node.js. The global imports syntax is chosen because it aligns with the CommonJS format supported by NPM, which is used for the generated type definitions and this package.
|
|
90
|
+
|
|
91
|
+
On the other hand, if you configure your bundler to use ESM, it will retain the ESM import syntax. It's crucial to ensure that your bundler is set up to correctly translate and bundle these imports into either CommonJS or ESM format, depending on your project's requirements.
|
|
92
|
+
|
|
93
|
+
This approach is particularly important due to the `@girs` types, which include both `*.cjs `files, using the GJS global imports syntax, and `*.js` files, which utilize the ESM syntax. By appropriately setting up your bundler, you can control which syntax—CommonJS or ESM—is used in your project. The choice of CommonJS in this context is also due to the similarity between the GJS-specific global imports and CommonJS syntax, allowing for easier management and bundling in these specific types of projects.
|
|
94
|
+
|
|
95
|
+
Since GNOME Shell 45, you should only use ESM, even for GNOME Shell extensions. Before that, extensions had to use the global import syntax, unlike normal GJS applications, where ESM has been available for some time.
|
|
96
|
+
|
|
84
97
|
### Bundle
|
|
85
98
|
|
|
86
99
|
Depending on your project configuration, it is recommended to use a bundler like [esbuild](https://esbuild.github.io/). You can find examples using different bundlers [here](https://github.com/gjsify/ts-for-gir/tree/main/examples).
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
2
|
declare module 'gi://Farstream?version=0.2' {
|
|
4
3
|
import Farstream02 from '@girs/farstream-0.2';
|
|
5
4
|
export default Farstream02;
|
|
6
5
|
}
|
|
7
6
|
|
|
7
|
+
declare module 'gi://Farstream' {
|
|
8
|
+
import Farstream02 from '@girs/farstream-0.2';
|
|
9
|
+
export default Farstream02;
|
|
10
|
+
}
|
|
8
11
|
|
|
9
12
|
|
package/farstream-0.2.d.cts
CHANGED
|
@@ -856,6 +856,11 @@ export module Session {
|
|
|
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
|
|
859
864
|
}
|
|
860
865
|
|
|
861
866
|
}
|
|
@@ -870,12 +875,24 @@ export interface Session {
|
|
|
870
875
|
* accepted those caps as input.
|
|
871
876
|
*/
|
|
872
877
|
readonly allowed_sink_caps: Gst.Caps
|
|
878
|
+
/**
|
|
879
|
+
* These are the #GstCaps that can be fed into the session,
|
|
880
|
+
* they are used to filter the codecs to only those that can
|
|
881
|
+
* accepted those caps as input.
|
|
882
|
+
*/
|
|
883
|
+
readonly allowedSinkCaps: Gst.Caps
|
|
873
884
|
/**
|
|
874
885
|
* These are the #GstCaps that the session can produce,
|
|
875
886
|
* they are used to filter the codecs to only those that can
|
|
876
887
|
* accepted those caps as output.
|
|
877
888
|
*/
|
|
878
889
|
readonly allowed_src_caps: Gst.Caps
|
|
890
|
+
/**
|
|
891
|
+
* These are the #GstCaps that the session can produce,
|
|
892
|
+
* they are used to filter the codecs to only those that can
|
|
893
|
+
* accepted those caps as output.
|
|
894
|
+
*/
|
|
895
|
+
readonly allowedSrcCaps: Gst.Caps
|
|
879
896
|
/**
|
|
880
897
|
* This is the current preferences list for the local codecs. It is
|
|
881
898
|
* set by the user to specify the codec options and priorities. The user may
|
|
@@ -889,6 +906,19 @@ export interface Session {
|
|
|
889
906
|
* dynamically assigned payload type.
|
|
890
907
|
*/
|
|
891
908
|
readonly codec_preferences: Codec[]
|
|
909
|
+
/**
|
|
910
|
+
* This is the current preferences list for the local codecs. It is
|
|
911
|
+
* set by the user to specify the codec options and priorities. The user may
|
|
912
|
+
* change its value with fs_session_set_codec_preferences() at any time
|
|
913
|
+
* during a session. It is a #GList of #FsCodec.
|
|
914
|
+
* The user must free this codec list using fs_codec_list_destroy() when done.
|
|
915
|
+
*
|
|
916
|
+
* The payload type may be a valid dynamic PT (96-127), %FS_CODEC_ID_DISABLE
|
|
917
|
+
* or %FS_CODEC_ID_ANY. If the encoding name is "reserve-pt", then the
|
|
918
|
+
* payload type of the codec will be "reserved" and not be used by any
|
|
919
|
+
* dynamically assigned payload type.
|
|
920
|
+
*/
|
|
921
|
+
readonly codecPreferences: Codec[]
|
|
892
922
|
/**
|
|
893
923
|
* This is the list of codecs used for this session. It will include the
|
|
894
924
|
* codecs and payload type used to receive media on this session. It will
|
|
@@ -928,6 +958,25 @@ export interface Session {
|
|
|
928
958
|
* fs_codec_list_destroy() when done.
|
|
929
959
|
*/
|
|
930
960
|
readonly codecs_without_config: Codec[]
|
|
961
|
+
/**
|
|
962
|
+
* This is the same list of codecs as #FsSession:codecs without
|
|
963
|
+
* the configuration information that describes the data sent. It is suitable
|
|
964
|
+
* for configurations where a list of codecs is shared by many senders.
|
|
965
|
+
* If one is using codecs such as Theora, Vorbis or H.264 that require
|
|
966
|
+
* such information to be transmitted, the configuration data should be
|
|
967
|
+
* included in the stream and retransmitted regularly.
|
|
968
|
+
*
|
|
969
|
+
* It may change when the codec preferences are set, when codecs are set
|
|
970
|
+
* on a #FsStream in this session, when a #FsStream is destroyed or
|
|
971
|
+
* asynchronously when new config data is discovered.
|
|
972
|
+
*
|
|
973
|
+
* The "farstream-codecs-changed" message will be emitted whenever the value
|
|
974
|
+
* of this property changes.
|
|
975
|
+
*
|
|
976
|
+
* It is a #GList of #FsCodec. User must free this codec list using
|
|
977
|
+
* fs_codec_list_destroy() when done.
|
|
978
|
+
*/
|
|
979
|
+
readonly codecsWithoutConfig: Codec[]
|
|
931
980
|
/**
|
|
932
981
|
* The #FsConference parent of this session. This property is a
|
|
933
982
|
* construct param and is read-only.
|
|
@@ -942,10 +991,23 @@ export interface Session {
|
|
|
942
991
|
* the value of this property changes.
|
|
943
992
|
*/
|
|
944
993
|
readonly current_send_codec: Codec
|
|
994
|
+
/**
|
|
995
|
+
* Indicates the currently active send codec. A user can change the active
|
|
996
|
+
* send codec by calling fs_session_set_send_codec(). The send codec could
|
|
997
|
+
* also be automatically changed by Farstream. This property is an
|
|
998
|
+
* #FsCodec. User must free the codec using fs_codec_destroy() when done.
|
|
999
|
+
* The "farstream-send-codec-changed" message is emitted on the bus when
|
|
1000
|
+
* the value of this property changes.
|
|
1001
|
+
*/
|
|
1002
|
+
readonly currentSendCodec: Codec
|
|
945
1003
|
/**
|
|
946
1004
|
* Retrieves previously set encryption parameters
|
|
947
1005
|
*/
|
|
948
1006
|
readonly encryption_parameters: Gst.Structure
|
|
1007
|
+
/**
|
|
1008
|
+
* Retrieves previously set encryption parameters
|
|
1009
|
+
*/
|
|
1010
|
+
readonly encryptionParameters: Gst.Structure
|
|
949
1011
|
/**
|
|
950
1012
|
* The ID of the session, the first number of the pads linked to this session
|
|
951
1013
|
* will be this id
|
|
@@ -956,11 +1018,21 @@ export interface Session {
|
|
|
956
1018
|
* This is a constructor parameter that cannot be changed.
|
|
957
1019
|
*/
|
|
958
1020
|
readonly media_type: MediaType
|
|
1021
|
+
/**
|
|
1022
|
+
* The media-type of the session. This is either Audio, Video or both.
|
|
1023
|
+
* This is a constructor parameter that cannot be changed.
|
|
1024
|
+
*/
|
|
1025
|
+
readonly mediaType: MediaType
|
|
959
1026
|
/**
|
|
960
1027
|
* The Gstreamer sink pad that must be used to send media data on this
|
|
961
1028
|
* session. User must unref this GstPad when done with it.
|
|
962
1029
|
*/
|
|
963
1030
|
readonly sink_pad: Gst.Pad
|
|
1031
|
+
/**
|
|
1032
|
+
* The Gstreamer sink pad that must be used to send media data on this
|
|
1033
|
+
* session. User must unref this GstPad when done with it.
|
|
1034
|
+
*/
|
|
1035
|
+
readonly sinkPad: Gst.Pad
|
|
964
1036
|
/**
|
|
965
1037
|
* Sets the IP ToS field (and if possible the IPv6 TCLASS field
|
|
966
1038
|
*/
|
|
@@ -1370,10 +1442,25 @@ export interface Stream {
|
|
|
1370
1442
|
* will come to it is different.
|
|
1371
1443
|
*/
|
|
1372
1444
|
readonly current_recv_codecs: Codec[]
|
|
1445
|
+
/**
|
|
1446
|
+
* This is the list of codecs that have been received by this stream.
|
|
1447
|
+
* The user must free the list if fs_codec_list_destroy().
|
|
1448
|
+
* The "farstream-recv-codecs-changed" message is send on the #GstBus
|
|
1449
|
+
* when the value of this property changes.
|
|
1450
|
+
* It is normally emitted right after #FsStream::src-pad-added
|
|
1451
|
+
* only if that codec was not previously received in this stream, but it can
|
|
1452
|
+
* also be emitted if the pad already exists, but the source material that
|
|
1453
|
+
* will come to it is different.
|
|
1454
|
+
*/
|
|
1455
|
+
readonly currentRecvCodecs: Codec[]
|
|
1373
1456
|
/**
|
|
1374
1457
|
* Retrieves previously set decryption parameters
|
|
1375
1458
|
*/
|
|
1376
1459
|
readonly decryption_parameters: Gst.Structure
|
|
1460
|
+
/**
|
|
1461
|
+
* Retrieves previously set decryption parameters
|
|
1462
|
+
*/
|
|
1463
|
+
readonly decryptionParameters: Gst.Structure
|
|
1377
1464
|
/**
|
|
1378
1465
|
* The direction of the stream. This property is set initially as a parameter
|
|
1379
1466
|
* to the fs_session_new_stream() function. It can be changed later if
|
|
@@ -1388,6 +1475,14 @@ export interface Stream {
|
|
|
1388
1475
|
* It is a #GList of #FsCodec.
|
|
1389
1476
|
*/
|
|
1390
1477
|
readonly negotiated_codecs: Codec[]
|
|
1478
|
+
/**
|
|
1479
|
+
* This is the list of negotiatied codecs, it is the same list as the list
|
|
1480
|
+
* of #FsCodec from the parent #FsSession, except that the codec config data
|
|
1481
|
+
* has been replaced with the data from the remote codecs for this stream.
|
|
1482
|
+
* This is the list of #FsCodec used to receive data from this stream.
|
|
1483
|
+
* It is a #GList of #FsCodec.
|
|
1484
|
+
*/
|
|
1485
|
+
readonly negotiatedCodecs: Codec[]
|
|
1391
1486
|
/**
|
|
1392
1487
|
* The #FsParticipant for this stream. This property is a construct param and
|
|
1393
1488
|
* is read-only construction.
|
|
@@ -1399,6 +1494,12 @@ export interface Stream {
|
|
|
1399
1494
|
* (generally through external signaling). It is a #GList of #FsCodec.
|
|
1400
1495
|
*/
|
|
1401
1496
|
readonly remote_codecs: Codec[]
|
|
1497
|
+
/**
|
|
1498
|
+
* This is the list of remote codecs for this stream. They must be set by the
|
|
1499
|
+
* user as soon as they are known using fs_stream_set_remote_codecs()
|
|
1500
|
+
* (generally through external signaling). It is a #GList of #FsCodec.
|
|
1501
|
+
*/
|
|
1502
|
+
readonly remoteCodecs: Codec[]
|
|
1402
1503
|
/**
|
|
1403
1504
|
* The #FsSession for this stream. This property is a construct param and
|
|
1404
1505
|
* is read-only construction.
|
|
@@ -1742,6 +1843,12 @@ export module StreamTransmitter {
|
|
|
1742
1843
|
* A network source #GstElement to be used by the #FsSession
|
|
1743
1844
|
*/
|
|
1744
1845
|
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
|
|
1745
1852
|
}
|
|
1746
1853
|
|
|
1747
1854
|
}
|
|
@@ -1755,7 +1862,13 @@ export interface StreamTransmitter {
|
|
|
1755
1862
|
* based on the source without looking at the content if possible.
|
|
1756
1863
|
*/
|
|
1757
1864
|
readonly associate_on_source: boolean
|
|
1865
|
+
/**
|
|
1866
|
+
* This tells the stream transmitter to associate incoming data with this
|
|
1867
|
+
* based on the source without looking at the content if possible.
|
|
1868
|
+
*/
|
|
1869
|
+
readonly associateOnSource: boolean
|
|
1758
1870
|
readonly preferred_local_candidates: any
|
|
1871
|
+
readonly preferredLocalCandidates: any
|
|
1759
1872
|
/**
|
|
1760
1873
|
* A network source #GstElement to be used by the #FsSession
|
|
1761
1874
|
*/
|
|
@@ -1920,6 +2033,11 @@ export module Transmitter {
|
|
|
1920
2033
|
* Sets the IP ToS field (and if possible the IPv6 TCLASS field
|
|
1921
2034
|
*/
|
|
1922
2035
|
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
|
|
1923
2041
|
}
|
|
1924
2042
|
|
|
1925
2043
|
}
|
|
@@ -1937,6 +2055,11 @@ export interface Transmitter {
|
|
|
1937
2055
|
* timestamps. Must be set before creating a stream transmitter.
|
|
1938
2056
|
*/
|
|
1939
2057
|
do_timestamp: boolean
|
|
2058
|
+
/**
|
|
2059
|
+
* Apply current stream time to buffers or provide buffers without
|
|
2060
|
+
* timestamps. Must be set before creating a stream transmitter.
|
|
2061
|
+
*/
|
|
2062
|
+
doTimestamp: boolean
|
|
1940
2063
|
/**
|
|
1941
2064
|
* A network source #GstElement to be used by the #FsSession
|
|
1942
2065
|
* These element's sink must have async=FALSE
|
|
@@ -1946,6 +2069,15 @@ export interface Transmitter {
|
|
|
1946
2069
|
* These pads MUST be static pads.
|
|
1947
2070
|
*/
|
|
1948
2071
|
readonly gst_sink: Gst.Element
|
|
2072
|
+
/**
|
|
2073
|
+
* A network source #GstElement to be used by the #FsSession
|
|
2074
|
+
* These element's sink must have async=FALSE
|
|
2075
|
+
* This element MUST provide a pad named "sink_\%u" per component.
|
|
2076
|
+
* These pads number must start at 1 (the \%u corresponds to the component
|
|
2077
|
+
* number).
|
|
2078
|
+
* These pads MUST be static pads.
|
|
2079
|
+
*/
|
|
2080
|
+
readonly gstSink: Gst.Element
|
|
1949
2081
|
/**
|
|
1950
2082
|
* A network source #GstElement to be used by the #FsSession
|
|
1951
2083
|
* This element MUST provide a source pad named "src_%u" per component.
|
|
@@ -1954,6 +2086,14 @@ export interface Transmitter {
|
|
|
1954
2086
|
* These pads MUST be static pads.
|
|
1955
2087
|
*/
|
|
1956
2088
|
readonly gst_src: Gst.Element
|
|
2089
|
+
/**
|
|
2090
|
+
* A network source #GstElement to be used by the #FsSession
|
|
2091
|
+
* This element MUST provide a source pad named "src_%u" per component.
|
|
2092
|
+
* These pads number must start at 1 (the %u corresponds to the component
|
|
2093
|
+
* number).
|
|
2094
|
+
* These pads MUST be static pads.
|
|
2095
|
+
*/
|
|
2096
|
+
readonly gstSrc: Gst.Element
|
|
1957
2097
|
/**
|
|
1958
2098
|
* Sets the IP ToS field (and if possible the IPv6 TCLASS field
|
|
1959
2099
|
*/
|
package/farstream-0.2.d.ts
CHANGED
|
@@ -858,6 +858,11 @@ module Session {
|
|
|
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
|
|
861
866
|
}
|
|
862
867
|
|
|
863
868
|
}
|
|
@@ -872,12 +877,24 @@ interface Session {
|
|
|
872
877
|
* accepted those caps as input.
|
|
873
878
|
*/
|
|
874
879
|
readonly allowed_sink_caps: Gst.Caps
|
|
880
|
+
/**
|
|
881
|
+
* These are the #GstCaps that can be fed into the session,
|
|
882
|
+
* they are used to filter the codecs to only those that can
|
|
883
|
+
* accepted those caps as input.
|
|
884
|
+
*/
|
|
885
|
+
readonly allowedSinkCaps: Gst.Caps
|
|
875
886
|
/**
|
|
876
887
|
* These are the #GstCaps that the session can produce,
|
|
877
888
|
* they are used to filter the codecs to only those that can
|
|
878
889
|
* accepted those caps as output.
|
|
879
890
|
*/
|
|
880
891
|
readonly allowed_src_caps: Gst.Caps
|
|
892
|
+
/**
|
|
893
|
+
* These are the #GstCaps that the session can produce,
|
|
894
|
+
* they are used to filter the codecs to only those that can
|
|
895
|
+
* accepted those caps as output.
|
|
896
|
+
*/
|
|
897
|
+
readonly allowedSrcCaps: Gst.Caps
|
|
881
898
|
/**
|
|
882
899
|
* This is the current preferences list for the local codecs. It is
|
|
883
900
|
* set by the user to specify the codec options and priorities. The user may
|
|
@@ -891,6 +908,19 @@ interface Session {
|
|
|
891
908
|
* dynamically assigned payload type.
|
|
892
909
|
*/
|
|
893
910
|
readonly codec_preferences: Codec[]
|
|
911
|
+
/**
|
|
912
|
+
* This is the current preferences list for the local codecs. It is
|
|
913
|
+
* set by the user to specify the codec options and priorities. The user may
|
|
914
|
+
* change its value with fs_session_set_codec_preferences() at any time
|
|
915
|
+
* during a session. It is a #GList of #FsCodec.
|
|
916
|
+
* The user must free this codec list using fs_codec_list_destroy() when done.
|
|
917
|
+
*
|
|
918
|
+
* The payload type may be a valid dynamic PT (96-127), %FS_CODEC_ID_DISABLE
|
|
919
|
+
* or %FS_CODEC_ID_ANY. If the encoding name is "reserve-pt", then the
|
|
920
|
+
* payload type of the codec will be "reserved" and not be used by any
|
|
921
|
+
* dynamically assigned payload type.
|
|
922
|
+
*/
|
|
923
|
+
readonly codecPreferences: Codec[]
|
|
894
924
|
/**
|
|
895
925
|
* This is the list of codecs used for this session. It will include the
|
|
896
926
|
* codecs and payload type used to receive media on this session. It will
|
|
@@ -930,6 +960,25 @@ interface Session {
|
|
|
930
960
|
* fs_codec_list_destroy() when done.
|
|
931
961
|
*/
|
|
932
962
|
readonly codecs_without_config: Codec[]
|
|
963
|
+
/**
|
|
964
|
+
* This is the same list of codecs as #FsSession:codecs without
|
|
965
|
+
* the configuration information that describes the data sent. It is suitable
|
|
966
|
+
* for configurations where a list of codecs is shared by many senders.
|
|
967
|
+
* If one is using codecs such as Theora, Vorbis or H.264 that require
|
|
968
|
+
* such information to be transmitted, the configuration data should be
|
|
969
|
+
* included in the stream and retransmitted regularly.
|
|
970
|
+
*
|
|
971
|
+
* It may change when the codec preferences are set, when codecs are set
|
|
972
|
+
* on a #FsStream in this session, when a #FsStream is destroyed or
|
|
973
|
+
* asynchronously when new config data is discovered.
|
|
974
|
+
*
|
|
975
|
+
* The "farstream-codecs-changed" message will be emitted whenever the value
|
|
976
|
+
* of this property changes.
|
|
977
|
+
*
|
|
978
|
+
* It is a #GList of #FsCodec. User must free this codec list using
|
|
979
|
+
* fs_codec_list_destroy() when done.
|
|
980
|
+
*/
|
|
981
|
+
readonly codecsWithoutConfig: Codec[]
|
|
933
982
|
/**
|
|
934
983
|
* The #FsConference parent of this session. This property is a
|
|
935
984
|
* construct param and is read-only.
|
|
@@ -944,10 +993,23 @@ interface Session {
|
|
|
944
993
|
* the value of this property changes.
|
|
945
994
|
*/
|
|
946
995
|
readonly current_send_codec: Codec
|
|
996
|
+
/**
|
|
997
|
+
* Indicates the currently active send codec. A user can change the active
|
|
998
|
+
* send codec by calling fs_session_set_send_codec(). The send codec could
|
|
999
|
+
* also be automatically changed by Farstream. This property is an
|
|
1000
|
+
* #FsCodec. User must free the codec using fs_codec_destroy() when done.
|
|
1001
|
+
* The "farstream-send-codec-changed" message is emitted on the bus when
|
|
1002
|
+
* the value of this property changes.
|
|
1003
|
+
*/
|
|
1004
|
+
readonly currentSendCodec: Codec
|
|
947
1005
|
/**
|
|
948
1006
|
* Retrieves previously set encryption parameters
|
|
949
1007
|
*/
|
|
950
1008
|
readonly encryption_parameters: Gst.Structure
|
|
1009
|
+
/**
|
|
1010
|
+
* Retrieves previously set encryption parameters
|
|
1011
|
+
*/
|
|
1012
|
+
readonly encryptionParameters: Gst.Structure
|
|
951
1013
|
/**
|
|
952
1014
|
* The ID of the session, the first number of the pads linked to this session
|
|
953
1015
|
* will be this id
|
|
@@ -958,11 +1020,21 @@ interface Session {
|
|
|
958
1020
|
* This is a constructor parameter that cannot be changed.
|
|
959
1021
|
*/
|
|
960
1022
|
readonly media_type: MediaType
|
|
1023
|
+
/**
|
|
1024
|
+
* The media-type of the session. This is either Audio, Video or both.
|
|
1025
|
+
* This is a constructor parameter that cannot be changed.
|
|
1026
|
+
*/
|
|
1027
|
+
readonly mediaType: MediaType
|
|
961
1028
|
/**
|
|
962
1029
|
* The Gstreamer sink pad that must be used to send media data on this
|
|
963
1030
|
* session. User must unref this GstPad when done with it.
|
|
964
1031
|
*/
|
|
965
1032
|
readonly sink_pad: Gst.Pad
|
|
1033
|
+
/**
|
|
1034
|
+
* The Gstreamer sink pad that must be used to send media data on this
|
|
1035
|
+
* session. User must unref this GstPad when done with it.
|
|
1036
|
+
*/
|
|
1037
|
+
readonly sinkPad: Gst.Pad
|
|
966
1038
|
/**
|
|
967
1039
|
* Sets the IP ToS field (and if possible the IPv6 TCLASS field
|
|
968
1040
|
*/
|
|
@@ -1372,10 +1444,25 @@ interface Stream {
|
|
|
1372
1444
|
* will come to it is different.
|
|
1373
1445
|
*/
|
|
1374
1446
|
readonly current_recv_codecs: Codec[]
|
|
1447
|
+
/**
|
|
1448
|
+
* This is the list of codecs that have been received by this stream.
|
|
1449
|
+
* The user must free the list if fs_codec_list_destroy().
|
|
1450
|
+
* The "farstream-recv-codecs-changed" message is send on the #GstBus
|
|
1451
|
+
* when the value of this property changes.
|
|
1452
|
+
* It is normally emitted right after #FsStream::src-pad-added
|
|
1453
|
+
* only if that codec was not previously received in this stream, but it can
|
|
1454
|
+
* also be emitted if the pad already exists, but the source material that
|
|
1455
|
+
* will come to it is different.
|
|
1456
|
+
*/
|
|
1457
|
+
readonly currentRecvCodecs: Codec[]
|
|
1375
1458
|
/**
|
|
1376
1459
|
* Retrieves previously set decryption parameters
|
|
1377
1460
|
*/
|
|
1378
1461
|
readonly decryption_parameters: Gst.Structure
|
|
1462
|
+
/**
|
|
1463
|
+
* Retrieves previously set decryption parameters
|
|
1464
|
+
*/
|
|
1465
|
+
readonly decryptionParameters: Gst.Structure
|
|
1379
1466
|
/**
|
|
1380
1467
|
* The direction of the stream. This property is set initially as a parameter
|
|
1381
1468
|
* to the fs_session_new_stream() function. It can be changed later if
|
|
@@ -1390,6 +1477,14 @@ interface Stream {
|
|
|
1390
1477
|
* It is a #GList of #FsCodec.
|
|
1391
1478
|
*/
|
|
1392
1479
|
readonly negotiated_codecs: Codec[]
|
|
1480
|
+
/**
|
|
1481
|
+
* This is the list of negotiatied codecs, it is the same list as the list
|
|
1482
|
+
* of #FsCodec from the parent #FsSession, except that the codec config data
|
|
1483
|
+
* has been replaced with the data from the remote codecs for this stream.
|
|
1484
|
+
* This is the list of #FsCodec used to receive data from this stream.
|
|
1485
|
+
* It is a #GList of #FsCodec.
|
|
1486
|
+
*/
|
|
1487
|
+
readonly negotiatedCodecs: Codec[]
|
|
1393
1488
|
/**
|
|
1394
1489
|
* The #FsParticipant for this stream. This property is a construct param and
|
|
1395
1490
|
* is read-only construction.
|
|
@@ -1401,6 +1496,12 @@ interface Stream {
|
|
|
1401
1496
|
* (generally through external signaling). It is a #GList of #FsCodec.
|
|
1402
1497
|
*/
|
|
1403
1498
|
readonly remote_codecs: Codec[]
|
|
1499
|
+
/**
|
|
1500
|
+
* This is the list of remote codecs for this stream. They must be set by the
|
|
1501
|
+
* user as soon as they are known using fs_stream_set_remote_codecs()
|
|
1502
|
+
* (generally through external signaling). It is a #GList of #FsCodec.
|
|
1503
|
+
*/
|
|
1504
|
+
readonly remoteCodecs: Codec[]
|
|
1404
1505
|
/**
|
|
1405
1506
|
* The #FsSession for this stream. This property is a construct param and
|
|
1406
1507
|
* is read-only construction.
|
|
@@ -1744,6 +1845,12 @@ module StreamTransmitter {
|
|
|
1744
1845
|
* A network source #GstElement to be used by the #FsSession
|
|
1745
1846
|
*/
|
|
1746
1847
|
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
|
|
1747
1854
|
}
|
|
1748
1855
|
|
|
1749
1856
|
}
|
|
@@ -1757,7 +1864,13 @@ interface StreamTransmitter {
|
|
|
1757
1864
|
* based on the source without looking at the content if possible.
|
|
1758
1865
|
*/
|
|
1759
1866
|
readonly associate_on_source: boolean
|
|
1867
|
+
/**
|
|
1868
|
+
* This tells the stream transmitter to associate incoming data with this
|
|
1869
|
+
* based on the source without looking at the content if possible.
|
|
1870
|
+
*/
|
|
1871
|
+
readonly associateOnSource: boolean
|
|
1760
1872
|
readonly preferred_local_candidates: any
|
|
1873
|
+
readonly preferredLocalCandidates: any
|
|
1761
1874
|
/**
|
|
1762
1875
|
* A network source #GstElement to be used by the #FsSession
|
|
1763
1876
|
*/
|
|
@@ -1922,6 +2035,11 @@ module Transmitter {
|
|
|
1922
2035
|
* Sets the IP ToS field (and if possible the IPv6 TCLASS field
|
|
1923
2036
|
*/
|
|
1924
2037
|
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
|
|
1925
2043
|
}
|
|
1926
2044
|
|
|
1927
2045
|
}
|
|
@@ -1939,6 +2057,11 @@ interface Transmitter {
|
|
|
1939
2057
|
* timestamps. Must be set before creating a stream transmitter.
|
|
1940
2058
|
*/
|
|
1941
2059
|
do_timestamp: boolean
|
|
2060
|
+
/**
|
|
2061
|
+
* Apply current stream time to buffers or provide buffers without
|
|
2062
|
+
* timestamps. Must be set before creating a stream transmitter.
|
|
2063
|
+
*/
|
|
2064
|
+
doTimestamp: boolean
|
|
1942
2065
|
/**
|
|
1943
2066
|
* A network source #GstElement to be used by the #FsSession
|
|
1944
2067
|
* These element's sink must have async=FALSE
|
|
@@ -1948,6 +2071,15 @@ interface Transmitter {
|
|
|
1948
2071
|
* These pads MUST be static pads.
|
|
1949
2072
|
*/
|
|
1950
2073
|
readonly gst_sink: Gst.Element
|
|
2074
|
+
/**
|
|
2075
|
+
* A network source #GstElement to be used by the #FsSession
|
|
2076
|
+
* These element's sink must have async=FALSE
|
|
2077
|
+
* This element MUST provide a pad named "sink_\%u" per component.
|
|
2078
|
+
* These pads number must start at 1 (the \%u corresponds to the component
|
|
2079
|
+
* number).
|
|
2080
|
+
* These pads MUST be static pads.
|
|
2081
|
+
*/
|
|
2082
|
+
readonly gstSink: Gst.Element
|
|
1951
2083
|
/**
|
|
1952
2084
|
* A network source #GstElement to be used by the #FsSession
|
|
1953
2085
|
* This element MUST provide a source pad named "src_%u" per component.
|
|
@@ -1956,6 +2088,14 @@ interface Transmitter {
|
|
|
1956
2088
|
* These pads MUST be static pads.
|
|
1957
2089
|
*/
|
|
1958
2090
|
readonly gst_src: Gst.Element
|
|
2091
|
+
/**
|
|
2092
|
+
* A network source #GstElement to be used by the #FsSession
|
|
2093
|
+
* This element MUST provide a source pad named "src_%u" per component.
|
|
2094
|
+
* These pads number must start at 1 (the %u corresponds to the component
|
|
2095
|
+
* number).
|
|
2096
|
+
* These pads MUST be static pads.
|
|
2097
|
+
*/
|
|
2098
|
+
readonly gstSrc: Gst.Element
|
|
1959
2099
|
/**
|
|
1960
2100
|
* Sets the IP ToS field (and if possible the IPv6 TCLASS field
|
|
1961
2101
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girs/farstream-0.2",
|
|
3
|
-
"version": "0.2.0-3.2.
|
|
3
|
+
"version": "0.2.0-3.2.6",
|
|
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.
|
|
29
|
-
"@girs/glib-2.0": "^2.78.0-3.2.
|
|
30
|
-
"@girs/gmodule-2.0": "^2.0.0-3.2.
|
|
31
|
-
"@girs/gobject-2.0": "^2.78.0-3.2.
|
|
32
|
-
"@girs/gst-1.0": "^1.23.0-3.2.
|
|
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"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"typescript": "*"
|