opentok 4.7.0 → 4.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/lib/opentok/broadcast.rb +15 -0
- data/lib/opentok/broadcasts.rb +12 -4
- data/lib/opentok/sip.rb +8 -6
- data/lib/opentok/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79b0b3d6e3be3dd4a73ec63d8f2be58973c2db372bd1fe56257c6a990b66b544
|
4
|
+
data.tar.gz: 7a468b0466b4aa3dce26a543667e1491add67df02fe0a78de4fb437ebd0d5b0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e5ecc34657bb50eaf4da9951a205b12c23fd4379c6c3e2fc484fab2f2911c622ff85221412dd2aa774605bdda737966d561d6ada4b49816fbb21e687abfb22b
|
7
|
+
data.tar.gz: 5888fdc7ab677937f3e17e7c5cb293fdccaff970f75099a7900ef4b75bc12916bd843460247f2426e2345122537b23f8bb5c3955e567f1ad94d0f4dc3a757f8c
|
data/CHANGES.md
CHANGED
data/lib/opentok/broadcast.rb
CHANGED
@@ -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),
|
data/lib/opentok/broadcasts.rb
CHANGED
@@ -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
|
-
#
|
42
|
-
#
|
43
|
-
#
|
44
|
-
#
|
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
|
-
#
|
47
|
-
#
|
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
|
data/lib/opentok/version.rb
CHANGED
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.
|
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-
|
15
|
+
date: 2023-08-17 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: bundler
|