Skip to content

Commit c39bdbc

Browse files
authored
DEVX-6823/DEVX-7080/DEVX-6829/DEVX-6830: Broadcast and Dial updates (#266)
* DEVX-6823: updating comments for Sip#dial * DEVX-7080: adding hasAudio & hasVideo to Broadcast * DEVX-6829: adding maxBitRate property to Broadcast * DEVX-6830: adding hlsStatus to Broadcast * Bumping patch version * Updating changelog
1 parent bad4a19 commit c39bdbc

File tree

5 files changed

+40
-11
lines changed

5 files changed

+40
-11
lines changed

CHANGES.md

+4
Original file line numberDiff line numberDiff line change
@@ -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+
15
# 4.7.0
26

37
* Adds support for the End-to-end encryption (E2EE) feature [#259](https://github.com/opentok/OpenTok-Ruby-SDK/pull/259)

lib/opentok/broadcast.rb

+15
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ module OpenTok
1919
# @attr [int] updated_at
2020
# For this start method, this timestamp matches the createdAt timestamp.
2121
#
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+
#
2231
# @attr [string] resolution
2332
# The resolution of the broadcast: either "640x480" (SD landscape, the default), "1280x720" (HD landscape),
2433
# "1920x1080" (FHD landscape), "480x640" (SD portrait), "720x1280" (HD portrait), or "1080x1920" (FHD portrait).
@@ -33,6 +42,12 @@ module OpenTok
3342
# You can include HLS, RTMP, or both as broadcast streams. If you include RTMP streaming,
3443
# you can specify up to five target RTMP streams (or just one).
3544
# 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.
3651
# The (<code>:rtmp</code>) property is set to an [Array] of Rtmp [Hash] properties.
3752
# For each RTMP stream, specify (<code>:serverUrl</code>) for the RTMP server URL,
3853
# (<code>:streamName</code>) such as the YouTube Live stream name or the Facebook stream key),

lib/opentok/broadcasts.rb

+12-4
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,16 @@ def initialize(client)
3737
# If you do not specify an initial layout type, the broadcast uses the best fit
3838
# layout type.
3939
#
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}.
4444
# {https://tokbox.com/developer/guides/broadcast/live-streaming#simultaneous-broadcasts See Simultaneous broadcasts}.
4545
#
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+
#
4650
# @option options [int] maxDuration
4751
# The maximum duration for the broadcast, in seconds. The broadcast will automatically stop when
4852
# 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 @@ def initialize(client)
9599
# on {https://tokbox.com/developer/guides/archive-broadcast-layout/#stream-prioritization-rules stream prioritization rules}.
96100
# Important: this feature is currently available in the Standard environment only.
97101
#
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+
#
98106
# @return [Broadcast] The broadcast object, which includes properties defining the broadcast,
99107
# including the broadcast ID.
100108
#

lib/opentok/sip.rb

+8-6
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,15 @@ class Sip
3838
# @option opts [true, false] :secure Whether the media must be transmitted
3939
# encrypted (​true​) or not (​false​, the default).
4040
# @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.
4545
# @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.
4850
def dial(session_id, token, sip_uri, opts)
4951
response = @client.dial(session_id, token, sip_uri, opts)
5052
end

lib/opentok/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module OpenTok
22
# @private
3-
VERSION = '4.7.0'
3+
VERSION = '4.7.1'
44
end

0 commit comments

Comments
 (0)