opentok 4.7.0 → 4.7.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '019bb7945d8571c4805cab88854fd49914fac7fbb7169b2b1351fa393237ea46'
4
- data.tar.gz: 9f167173216875bbc1b52bd2239c7fff7e9ff49c4aa92c28e6541d9fb178782d
3
+ metadata.gz: 79b0b3d6e3be3dd4a73ec63d8f2be58973c2db372bd1fe56257c6a990b66b544
4
+ data.tar.gz: 7a468b0466b4aa3dce26a543667e1491add67df02fe0a78de4fb437ebd0d5b0b
5
5
  SHA512:
6
- metadata.gz: e24be36a973fd9fe2ed63a620dbff3f0cb2fa24939318fd0f353a76374c8c09e4e46c8c920e223015c6b536dfbeddc2d94e75909f6cc3fbb54e6b39f85077402
7
- data.tar.gz: 29b06c9529e61f19208d0c875ddf0caba12652afaaa4f87f59760a3c664a69b6a1686f200f1793a730b8518ec1d2f99cbd0ea7a29ee7ab2c5bcc7d42cb2b2af6
6
+ metadata.gz: 5e5ecc34657bb50eaf4da9951a205b12c23fd4379c6c3e2fc484fab2f2911c622ff85221412dd2aa774605bdda737966d561d6ada4b49816fbb21e687abfb22b
7
+ data.tar.gz: 5888fdc7ab677937f3e17e7c5cb293fdccaff970f75099a7900ef4b75bc12916bd843460247f2426e2345122537b23f8bb5c3955e567f1ad94d0f4dc3a757f8c
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 4.7.1
2
+
3
+ * Updates docs comments for `Broadcasts` and `Sip` [#266](https://github.com/opentok/OpenTok-Ruby-SDK/pull/266)
4
+
1
5
  # 4.7.0
2
6
 
3
7
  * Adds support for the End-to-end encryption (E2EE) feature [#259](https://github.com/opentok/OpenTok-Ruby-SDK/pull/259)
@@ -19,6 +19,15 @@ module OpenTok
19
19
  # @attr [int] updated_at
20
20
  # For this start method, this timestamp matches the createdAt timestamp.
21
21
  #
22
+ # @attr [int] maxBitRate
23
+ # The maximum bitrate for the broadcast stream(s), in bits per second.
24
+ #
25
+ # @attr [boolean] hasAudio
26
+ # The broadcast has audio enabled
27
+ #
28
+ # @attr [boolean] hasVideo
29
+ # The broadcast has video enabled
30
+ #
22
31
  # @attr [string] resolution
23
32
  # The resolution of the broadcast: either "640x480" (SD landscape, the default), "1280x720" (HD landscape),
24
33
  # "1920x1080" (FHD landscape), "480x640" (SD portrait), "720x1280" (HD portrait), or "1080x1920" (FHD portrait).
@@ -33,6 +42,12 @@ module OpenTok
33
42
  # You can include HLS, RTMP, or both as broadcast streams. If you include RTMP streaming,
34
43
  # you can specify up to five target RTMP streams (or just one).
35
44
  # The (<code>:hls</code>) property is set to an empty [Hash] object. The HLS URL is returned in the response.
45
+ # The `hlsStatus` property is set to one of the following:
46
+ # - "connecting" — The OpenTok server is in the process of starting transcoders. This is the initial state.
47
+ # - "ready" — The OpenTok server has succesfully initialized but the CDN is not consuming media.
48
+ # - "live" — The OpenTok server has succesfully initialized and the CDN is consuming media.
49
+ # - "ended" — The source stream has ended. If DVR is enabled and pre-recorded media is requested, then the status will transition to "live".
50
+ # - "error" — There is an error in the OpenTok platform.
36
51
  # The (<code>:rtmp</code>) property is set to an [Array] of Rtmp [Hash] properties.
37
52
  # For each RTMP stream, specify (<code>:serverUrl</code>) for the RTMP server URL,
38
53
  # (<code>:streamName</code>) such as the YouTube Live stream name or the Facebook stream key),
@@ -37,12 +37,16 @@ module OpenTok
37
37
  # If you do not specify an initial layout type, the broadcast uses the best fit
38
38
  # layout type.
39
39
  #
40
- # @option options [String] :multiBroadcastTag (Optional) Set this to support multiple broadcasts for the same session simultaneously.
41
- # Set this to a unique string for each simultaneous broadcast of an ongoing session. Note that the `multiBroadcastTag` value is *not* included
42
- # in the response for the methods to {https://tokbox.com/developer/rest/#list_broadcasts list live streaming broadcasts} and
43
- # {https://tokbox.com/developer/rest/#get_info_broadcast get information about a live streaming broadcast}.
40
+ # @option options [String] :multiBroadcastTag (Optional) Set this to support multiple broadcasts for the same session simultaneously.
41
+ # Set this to a unique string for each simultaneous broadcast of an ongoing session. Note that the `multiBroadcastTag` value is *not* included
42
+ # in the response for the methods to {https://tokbox.com/developer/rest/#list_broadcasts list live streaming broadcasts} and
43
+ # {https://tokbox.com/developer/rest/#get_info_broadcast get information about a live streaming broadcast}.
44
44
  # {https://tokbox.com/developer/guides/broadcast/live-streaming#simultaneous-broadcasts See Simultaneous broadcasts}.
45
45
  #
46
+ # @option options [int] maxBitRate
47
+ # The maximum bitrate for the broadcast stream(s), in bits per second.
48
+ # The minimum value is 100,000 and the maximum is 6,000,000.
49
+ #
46
50
  # @option options [int] maxDuration
47
51
  # The maximum duration for the broadcast, in seconds. The broadcast will automatically stop when
48
52
  # the maximum duration is reached. You can set the maximum duration to a value from 60 (60 seconds) to 36000 (10 hours).
@@ -95,6 +99,10 @@ module OpenTok
95
99
  # on {https://tokbox.com/developer/guides/archive-broadcast-layout/#stream-prioritization-rules stream prioritization rules}.
96
100
  # Important: this feature is currently available in the Standard environment only.
97
101
  #
102
+ # @option options [Boolean] :hasAudio Whether the broadcast has audio (default `true`)
103
+ #
104
+ # @option options [Boolean] :hasVideo Whether the broadcast has video (default `true`)
105
+ #
98
106
  # @return [Broadcast] The broadcast object, which includes properties defining the broadcast,
99
107
  # including the broadcast ID.
100
108
  #
data/lib/opentok/sip.rb CHANGED
@@ -38,13 +38,15 @@ module OpenTok
38
38
  # @option opts [true, false] :secure Whether the media must be transmitted
39
39
  # encrypted (​true​) or not (​false​, the default).
40
40
  # @option opts [true, false] :video Whether the SIP call will include
41
- # video (​true​) or not (​false​, the default). With video included, the SIP
42
- # client's video is included in the OpenTok stream that is sent to the
43
- # OpenTok session. The SIP client will receive a single composed video of
44
- # the published streams in the OpenTok session.
41
+ # video (​true​) or not (​false​, the default). With video included, the SIP
42
+ # client's video is included in the OpenTok stream that is sent to the
43
+ # OpenTok session. The SIP client will receive a single composed video of
44
+ # the published streams in the OpenTok session.
45
45
  # @option opts [true, false] :observe_force_mute Whether the SIP end point
46
- # observes {https://tokbox.com/developer/guides/moderation/#force_mute force mute moderation}
47
- # (true) or not (false, the default).
46
+ # observes {https://tokbox.com/developer/guides/moderation/#force_mute force mute moderation}
47
+ # (true) or not (false, the default).
48
+ # @option opts [Array] :streams An array of stream IDs for streams to include in the SIP call.
49
+ # If you do not set this property, all streams in the session are included in the call.
48
50
  def dial(session_id, token, sip_uri, opts)
49
51
  response = @client.dial(session_id, token, sip_uri, opts)
50
52
  end
@@ -1,4 +1,4 @@
1
1
  module OpenTok
2
2
  # @private
3
- VERSION = '4.7.0'
3
+ VERSION = '4.7.1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentok
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.7.0
4
+ version: 4.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stijn Mathysen
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2023-06-20 00:00:00.000000000 Z
15
+ date: 2023-08-17 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bundler