@girs/farstream-0.1 0.1.0-3.2.5 → 0.1.0-3.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/farstream-0.1)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for Farstream-0.1, generated from library version 0.1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.5.
8
+ GJS TypeScript type definitions for Farstream-0.1, generated from library version 0.1.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
9
9
 
10
10
 
11
11
  ## Install
@@ -123,10 +123,10 @@ export enum StreamDirection {
123
123
  RECV,
124
124
  BOTH,
125
125
  }
126
- export const CODEC_FORMAT: string | null
126
+ export const CODEC_FORMAT: string
127
127
  export const CODEC_ID_ANY: number
128
128
  export const CODEC_ID_DISABLE: number
129
- export const RTP_HEADER_EXTENSION_FORMAT: string | null
129
+ export const RTP_HEADER_EXTENSION_FORMAT: string
130
130
  /**
131
131
  * Copies a GList of #FsCandidate and its contents
132
132
  * @param candidate_list A GList of #FsCandidate
@@ -593,6 +593,11 @@ export module Session {
593
593
  * Sets the IP ToS field (and if possible the IPv6 TCLASS field
594
594
  */
595
595
  tos?: number | null
596
+ /**
597
+ * The media-type of the session. This is either Audio, Video or both.
598
+ * This is a constructor parameter that cannot be changed.
599
+ */
600
+ mediaType?: MediaType | null
596
601
  }
597
602
 
598
603
  }
@@ -614,6 +619,19 @@ export interface Session {
614
619
  * dynamically assigned payload type.
615
620
  */
616
621
  readonly codec_preferences: Codec[]
622
+ /**
623
+ * This is the current preferences list for the local codecs. It is
624
+ * set by the user to specify the codec options and priorities. The user may
625
+ * change its value with fs_session_set_codec_preferences() at any time
626
+ * during a session. It is a #GList of #FsCodec.
627
+ * The user must free this codec list using fs_codec_list_destroy() when done.
628
+ *
629
+ * The payload type may be a valid dynamic PT (96-127), %FS_CODEC_ID_DISABLE
630
+ * or %FS_CODEC_ID_ANY. If the encoding name is "reserve-pt", then the
631
+ * payload type of the codec will be "reserved" and not be used by any
632
+ * dynamically assigned payload type.
633
+ */
634
+ readonly codecPreferences: Codec[]
617
635
  /**
618
636
  * This is the list of codecs used for this session. It will include the
619
637
  * codecs and payload type used to receive media on this session. It will
@@ -653,6 +671,25 @@ export interface Session {
653
671
  * fs_codec_list_destroy() when done.
654
672
  */
655
673
  readonly codecs_without_config: Codec[]
674
+ /**
675
+ * This is the same list of codecs as #FsSession:codecs without
676
+ * the configuration information that describes the data sent. It is suitable
677
+ * for configurations where a list of codecs is shared by many senders.
678
+ * If one is using codecs such as Theora, Vorbis or H.264 that require
679
+ * such information to be transmitted, the configuration data should be
680
+ * included in the stream and retransmitted regularly.
681
+ *
682
+ * It may change when the codec preferences are set, when codecs are set
683
+ * on a #FsStream in this session, when a #FsStream is destroyed or
684
+ * asynchronously when new config data is discovered.
685
+ *
686
+ * The "farstream-codecs-changed" message will be emitted whenever the value
687
+ * of this property changes.
688
+ *
689
+ * It is a #GList of #FsCodec. User must free this codec list using
690
+ * fs_codec_list_destroy() when done.
691
+ */
692
+ readonly codecsWithoutConfig: Codec[]
656
693
  /**
657
694
  * The #FsConference parent of this session. This property is a
658
695
  * construct param and is read-only.
@@ -667,6 +704,15 @@ export interface Session {
667
704
  * the value of this property changes.
668
705
  */
669
706
  readonly current_send_codec: Codec
707
+ /**
708
+ * Indicates the currently active send codec. A user can change the active
709
+ * send codec by calling fs_session_set_send_codec(). The send codec could
710
+ * also be automatically changed by Farstream. This property is an
711
+ * #FsCodec. User must free the codec using fs_codec_destroy() when done.
712
+ * The "farstream-send-codec-changed" message is emitted on the bus when
713
+ * the value of this property changes.
714
+ */
715
+ readonly currentSendCodec: Codec
670
716
  /**
671
717
  * The ID of the session, the first number of the pads linked to this session
672
718
  * will be this id
@@ -677,11 +723,21 @@ export interface Session {
677
723
  * This is a constructor parameter that cannot be changed.
678
724
  */
679
725
  readonly media_type: MediaType
726
+ /**
727
+ * The media-type of the session. This is either Audio, Video or both.
728
+ * This is a constructor parameter that cannot be changed.
729
+ */
730
+ readonly mediaType: MediaType
680
731
  /**
681
732
  * The Gstreamer sink pad that must be used to send media data on this
682
733
  * session. User must unref this GstPad when done with it.
683
734
  */
684
735
  readonly sink_pad: Gst.Pad
736
+ /**
737
+ * The Gstreamer sink pad that must be used to send media data on this
738
+ * session. User must unref this GstPad when done with it.
739
+ */
740
+ readonly sinkPad: Gst.Pad
685
741
  /**
686
742
  * Sets the IP ToS field (and if possible the IPv6 TCLASS field
687
743
  */
@@ -1030,6 +1086,17 @@ export interface Stream {
1030
1086
  * will come to it is different.
1031
1087
  */
1032
1088
  readonly current_recv_codecs: Codec[]
1089
+ /**
1090
+ * This is the list of codecs that have been received by this stream.
1091
+ * The user must free the list if fs_codec_list_destroy().
1092
+ * The "farstream-recv-codecs-changed" message is send on the #GstBus
1093
+ * when the value of this property changes.
1094
+ * It is normally emitted right after #FsStream::src-pad-added
1095
+ * only if that codec was not previously received in this stream, but it can
1096
+ * also be emitted if the pad already exists, but the source material that
1097
+ * will come to it is different.
1098
+ */
1099
+ readonly currentRecvCodecs: Codec[]
1033
1100
  /**
1034
1101
  * The direction of the stream. This property is set initially as a parameter
1035
1102
  * to the fs_session_new_stream() function. It can be changed later if
@@ -1044,6 +1111,14 @@ export interface Stream {
1044
1111
  * It is a #GList of #FsCodec.
1045
1112
  */
1046
1113
  readonly negotiated_codecs: Codec[]
1114
+ /**
1115
+ * This is the list of negotiatied codecs, it is the same list as the list
1116
+ * of #FsCodec from the parent #FsSession, except that the codec config data
1117
+ * has been replaced with the data from the remote codecs for this stream.
1118
+ * This is the list of #FsCodec used to receive data from this stream.
1119
+ * It is a #GList of #FsCodec.
1120
+ */
1121
+ readonly negotiatedCodecs: Codec[]
1047
1122
  /**
1048
1123
  * The #FsParticipant for this stream. This property is a construct param and
1049
1124
  * is read-only construction.
@@ -1055,6 +1130,12 @@ export interface Stream {
1055
1130
  * (generally through external signaling). It is a #GList of #FsCodec.
1056
1131
  */
1057
1132
  readonly remote_codecs: Codec[]
1133
+ /**
1134
+ * This is the list of remote codecs for this stream. They must be set by the
1135
+ * user as soon as they are known using fs_stream_set_remote_codecs()
1136
+ * (generally through external signaling). It is a #GList of #FsCodec.
1137
+ */
1138
+ readonly remoteCodecs: Codec[]
1058
1139
  /**
1059
1140
  * The #FsSession for this stream. This property is a construct param and
1060
1141
  * is read-only construction.
@@ -1361,6 +1442,12 @@ export module StreamTransmitter {
1361
1442
  * A network source #GstElement to be used by the #FsSession
1362
1443
  */
1363
1444
  sending?: boolean | null
1445
+ /**
1446
+ * This tells the stream transmitter to associate incoming data with this
1447
+ * based on the source without looking at the content if possible.
1448
+ */
1449
+ associateOnSource?: boolean | null
1450
+ preferredLocalCandidates?: any | null
1364
1451
  }
1365
1452
 
1366
1453
  }
@@ -1374,7 +1461,13 @@ export interface StreamTransmitter {
1374
1461
  * based on the source without looking at the content if possible.
1375
1462
  */
1376
1463
  readonly associate_on_source: boolean
1464
+ /**
1465
+ * This tells the stream transmitter to associate incoming data with this
1466
+ * based on the source without looking at the content if possible.
1467
+ */
1468
+ readonly associateOnSource: boolean
1377
1469
  readonly preferred_local_candidates: any
1470
+ readonly preferredLocalCandidates: any
1378
1471
  /**
1379
1472
  * A network source #GstElement to be used by the #FsSession
1380
1473
  */
@@ -1562,6 +1655,15 @@ export interface Transmitter {
1562
1655
  * These pads MUST be static pads.
1563
1656
  */
1564
1657
  readonly gst_sink: Gst.Element
1658
+ /**
1659
+ * A network source #GstElement to be used by the #FsSession
1660
+ * These element's sink must have async=FALSE
1661
+ * This element MUST provide a pad named "sink\%d" per component.
1662
+ * These pads number must start at 1 (the \%d corresponds to the component
1663
+ * number).
1664
+ * These pads MUST be static pads.
1665
+ */
1666
+ readonly gstSink: Gst.Element
1565
1667
  /**
1566
1668
  * A network source #GstElement to be used by the #FsSession
1567
1669
  * This element MUST provide a source pad named "src%d" per component.
@@ -1570,6 +1672,14 @@ export interface Transmitter {
1570
1672
  * These pads MUST be static pads.
1571
1673
  */
1572
1674
  readonly gst_src: Gst.Element
1675
+ /**
1676
+ * A network source #GstElement to be used by the #FsSession
1677
+ * This element MUST provide a source pad named "src%d" per component.
1678
+ * These pads number must start at 1 (the %d corresponds to the component
1679
+ * number).
1680
+ * These pads MUST be static pads.
1681
+ */
1682
+ readonly gstSrc: Gst.Element
1573
1683
  /**
1574
1684
  * Sets the IP ToS field (and if possible the IPv6 TCLASS field
1575
1685
  */
@@ -125,10 +125,10 @@ enum StreamDirection {
125
125
  RECV,
126
126
  BOTH,
127
127
  }
128
- const CODEC_FORMAT: string | null
128
+ const CODEC_FORMAT: string
129
129
  const CODEC_ID_ANY: number
130
130
  const CODEC_ID_DISABLE: number
131
- const RTP_HEADER_EXTENSION_FORMAT: string | null
131
+ const RTP_HEADER_EXTENSION_FORMAT: string
132
132
  /**
133
133
  * Copies a GList of #FsCandidate and its contents
134
134
  * @param candidate_list A GList of #FsCandidate
@@ -595,6 +595,11 @@ module Session {
595
595
  * Sets the IP ToS field (and if possible the IPv6 TCLASS field
596
596
  */
597
597
  tos?: number | null
598
+ /**
599
+ * The media-type of the session. This is either Audio, Video or both.
600
+ * This is a constructor parameter that cannot be changed.
601
+ */
602
+ mediaType?: MediaType | null
598
603
  }
599
604
 
600
605
  }
@@ -616,6 +621,19 @@ interface Session {
616
621
  * dynamically assigned payload type.
617
622
  */
618
623
  readonly codec_preferences: Codec[]
624
+ /**
625
+ * This is the current preferences list for the local codecs. It is
626
+ * set by the user to specify the codec options and priorities. The user may
627
+ * change its value with fs_session_set_codec_preferences() at any time
628
+ * during a session. It is a #GList of #FsCodec.
629
+ * The user must free this codec list using fs_codec_list_destroy() when done.
630
+ *
631
+ * The payload type may be a valid dynamic PT (96-127), %FS_CODEC_ID_DISABLE
632
+ * or %FS_CODEC_ID_ANY. If the encoding name is "reserve-pt", then the
633
+ * payload type of the codec will be "reserved" and not be used by any
634
+ * dynamically assigned payload type.
635
+ */
636
+ readonly codecPreferences: Codec[]
619
637
  /**
620
638
  * This is the list of codecs used for this session. It will include the
621
639
  * codecs and payload type used to receive media on this session. It will
@@ -655,6 +673,25 @@ interface Session {
655
673
  * fs_codec_list_destroy() when done.
656
674
  */
657
675
  readonly codecs_without_config: Codec[]
676
+ /**
677
+ * This is the same list of codecs as #FsSession:codecs without
678
+ * the configuration information that describes the data sent. It is suitable
679
+ * for configurations where a list of codecs is shared by many senders.
680
+ * If one is using codecs such as Theora, Vorbis or H.264 that require
681
+ * such information to be transmitted, the configuration data should be
682
+ * included in the stream and retransmitted regularly.
683
+ *
684
+ * It may change when the codec preferences are set, when codecs are set
685
+ * on a #FsStream in this session, when a #FsStream is destroyed or
686
+ * asynchronously when new config data is discovered.
687
+ *
688
+ * The "farstream-codecs-changed" message will be emitted whenever the value
689
+ * of this property changes.
690
+ *
691
+ * It is a #GList of #FsCodec. User must free this codec list using
692
+ * fs_codec_list_destroy() when done.
693
+ */
694
+ readonly codecsWithoutConfig: Codec[]
658
695
  /**
659
696
  * The #FsConference parent of this session. This property is a
660
697
  * construct param and is read-only.
@@ -669,6 +706,15 @@ interface Session {
669
706
  * the value of this property changes.
670
707
  */
671
708
  readonly current_send_codec: Codec
709
+ /**
710
+ * Indicates the currently active send codec. A user can change the active
711
+ * send codec by calling fs_session_set_send_codec(). The send codec could
712
+ * also be automatically changed by Farstream. This property is an
713
+ * #FsCodec. User must free the codec using fs_codec_destroy() when done.
714
+ * The "farstream-send-codec-changed" message is emitted on the bus when
715
+ * the value of this property changes.
716
+ */
717
+ readonly currentSendCodec: Codec
672
718
  /**
673
719
  * The ID of the session, the first number of the pads linked to this session
674
720
  * will be this id
@@ -679,11 +725,21 @@ interface Session {
679
725
  * This is a constructor parameter that cannot be changed.
680
726
  */
681
727
  readonly media_type: MediaType
728
+ /**
729
+ * The media-type of the session. This is either Audio, Video or both.
730
+ * This is a constructor parameter that cannot be changed.
731
+ */
732
+ readonly mediaType: MediaType
682
733
  /**
683
734
  * The Gstreamer sink pad that must be used to send media data on this
684
735
  * session. User must unref this GstPad when done with it.
685
736
  */
686
737
  readonly sink_pad: Gst.Pad
738
+ /**
739
+ * The Gstreamer sink pad that must be used to send media data on this
740
+ * session. User must unref this GstPad when done with it.
741
+ */
742
+ readonly sinkPad: Gst.Pad
687
743
  /**
688
744
  * Sets the IP ToS field (and if possible the IPv6 TCLASS field
689
745
  */
@@ -1032,6 +1088,17 @@ interface Stream {
1032
1088
  * will come to it is different.
1033
1089
  */
1034
1090
  readonly current_recv_codecs: Codec[]
1091
+ /**
1092
+ * This is the list of codecs that have been received by this stream.
1093
+ * The user must free the list if fs_codec_list_destroy().
1094
+ * The "farstream-recv-codecs-changed" message is send on the #GstBus
1095
+ * when the value of this property changes.
1096
+ * It is normally emitted right after #FsStream::src-pad-added
1097
+ * only if that codec was not previously received in this stream, but it can
1098
+ * also be emitted if the pad already exists, but the source material that
1099
+ * will come to it is different.
1100
+ */
1101
+ readonly currentRecvCodecs: Codec[]
1035
1102
  /**
1036
1103
  * The direction of the stream. This property is set initially as a parameter
1037
1104
  * to the fs_session_new_stream() function. It can be changed later if
@@ -1046,6 +1113,14 @@ interface Stream {
1046
1113
  * It is a #GList of #FsCodec.
1047
1114
  */
1048
1115
  readonly negotiated_codecs: Codec[]
1116
+ /**
1117
+ * This is the list of negotiatied codecs, it is the same list as the list
1118
+ * of #FsCodec from the parent #FsSession, except that the codec config data
1119
+ * has been replaced with the data from the remote codecs for this stream.
1120
+ * This is the list of #FsCodec used to receive data from this stream.
1121
+ * It is a #GList of #FsCodec.
1122
+ */
1123
+ readonly negotiatedCodecs: Codec[]
1049
1124
  /**
1050
1125
  * The #FsParticipant for this stream. This property is a construct param and
1051
1126
  * is read-only construction.
@@ -1057,6 +1132,12 @@ interface Stream {
1057
1132
  * (generally through external signaling). It is a #GList of #FsCodec.
1058
1133
  */
1059
1134
  readonly remote_codecs: Codec[]
1135
+ /**
1136
+ * This is the list of remote codecs for this stream. They must be set by the
1137
+ * user as soon as they are known using fs_stream_set_remote_codecs()
1138
+ * (generally through external signaling). It is a #GList of #FsCodec.
1139
+ */
1140
+ readonly remoteCodecs: Codec[]
1060
1141
  /**
1061
1142
  * The #FsSession for this stream. This property is a construct param and
1062
1143
  * is read-only construction.
@@ -1363,6 +1444,12 @@ module StreamTransmitter {
1363
1444
  * A network source #GstElement to be used by the #FsSession
1364
1445
  */
1365
1446
  sending?: boolean | null
1447
+ /**
1448
+ * This tells the stream transmitter to associate incoming data with this
1449
+ * based on the source without looking at the content if possible.
1450
+ */
1451
+ associateOnSource?: boolean | null
1452
+ preferredLocalCandidates?: any | null
1366
1453
  }
1367
1454
 
1368
1455
  }
@@ -1376,7 +1463,13 @@ interface StreamTransmitter {
1376
1463
  * based on the source without looking at the content if possible.
1377
1464
  */
1378
1465
  readonly associate_on_source: boolean
1466
+ /**
1467
+ * This tells the stream transmitter to associate incoming data with this
1468
+ * based on the source without looking at the content if possible.
1469
+ */
1470
+ readonly associateOnSource: boolean
1379
1471
  readonly preferred_local_candidates: any
1472
+ readonly preferredLocalCandidates: any
1380
1473
  /**
1381
1474
  * A network source #GstElement to be used by the #FsSession
1382
1475
  */
@@ -1564,6 +1657,15 @@ interface Transmitter {
1564
1657
  * These pads MUST be static pads.
1565
1658
  */
1566
1659
  readonly gst_sink: Gst.Element
1660
+ /**
1661
+ * A network source #GstElement to be used by the #FsSession
1662
+ * These element's sink must have async=FALSE
1663
+ * This element MUST provide a pad named "sink\%d" per component.
1664
+ * These pads number must start at 1 (the \%d corresponds to the component
1665
+ * number).
1666
+ * These pads MUST be static pads.
1667
+ */
1668
+ readonly gstSink: Gst.Element
1567
1669
  /**
1568
1670
  * A network source #GstElement to be used by the #FsSession
1569
1671
  * This element MUST provide a source pad named "src%d" per component.
@@ -1572,6 +1674,14 @@ interface Transmitter {
1572
1674
  * These pads MUST be static pads.
1573
1675
  */
1574
1676
  readonly gst_src: Gst.Element
1677
+ /**
1678
+ * A network source #GstElement to be used by the #FsSession
1679
+ * This element MUST provide a source pad named "src%d" per component.
1680
+ * These pads number must start at 1 (the %d corresponds to the component
1681
+ * number).
1682
+ * These pads MUST be static pads.
1683
+ */
1684
+ readonly gstSrc: Gst.Element
1575
1685
  /**
1576
1686
  * Sets the IP ToS field (and if possible the IPv6 TCLASS field
1577
1687
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/farstream-0.1",
3
- "version": "0.1.0-3.2.5",
3
+ "version": "0.1.0-3.2.7",
4
4
  "description": "GJS TypeScript type definitions for Farstream-0.1, generated from library version 0.1.0",
5
5
  "type": "module",
6
6
  "module": "farstream-0.1.js",
@@ -25,12 +25,12 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit farstream-0.1.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/gjs": "^3.2.5",
29
- "@girs/glib-2.0": "^2.78.0-3.2.5",
30
- "@girs/gmodule-2.0": "^2.0.0-3.2.5",
31
- "@girs/gobject-2.0": "^2.78.0-3.2.5",
32
- "@girs/gst-0.10": "^0.10.29-3.2.5",
33
- "@girs/libxml2-2.0": "^2.0.0-3.2.5"
28
+ "@girs/gjs": "^3.2.7",
29
+ "@girs/glib-2.0": "^2.78.0-3.2.7",
30
+ "@girs/gmodule-2.0": "^2.0.0-3.2.7",
31
+ "@girs/gobject-2.0": "^2.78.0-3.2.7",
32
+ "@girs/gst-0.10": "^0.10.29-3.2.7",
33
+ "@girs/libxml2-2.0": "^2.0.0-3.2.7"
34
34
  },
35
35
  "devDependencies": {
36
36
  "typescript": "*"