opentok 2.4.0.beta.1 → 2.4.0
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 +7 -0
- data/.gitignore +1 -0
- data/.travis.yml +2 -1
- data/README.md +8 -11
- data/lib/opentok.rb +1 -1
- data/lib/opentok/archive.rb +2 -3
- data/lib/opentok/archives.rb +4 -2
- data/lib/opentok/client.rb +37 -12
- data/lib/opentok/constants.rb +1 -0
- data/lib/opentok/opentok.rb +1 -1
- data/lib/opentok/session.rb +1 -1
- data/lib/opentok/token_generator.rb +0 -9
- data/lib/opentok/version.rb +1 -1
- data/opentok.gemspec +3 -2
- data/sample/Archiving/public/js/host.js +18 -7
- data/sample/Archiving/public/js/participant.js +18 -7
- data/sample/Archiving/views/host.erb +1 -1
- data/sample/Archiving/views/participant.erb +1 -1
- data/sample/HelloWorld/public/js/helloworld.js +26 -6
- data/sample/HelloWorld/views/index.erb +1 -1
- data/spec/cassettes/OpenTok_Archives/should_create_archives.yml +3 -3
- data/spec/cassettes/OpenTok_Archives/should_create_audio_only_archives.yml +3 -3
- data/spec/cassettes/OpenTok_Archives/should_create_individual_archives.yml +3 -3
- data/spec/cassettes/OpenTok_Archives/should_create_named_archives.yml +3 -3
- data/spec/cassettes/OpenTok_Archives/should_delete_an_archive_by_id.yml +3 -3
- data/spec/cassettes/OpenTok_Archives/should_find_archives_by_id.yml +3 -3
- data/spec/cassettes/OpenTok_Archives/should_find_archives_with_unknown_properties.yml +3 -3
- data/spec/cassettes/OpenTok_Archives/should_find_expired_archives.yml +3 -3
- data/spec/cassettes/OpenTok_Archives/should_find_paused_archives_by_id.yml +3 -3
- data/spec/cassettes/OpenTok_Archives/should_stop_archives.yml +3 -3
- data/spec/cassettes/OpenTok_Archives/when_many_archives_are_created/should_return_all_archives.yml +3 -3
- data/spec/cassettes/OpenTok_Archives/when_many_archives_are_created/should_return_archives_with_an_offset.yml +4 -4
- data/spec/cassettes/OpenTok_Archives/when_many_archives_are_created/should_return_count_number_of_archives.yml +4 -4
- data/spec/cassettes/OpenTok_Archives/when_many_archives_are_created/should_return_part_of_the_archives_when_using_offset_and_count.yml +4 -4
- data/spec/cassettes/OpenTok_Archives/when_many_archives_are_created/should_return_session_archives.yml +71 -0
- data/spec/cassettes/OpenTok_OpenTok/when_initialized_properly/_create_session/creates_always_archived_sessions.yml +2 -2
- data/spec/cassettes/OpenTok_OpenTok/when_initialized_properly/_create_session/creates_default_sessions.yml +2 -2
- data/spec/cassettes/OpenTok_OpenTok/when_initialized_properly/_create_session/creates_relayed_media_sessions.yml +2 -2
- data/spec/cassettes/OpenTok_OpenTok/when_initialized_properly/_create_session/creates_relayed_media_sessions_for_invalid_media_modes.yml +2 -2
- data/spec/cassettes/OpenTok_OpenTok/when_initialized_properly/_create_session/creates_relayed_media_sessions_with_a_location_hint.yml +2 -2
- data/spec/cassettes/OpenTok_OpenTok/when_initialized_properly/_create_session/creates_routed_media_sessions.yml +2 -2
- data/spec/cassettes/OpenTok_OpenTok/when_initialized_properly/_create_session/creates_routed_media_sessions_with_a_location_hint.yml +2 -2
- data/spec/cassettes/OpenTok_OpenTok/when_initialized_properly/_create_session/creates_sessions_with_a_location_hint.yml +2 -2
- data/spec/cassettes/OpenTok_OpenTok/when_initialized_properly/with_an_addendum_to_the_user_agent_string/should_append_the_addendum_to_the_user_agent_header.yml +2 -2
- data/spec/matchers/token.rb +1 -2
- data/spec/opentok/archives_spec.rb +16 -0
- data/spec/opentok/opentok_spec.rb +5 -0
- data/spec/opentok/session_spec.rb +5 -0
- data/spec/shared/opentok_generates_tokens.rb +5 -25
- data/spec/shared/session_generates_tokens.rb +5 -0
- metadata +49 -84
- data/doc/OpenTok.html +0 -418
- data/doc/OpenTok/Archive.html +0 -1607
- data/doc/OpenTok/ArchiveList.html +0 -216
- data/doc/OpenTok/Archives.html +0 -1101
- data/doc/OpenTok/Client.html +0 -695
- data/doc/OpenTok/HashExtensions.html +0 -184
- data/doc/OpenTok/OpenTok.html +0 -1083
- data/doc/OpenTok/OpenTokArchiveError.html +0 -142
- data/doc/OpenTok/OpenTokAuthenticationError.html +0 -143
- data/doc/OpenTok/OpenTokError.html +0 -138
- data/doc/OpenTok/Session.html +0 -757
- data/doc/OpenTok/TokenGenerator.html +0 -204
- data/doc/OpenTok/TokenGenerator/ClassMethods.html +0 -187
- data/doc/README.md +0 -15
- data/doc/_index.html +0 -197
- data/doc/class_list.html +0 -58
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -57
- data/doc/css/style.css +0 -339
- data/doc/file.README.html +0 -87
- data/doc/file_list.html +0 -60
- data/doc/frames.html +0 -26
- data/doc/index.html +0 -87
- data/doc/js/app.js +0 -219
- data/doc/js/full_list.js +0 -181
- data/doc/js/jquery.js +0 -4
- data/doc/method_list.html +0 -261
- data/doc/top-level-namespace.html +0 -112
data/doc/OpenTok.html
DELETED
|
@@ -1,418 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
|
-
<head>
|
|
5
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
-
<title>
|
|
7
|
-
Module: OpenTok
|
|
8
|
-
|
|
9
|
-
— Documentation by YARD 0.8.7.6
|
|
10
|
-
|
|
11
|
-
</title>
|
|
12
|
-
|
|
13
|
-
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
|
14
|
-
|
|
15
|
-
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
|
16
|
-
|
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
|
18
|
-
hasFrames = window.top.frames.main ? true : false;
|
|
19
|
-
relpath = '';
|
|
20
|
-
framesUrl = "frames.html#!OpenTok.html";
|
|
21
|
-
</script>
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
|
25
|
-
|
|
26
|
-
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
</head>
|
|
30
|
-
<body>
|
|
31
|
-
<div id="header">
|
|
32
|
-
<div id="menu">
|
|
33
|
-
|
|
34
|
-
<a href="_index.html">Index (O)</a> »
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
<span class="title">OpenTok</span>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
|
41
|
-
</div>
|
|
42
|
-
|
|
43
|
-
<div id="search">
|
|
44
|
-
|
|
45
|
-
<a class="full_list_link" id="class_list_link"
|
|
46
|
-
href="class_list.html">
|
|
47
|
-
Class List
|
|
48
|
-
</a>
|
|
49
|
-
|
|
50
|
-
<a class="full_list_link" id="method_list_link"
|
|
51
|
-
href="method_list.html">
|
|
52
|
-
Method List
|
|
53
|
-
</a>
|
|
54
|
-
|
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
|
56
|
-
href="file_list.html">
|
|
57
|
-
File List
|
|
58
|
-
</a>
|
|
59
|
-
|
|
60
|
-
</div>
|
|
61
|
-
<div class="clear"></div>
|
|
62
|
-
</div>
|
|
63
|
-
|
|
64
|
-
<iframe id="search_frame"></iframe>
|
|
65
|
-
|
|
66
|
-
<div id="content"><h1>Module: OpenTok
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
</h1>
|
|
71
|
-
|
|
72
|
-
<dl class="box">
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
<dt class="r1 last">Defined in:</dt>
|
|
82
|
-
<dd class="r1 last">lib/opentok.rb<span class="defines">,<br />
|
|
83
|
-
lib/opentok/client.rb,<br /> lib/opentok/session.rb,<br /> lib/opentok/version.rb,<br /> lib/opentok/archive.rb,<br /> lib/opentok/opentok.rb,<br /> lib/extensions/hash.rb,<br /> lib/opentok/archives.rb,<br /> lib/opentok/constants.rb,<br /> lib/opentok/exceptions.rb,<br /> lib/opentok/archive_list.rb,<br /> lib/opentok/token_generator.rb</span>
|
|
84
|
-
</dd>
|
|
85
|
-
|
|
86
|
-
</dl>
|
|
87
|
-
<div class="clear"></div>
|
|
88
|
-
|
|
89
|
-
<h2>Overview</h2><div class="docstring">
|
|
90
|
-
<div class="discussion">
|
|
91
|
-
|
|
92
|
-
<p>Namespace for classes and modules in the OpenTok 2.2 Ruby SDK.</p>
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
</div>
|
|
96
|
-
</div>
|
|
97
|
-
<div class="tags">
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
</div><h2>Defined Under Namespace</h2>
|
|
101
|
-
<p class="children">
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
<strong class="modules">Modules:</strong> <span class='object_link'><a href="OpenTok/HashExtensions.html" title="OpenTok::HashExtensions (module)">HashExtensions</a></span>
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
<strong class="classes">Classes:</strong> <span class='object_link'><a href="OpenTok/Archive.html" title="OpenTok::Archive (class)">Archive</a></span>, <span class='object_link'><a href="OpenTok/ArchiveList.html" title="OpenTok::ArchiveList (class)">ArchiveList</a></span>, <span class='object_link'><a href="OpenTok/Archives.html" title="OpenTok::Archives (class)">Archives</a></span>, <span class='object_link'><a href="OpenTok/OpenTok.html" title="OpenTok::OpenTok (class)">OpenTok</a></span>, <span class='object_link'><a href="OpenTok/OpenTokArchiveError.html" title="OpenTok::OpenTokArchiveError (class)">OpenTokArchiveError</a></span>, <span class='object_link'><a href="OpenTok/OpenTokAuthenticationError.html" title="OpenTok::OpenTokAuthenticationError (class)">OpenTokAuthenticationError</a></span>, <span class='object_link'><a href="OpenTok/OpenTokError.html" title="OpenTok::OpenTokError (class)">OpenTokError</a></span>, <span class='object_link'><a href="OpenTok/Session.html" title="OpenTok::Session (class)">Session</a></span>
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
</p>
|
|
112
|
-
|
|
113
|
-
<h2>Constant Summary</h2>
|
|
114
|
-
|
|
115
|
-
<dl class="constants">
|
|
116
|
-
|
|
117
|
-
<dt id="API_URL-constant" class="">API_URL =
|
|
118
|
-
|
|
119
|
-
</dt>
|
|
120
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>https://api.opentok.com</span><span class='tstring_end'>"</span></span></pre></dd>
|
|
121
|
-
|
|
122
|
-
<dt id="TOKEN_SENTINEL-constant" class="">TOKEN_SENTINEL =
|
|
123
|
-
|
|
124
|
-
</dt>
|
|
125
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>T1==</span><span class='tstring_end'>"</span></span></pre></dd>
|
|
126
|
-
|
|
127
|
-
<dt id="ROLES-constant" class="">ROLES =
|
|
128
|
-
|
|
129
|
-
</dt>
|
|
130
|
-
<dd><pre class="code"><span class='lbrace'>{</span> <span class='label'>subscriber:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>subscriber</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>publisher:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>publisher</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='label'>moderator:</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>moderator</span><span class='tstring_end'>"</span></span> <span class='rbrace'>}</span></pre></dd>
|
|
131
|
-
|
|
132
|
-
<dt id="ARCHIVE_MODES-constant" class="">ARCHIVE_MODES =
|
|
133
|
-
|
|
134
|
-
</dt>
|
|
135
|
-
<dd><pre class="code"><span class='const'>Set</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='lbracket'>[</span><span class='symbol'>:manual</span><span class='comma'>,</span> <span class='symbol'>:always</span><span class='rbracket'>]</span><span class='rparen'>)</span></pre></dd>
|
|
136
|
-
|
|
137
|
-
</dl>
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
<h2>
|
|
148
|
-
Instance Method Summary
|
|
149
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
150
|
-
</h2>
|
|
151
|
-
|
|
152
|
-
<ul class="summary">
|
|
153
|
-
|
|
154
|
-
<li class="public ">
|
|
155
|
-
<span class="summary_signature">
|
|
156
|
-
|
|
157
|
-
<a href="#generate_token-instance_method" title="#generate_token (instance method)">- (String) <strong>generate_token</strong>(options) </a>
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
</span>
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
<span class="summary_desc"><div class='inline'>
|
|
172
|
-
<p>Generates a token for a given session.</p>
|
|
173
|
-
</div></span>
|
|
174
|
-
|
|
175
|
-
</li>
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
</ul>
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
<div id="instance_method_details" class="method_details_list">
|
|
184
|
-
<h2>Instance Method Details</h2>
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
<div class="method_details first">
|
|
188
|
-
<h3 class="signature first" id="generate_token-instance_method">
|
|
189
|
-
|
|
190
|
-
- (<tt>String</tt>) <strong>generate_token</strong>(options)
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
</h3><div class="docstring">
|
|
197
|
-
<div class="discussion">
|
|
198
|
-
|
|
199
|
-
<p>Generates a token for a given session.</p>
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
</div>
|
|
203
|
-
</div>
|
|
204
|
-
<div class="tags">
|
|
205
|
-
<p class="tag_title">Parameters:</p>
|
|
206
|
-
<ul class="param">
|
|
207
|
-
|
|
208
|
-
<li>
|
|
209
|
-
|
|
210
|
-
<span class='name'>session_id</span>
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
<span class='type'>(<tt>String</tt>)</span>
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
—
|
|
218
|
-
<div class='inline'>
|
|
219
|
-
<p>The session ID of the session to be accessed by the client using the token.</p>
|
|
220
|
-
</div>
|
|
221
|
-
|
|
222
|
-
</li>
|
|
223
|
-
|
|
224
|
-
<li>
|
|
225
|
-
|
|
226
|
-
<span class='name'>options</span>
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
<span class='type'>(<tt>Hash</tt>)</span>
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
—
|
|
234
|
-
<div class='inline'>
|
|
235
|
-
<p>A hash defining options for the token.</p>
|
|
236
|
-
</div>
|
|
237
|
-
|
|
238
|
-
</li>
|
|
239
|
-
|
|
240
|
-
</ul>
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
<p class="tag_title">Options Hash (<tt>options</tt>):</p>
|
|
246
|
-
<ul class="option">
|
|
247
|
-
|
|
248
|
-
<li>
|
|
249
|
-
<span class="name">:role</span>
|
|
250
|
-
<span class="type">(<tt>Symbol</tt>)</span>
|
|
251
|
-
<span class="default">
|
|
252
|
-
|
|
253
|
-
</span>
|
|
254
|
-
|
|
255
|
-
— <div class='inline'>
|
|
256
|
-
<p>The role for the token. Set this to one of the following values:</p>
|
|
257
|
-
<ul><li>
|
|
258
|
-
<p><tt>:subscriber</tt> -- A subscriber can only subscribe to streams.</p>
|
|
259
|
-
</li><li>
|
|
260
|
-
<p><tt>:publisher</tt> -- A publisher can publish streams, subscribe to
|
|
261
|
-
streams, and signal. (This is the default value if you do not specify a
|
|
262
|
-
role.)</p>
|
|
263
|
-
</li><li>
|
|
264
|
-
<p><tt>:moderator</tt> -- In addition to the privileges granted to a
|
|
265
|
-
publisher, in clients using the OpenTok.js 2.2 library, a moderator can
|
|
266
|
-
call the <tt>forceUnpublish()</tt> and <tt>forceDisconnect()</tt> method of
|
|
267
|
-
the Session object.</p>
|
|
268
|
-
</li></ul>
|
|
269
|
-
</div>
|
|
270
|
-
|
|
271
|
-
</li>
|
|
272
|
-
|
|
273
|
-
<li>
|
|
274
|
-
<span class="name">:expire_time</span>
|
|
275
|
-
<span class="type">(<tt>integer</tt>)</span>
|
|
276
|
-
<span class="default">
|
|
277
|
-
|
|
278
|
-
</span>
|
|
279
|
-
|
|
280
|
-
— <div class='inline'>
|
|
281
|
-
<p>The expiration time, in seconds since the UNIX epoch. Pass in 0 to use the
|
|
282
|
-
default expiration time of 24 hours after the token creation time. The
|
|
283
|
-
maximum expiration time is 30 days after the creation time.</p>
|
|
284
|
-
</div>
|
|
285
|
-
|
|
286
|
-
</li>
|
|
287
|
-
|
|
288
|
-
<li>
|
|
289
|
-
<span class="name">:data</span>
|
|
290
|
-
<span class="type">(<tt>String</tt>)</span>
|
|
291
|
-
<span class="default">
|
|
292
|
-
|
|
293
|
-
</span>
|
|
294
|
-
|
|
295
|
-
— <div class='inline'>
|
|
296
|
-
<p>A string containing connection metadata describing the end-user. For
|
|
297
|
-
example, you can pass the user ID, name, or other data describing the
|
|
298
|
-
end-user. The length of the string is limited to 1000 characters. This data
|
|
299
|
-
cannot be updated once it is set.</p>
|
|
300
|
-
</div>
|
|
301
|
-
|
|
302
|
-
</li>
|
|
303
|
-
|
|
304
|
-
</ul>
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
<p class="tag_title">Returns:</p>
|
|
308
|
-
<ul class="return">
|
|
309
|
-
|
|
310
|
-
<li>
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
<span class='type'>(<tt>String</tt>)</span>
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
—
|
|
318
|
-
<div class='inline'>
|
|
319
|
-
<p>The token string.</p>
|
|
320
|
-
</div>
|
|
321
|
-
|
|
322
|
-
</li>
|
|
323
|
-
|
|
324
|
-
</ul>
|
|
325
|
-
|
|
326
|
-
</div><table class="source_code">
|
|
327
|
-
<tr>
|
|
328
|
-
<td>
|
|
329
|
-
<pre class="lines">
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
46
|
|
333
|
-
47
|
|
334
|
-
48
|
|
335
|
-
49
|
|
336
|
-
50
|
|
337
|
-
51
|
|
338
|
-
52
|
|
339
|
-
53
|
|
340
|
-
54
|
|
341
|
-
55
|
|
342
|
-
56
|
|
343
|
-
57
|
|
344
|
-
58
|
|
345
|
-
59
|
|
346
|
-
60
|
|
347
|
-
61
|
|
348
|
-
62
|
|
349
|
-
63
|
|
350
|
-
64
|
|
351
|
-
65
|
|
352
|
-
66
|
|
353
|
-
67
|
|
354
|
-
68
|
|
355
|
-
69
|
|
356
|
-
70
|
|
357
|
-
71
|
|
358
|
-
72
|
|
359
|
-
73
|
|
360
|
-
74
|
|
361
|
-
75
|
|
362
|
-
76
|
|
363
|
-
77
|
|
364
|
-
78</pre>
|
|
365
|
-
</td>
|
|
366
|
-
<td>
|
|
367
|
-
<pre class="code"><span class="info file"># File 'lib/opentok/session.rb', line 46</span>
|
|
368
|
-
|
|
369
|
-
<span class='kw'>class</span> <span class='const'>Session</span>
|
|
370
|
-
|
|
371
|
-
<span class='id identifier rubyid_include'>include</span> <span class='const'>TokenGenerator</span>
|
|
372
|
-
<span class='id identifier rubyid_generates_tokens'>generates_tokens</span><span class='lparen'>(</span><span class='lbrace'>{</span>
|
|
373
|
-
<span class='symbol'>:api_key</span> <span class='op'>=></span> <span class='tlambda'>-></span><span class='lparen'>(</span><span class='id identifier rubyid_instance'>instance</span><span class='rparen'>)</span> <span class='tlambeg'>{</span> <span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_api_key'>api_key</span> <span class='rbrace'>}</span><span class='comma'>,</span>
|
|
374
|
-
<span class='symbol'>:api_secret</span> <span class='op'>=></span> <span class='tlambda'>-></span><span class='lparen'>(</span><span class='id identifier rubyid_instance'>instance</span><span class='rparen'>)</span> <span class='tlambeg'>{</span> <span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_api_secret'>api_secret</span> <span class='rbrace'>}</span><span class='comma'>,</span>
|
|
375
|
-
<span class='symbol'>:session_id</span> <span class='op'>=></span> <span class='tlambda'>-></span><span class='lparen'>(</span><span class='id identifier rubyid_instance'>instance</span><span class='rparen'>)</span> <span class='tlambeg'>{</span> <span class='id identifier rubyid_instance'>instance</span><span class='period'>.</span><span class='id identifier rubyid_session_id'>session_id</span> <span class='rbrace'>}</span>
|
|
376
|
-
<span class='rbrace'>}</span><span class='rparen'>)</span>
|
|
377
|
-
|
|
378
|
-
<span class='id identifier rubyid_attr_reader'>attr_reader</span> <span class='symbol'>:session_id</span><span class='comma'>,</span> <span class='symbol'>:media_mode</span><span class='comma'>,</span> <span class='symbol'>:location</span><span class='comma'>,</span> <span class='symbol'>:archive_mode</span><span class='comma'>,</span> <span class='symbol'>:api_key</span><span class='comma'>,</span> <span class='symbol'>:api_secret</span>
|
|
379
|
-
|
|
380
|
-
<span class='comment'># @private
|
|
381
|
-
</span> <span class='comment'># this implementation doesn't completely understand the format of a Session ID
|
|
382
|
-
</span> <span class='comment'># that is intentional, that is too much responsibility.
|
|
383
|
-
</span> <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_belongs_to_api_key?'>belongs_to_api_key?</span><span class='lparen'>(</span><span class='id identifier rubyid_session_id'>session_id</span><span class='comma'>,</span> <span class='id identifier rubyid_api_key'>api_key</span><span class='rparen'>)</span>
|
|
384
|
-
<span class='id identifier rubyid_encoded'>encoded</span> <span class='op'>=</span> <span class='id identifier rubyid_session_id'>session_id</span><span class='lbracket'>[</span><span class='int'>2</span><span class='op'>..</span><span class='id identifier rubyid_session_id'>session_id</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span><span class='rbracket'>]</span><span class='period'>
|
|
385
|
-
</span><span class='id identifier rubyid_ .gsub'> .gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>-</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>+</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='period'>
|
|
386
|
-
</span><span class='id identifier rubyid_ .gsub'> .gsub</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>_</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>/</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
|
387
|
-
<span class='id identifier rubyid_decoded'>decoded</span> <span class='op'>=</span> <span class='const'>Base64</span><span class='period'>.</span><span class='id identifier rubyid_decode64'>decode64</span><span class='lparen'>(</span><span class='id identifier rubyid_encoded'>encoded</span><span class='rparen'>)</span>
|
|
388
|
-
<span class='id identifier rubyid_decoded'>decoded</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span> <span class='id identifier rubyid_api_key'>api_key</span>
|
|
389
|
-
<span class='kw'>end</span>
|
|
390
|
-
|
|
391
|
-
<span class='comment'># @private
|
|
392
|
-
</span> <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_api_key'>api_key</span><span class='comma'>,</span> <span class='id identifier rubyid_api_secret'>api_secret</span><span class='comma'>,</span> <span class='id identifier rubyid_session_id'>session_id</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
|
393
|
-
<span class='ivar'>@api_key</span><span class='comma'>,</span> <span class='ivar'>@api_secret</span><span class='comma'>,</span> <span class='ivar'>@session_id</span> <span class='op'>=</span> <span class='id identifier rubyid_api_key'>api_key</span><span class='comma'>,</span> <span class='id identifier rubyid_api_secret'>api_secret</span><span class='comma'>,</span> <span class='id identifier rubyid_session_id'>session_id</span>
|
|
394
|
-
<span class='ivar'>@media_mode</span><span class='comma'>,</span> <span class='ivar'>@location</span><span class='comma'>,</span> <span class='ivar'>@archive_mode</span> <span class='op'>=</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:media_mode</span><span class='comma'>,</span> <span class='symbol'>:relayed</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:location</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_opts'>opts</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='symbol'>:archive_mode</span><span class='comma'>,</span> <span class='symbol'>:manual</span><span class='rparen'>)</span>
|
|
395
|
-
<span class='kw'>end</span>
|
|
396
|
-
|
|
397
|
-
<span class='comment'># @private
|
|
398
|
-
</span> <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
|
|
399
|
-
<span class='ivar'>@session_id</span>
|
|
400
|
-
<span class='kw'>end</span>
|
|
401
|
-
<span class='kw'>end</span></pre>
|
|
402
|
-
</td>
|
|
403
|
-
</tr>
|
|
404
|
-
</table>
|
|
405
|
-
</div>
|
|
406
|
-
|
|
407
|
-
</div>
|
|
408
|
-
|
|
409
|
-
</div>
|
|
410
|
-
|
|
411
|
-
<div id="footer">
|
|
412
|
-
Generated on Mon May 25 15:52:46 2015 by
|
|
413
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
414
|
-
0.8.7.6 (ruby-1.9.3).
|
|
415
|
-
</div>
|
|
416
|
-
|
|
417
|
-
</body>
|
|
418
|
-
</html>
|
data/doc/OpenTok/Archive.html
DELETED
|
@@ -1,1607 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
|
-
<head>
|
|
5
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
-
<title>
|
|
7
|
-
Class: OpenTok::Archive
|
|
8
|
-
|
|
9
|
-
— Documentation by YARD 0.8.7.6
|
|
10
|
-
|
|
11
|
-
</title>
|
|
12
|
-
|
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
|
14
|
-
|
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
|
16
|
-
|
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
|
18
|
-
hasFrames = window.top.frames.main ? true : false;
|
|
19
|
-
relpath = '../';
|
|
20
|
-
framesUrl = "../frames.html#!OpenTok/Archive.html";
|
|
21
|
-
</script>
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
|
25
|
-
|
|
26
|
-
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
</head>
|
|
30
|
-
<body>
|
|
31
|
-
<div id="header">
|
|
32
|
-
<div id="menu">
|
|
33
|
-
|
|
34
|
-
<a href="../_index.html">Index (A)</a> »
|
|
35
|
-
<span class='title'><span class='object_link'><a href="../OpenTok.html" title="OpenTok (module)">OpenTok</a></span></span>
|
|
36
|
-
»
|
|
37
|
-
<span class="title">Archive</span>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
|
41
|
-
</div>
|
|
42
|
-
|
|
43
|
-
<div id="search">
|
|
44
|
-
|
|
45
|
-
<a class="full_list_link" id="class_list_link"
|
|
46
|
-
href="../class_list.html">
|
|
47
|
-
Class List
|
|
48
|
-
</a>
|
|
49
|
-
|
|
50
|
-
<a class="full_list_link" id="method_list_link"
|
|
51
|
-
href="../method_list.html">
|
|
52
|
-
Method List
|
|
53
|
-
</a>
|
|
54
|
-
|
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
|
56
|
-
href="../file_list.html">
|
|
57
|
-
File List
|
|
58
|
-
</a>
|
|
59
|
-
|
|
60
|
-
</div>
|
|
61
|
-
<div class="clear"></div>
|
|
62
|
-
</div>
|
|
63
|
-
|
|
64
|
-
<iframe id="search_frame"></iframe>
|
|
65
|
-
|
|
66
|
-
<div id="content"><h1>Class: OpenTok::Archive
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
</h1>
|
|
71
|
-
|
|
72
|
-
<dl class="box">
|
|
73
|
-
|
|
74
|
-
<dt class="r1">Inherits:</dt>
|
|
75
|
-
<dd class="r1">
|
|
76
|
-
<span class="inheritName">Object</span>
|
|
77
|
-
|
|
78
|
-
<ul class="fullTree">
|
|
79
|
-
<li>Object</li>
|
|
80
|
-
|
|
81
|
-
<li class="next">OpenTok::Archive</li>
|
|
82
|
-
|
|
83
|
-
</ul>
|
|
84
|
-
<a href="#" class="inheritanceTree">show all</a>
|
|
85
|
-
|
|
86
|
-
</dd>
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
<dt class="r2 last">Defined in:</dt>
|
|
97
|
-
<dd class="r2 last">lib/opentok/archive.rb</dd>
|
|
98
|
-
|
|
99
|
-
</dl>
|
|
100
|
-
<div class="clear"></div>
|
|
101
|
-
|
|
102
|
-
<h2>Overview</h2><div class="docstring">
|
|
103
|
-
<div class="discussion">
|
|
104
|
-
|
|
105
|
-
<p>Represents an archive of an OpenTok session.</p>
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
</div>
|
|
109
|
-
</div>
|
|
110
|
-
<div class="tags">
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
</div>
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
|
118
|
-
<ul class="summary">
|
|
119
|
-
|
|
120
|
-
<li class="public ">
|
|
121
|
-
<span class="summary_signature">
|
|
122
|
-
|
|
123
|
-
<a href="#created_at-instance_method" title="#created_at (instance method)">- (int) <strong>created_at</strong> </a>
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
</span>
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
<span class="summary_desc"><div class='inline'>
|
|
141
|
-
<p>The time at which the archive was created, in milliseconds since the UNIX
|
|
142
|
-
epoch.</p>
|
|
143
|
-
</div></span>
|
|
144
|
-
|
|
145
|
-
</li>
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
<li class="public ">
|
|
149
|
-
<span class="summary_signature">
|
|
150
|
-
|
|
151
|
-
<a href="#duration-instance_method" title="#duration (instance method)">- (string) <strong>duration</strong> </a>
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
</span>
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
<span class="summary_desc"><div class='inline'>
|
|
169
|
-
<p>The duration of the archive, in milliseconds.</p>
|
|
170
|
-
</div></span>
|
|
171
|
-
|
|
172
|
-
</li>
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
<li class="public ">
|
|
176
|
-
<span class="summary_signature">
|
|
177
|
-
|
|
178
|
-
<a href="#has_audio-instance_method" title="#has_audio (instance method)">- (true, false) <strong>has_audio</strong> </a>
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
</span>
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
<span class="summary_desc"><div class='inline'>
|
|
196
|
-
<p>Whether the archive has an audio track (true) or not (false).</p>
|
|
197
|
-
</div></span>
|
|
198
|
-
|
|
199
|
-
</li>
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
<li class="public ">
|
|
203
|
-
<span class="summary_signature">
|
|
204
|
-
|
|
205
|
-
<a href="#has_video-instance_method" title="#has_video (instance method)">- (true, false) <strong>has_video</strong> </a>
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
</span>
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
<span class="summary_desc"><div class='inline'>
|
|
223
|
-
<p>Whether the archive has a video track (true) or not (false).</p>
|
|
224
|
-
</div></span>
|
|
225
|
-
|
|
226
|
-
</li>
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
<li class="public ">
|
|
230
|
-
<span class="summary_signature">
|
|
231
|
-
|
|
232
|
-
<a href="#id-instance_method" title="#id (instance method)">- (string) <strong>id</strong> </a>
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
</span>
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
<span class="summary_desc"><div class='inline'>
|
|
250
|
-
<p>The archive ID.</p>
|
|
251
|
-
</div></span>
|
|
252
|
-
|
|
253
|
-
</li>
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
<li class="public ">
|
|
257
|
-
<span class="summary_signature">
|
|
258
|
-
|
|
259
|
-
<a href="#name-instance_method" title="#name (instance method)">- (string) <strong>name</strong> </a>
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
</span>
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
<span class="summary_desc"><div class='inline'>
|
|
277
|
-
<p>The name of the archive.</p>
|
|
278
|
-
</div></span>
|
|
279
|
-
|
|
280
|
-
</li>
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
<li class="public ">
|
|
284
|
-
<span class="summary_signature">
|
|
285
|
-
|
|
286
|
-
<a href="#output_mode-instance_method" title="#output_mode (instance method)">- (String) <strong>output_mode</strong> </a>
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
</span>
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
<span class="summary_desc"><div class='inline'>
|
|
304
|
-
<p>Whether all streams in the archive are recorded to a single file
|
|
305
|
-
(:composed) or to individual files (:individual).</p>
|
|
306
|
-
</div></span>
|
|
307
|
-
|
|
308
|
-
</li>
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
<li class="public ">
|
|
312
|
-
<span class="summary_signature">
|
|
313
|
-
|
|
314
|
-
<a href="#partner_id-instance_method" title="#partner_id (instance method)">- (string) <strong>partner_id</strong> </a>
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
</span>
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
<span class="summary_desc"><div class='inline'>
|
|
332
|
-
<p>The API key associated with the archive.</p>
|
|
333
|
-
</div></span>
|
|
334
|
-
|
|
335
|
-
</li>
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
<li class="public ">
|
|
339
|
-
<span class="summary_signature">
|
|
340
|
-
|
|
341
|
-
<a href="#reason-instance_method" title="#reason (instance method)">- (string) <strong>reason</strong> </a>
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
</span>
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
<span class="summary_desc"><div class='inline'>
|
|
359
|
-
<p>For archives with the status "stopped", this can be set to "90 mins
|
|
360
|
-
exceeded", "failure", "session ended", or "user initiated".</p>
|
|
361
|
-
</div></span>
|
|
362
|
-
|
|
363
|
-
</li>
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
<li class="public ">
|
|
367
|
-
<span class="summary_signature">
|
|
368
|
-
|
|
369
|
-
<a href="#session_id-instance_method" title="#session_id (instance method)">- (string) <strong>session_id</strong> </a>
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
</span>
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
<span class="summary_desc"><div class='inline'>
|
|
387
|
-
<p>The session ID of the OpenTok session associated with this archive.</p>
|
|
388
|
-
</div></span>
|
|
389
|
-
|
|
390
|
-
</li>
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
<li class="public ">
|
|
394
|
-
<span class="summary_signature">
|
|
395
|
-
|
|
396
|
-
<a href="#size-instance_method" title="#size (instance method)">- (float) <strong>size</strong> </a>
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
</span>
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
<span class="summary_desc"><div class='inline'>
|
|
414
|
-
<p>The size of the MP4 file.</p>
|
|
415
|
-
</div></span>
|
|
416
|
-
|
|
417
|
-
</li>
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
<li class="public ">
|
|
421
|
-
<span class="summary_signature">
|
|
422
|
-
|
|
423
|
-
<a href="#status-instance_method" title="#status (instance method)">- (string) <strong>status</strong> </a>
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
</span>
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
<span class="summary_desc"><div class='inline'>
|
|
441
|
-
<p>The status of the archive, which can be one of the following:.</p>
|
|
442
|
-
</div></span>
|
|
443
|
-
|
|
444
|
-
</li>
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
<li class="public ">
|
|
448
|
-
<span class="summary_signature">
|
|
449
|
-
|
|
450
|
-
<a href="#url-instance_method" title="#url (instance method)">- (string) <strong>url</strong> </a>
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
</span>
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
<span class="summary_desc"><div class='inline'>
|
|
468
|
-
<p>The download URL of the available MP4 file.</p>
|
|
469
|
-
</div></span>
|
|
470
|
-
|
|
471
|
-
</li>
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
</ul>
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
<h2>
|
|
481
|
-
Instance Method Summary
|
|
482
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
483
|
-
</h2>
|
|
484
|
-
|
|
485
|
-
<ul class="summary">
|
|
486
|
-
|
|
487
|
-
<li class="public ">
|
|
488
|
-
<span class="summary_signature">
|
|
489
|
-
|
|
490
|
-
<a href="#delete-instance_method" title="#delete (instance method)">- (Object) <strong>delete</strong> </a>
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
</span>
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
<span class="summary_desc"><div class='inline'>
|
|
505
|
-
<p>Deletes an OpenTok archive.</p>
|
|
506
|
-
</div></span>
|
|
507
|
-
|
|
508
|
-
</li>
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
<li class="public ">
|
|
512
|
-
<span class="summary_signature">
|
|
513
|
-
|
|
514
|
-
<a href="#stop-instance_method" title="#stop (instance method)">- (Object) <strong>stop</strong> </a>
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
</span>
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
<span class="summary_desc"><div class='inline'>
|
|
529
|
-
<p>Stops an OpenTok archive that is being recorded.</p>
|
|
530
|
-
</div></span>
|
|
531
|
-
|
|
532
|
-
</li>
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
<li class="public ">
|
|
536
|
-
<span class="summary_signature">
|
|
537
|
-
|
|
538
|
-
<a href="#to_json-instance_method" title="#to_json (instance method)">- (Object) <strong>to_json</strong> </a>
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
</span>
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
<span class="summary_desc"><div class='inline'>
|
|
553
|
-
<p>A JSON encoded string representation of the archive.</p>
|
|
554
|
-
</div></span>
|
|
555
|
-
|
|
556
|
-
</li>
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
</ul>
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
<div id="method_missing_details" class="method_details_list">
|
|
563
|
-
<h2>Dynamic Method Handling</h2>
|
|
564
|
-
<p class="notice this">
|
|
565
|
-
This class handles dynamic methods through the <tt>method_missing</tt> method
|
|
566
|
-
|
|
567
|
-
</p>
|
|
568
|
-
|
|
569
|
-
<div class="method_details first">
|
|
570
|
-
<h3 class="signature first" id="method_missing-instance_method">
|
|
571
|
-
|
|
572
|
-
- (<tt>Object</tt>) <strong>method_missing</strong>(method, *args, &block)
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
</h3><table class="source_code">
|
|
579
|
-
<tr>
|
|
580
|
-
<td>
|
|
581
|
-
<pre class="lines">
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
100
|
|
585
|
-
101
|
|
586
|
-
102
|
|
587
|
-
103
|
|
588
|
-
104
|
|
589
|
-
105
|
|
590
|
-
106
|
|
591
|
-
107
|
|
592
|
-
108
|
|
593
|
-
109
|
|
594
|
-
110
|
|
595
|
-
111
|
|
596
|
-
112</pre>
|
|
597
|
-
</td>
|
|
598
|
-
<td>
|
|
599
|
-
<pre class="code"><span class="info file"># File 'lib/opentok/archive.rb', line 100</span>
|
|
600
|
-
|
|
601
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_method_missing'>method_missing</span><span class='lparen'>(</span><span class='id identifier rubyid_method'>method</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
|
602
|
-
<span class='id identifier rubyid_camelized_method'>camelized_method</span> <span class='op'>=</span> <span class='id identifier rubyid_method'>method</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_camelize'>camelize</span><span class='lparen'>(</span><span class='symbol'>:lower</span><span class='rparen'>)</span>
|
|
603
|
-
<span class='kw'>if</span> <span class='ivar'>@json</span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span> <span class='id identifier rubyid_camelized_method'>camelized_method</span> <span class='kw'>and</span> <span class='id identifier rubyid_args'>args</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
|
604
|
-
<span class='comment'># TODO: convert create_time method call to a Time object
|
|
605
|
-
</span> <span class='kw'>if</span> <span class='id identifier rubyid_camelized_method'>camelized_method</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>outputMode</span><span class='tstring_end'>'</span></span>
|
|
606
|
-
<span class='ivar'>@json</span><span class='lbracket'>[</span><span class='id identifier rubyid_camelized_method'>camelized_method</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
|
|
607
|
-
<span class='kw'>else</span>
|
|
608
|
-
<span class='ivar'>@json</span><span class='lbracket'>[</span><span class='id identifier rubyid_camelized_method'>camelized_method</span><span class='rbracket'>]</span>
|
|
609
|
-
<span class='kw'>end</span>
|
|
610
|
-
<span class='kw'>else</span>
|
|
611
|
-
<span class='kw'>super</span> <span class='id identifier rubyid_method'>method</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span>
|
|
612
|
-
<span class='kw'>end</span>
|
|
613
|
-
<span class='kw'>end</span></pre>
|
|
614
|
-
</td>
|
|
615
|
-
</tr>
|
|
616
|
-
</table>
|
|
617
|
-
</div>
|
|
618
|
-
|
|
619
|
-
</div>
|
|
620
|
-
|
|
621
|
-
<div id="instance_attr_details" class="attr_details">
|
|
622
|
-
<h2>Instance Attribute Details</h2>
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
<span id="created_at=-instance_method"></span>
|
|
626
|
-
<div class="method_details first">
|
|
627
|
-
<h3 class="signature first" id="created_at-instance_method">
|
|
628
|
-
|
|
629
|
-
- (<tt>int</tt>) <strong>created_at</strong>
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
</h3><div class="docstring">
|
|
636
|
-
<div class="discussion">
|
|
637
|
-
|
|
638
|
-
<p>The time at which the archive was created, in milliseconds since the UNIX
|
|
639
|
-
epoch.</p>
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
</div>
|
|
643
|
-
</div>
|
|
644
|
-
<div class="tags">
|
|
645
|
-
|
|
646
|
-
<p class="tag_title">Returns:</p>
|
|
647
|
-
<ul class="return">
|
|
648
|
-
|
|
649
|
-
<li>
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
<span class='type'>(<tt>int</tt>)</span>
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
—
|
|
657
|
-
<div class='inline'>
|
|
658
|
-
<p>the current value of created_at</p>
|
|
659
|
-
</div>
|
|
660
|
-
|
|
661
|
-
</li>
|
|
662
|
-
|
|
663
|
-
</ul>
|
|
664
|
-
|
|
665
|
-
</div><table class="source_code">
|
|
666
|
-
<tr>
|
|
667
|
-
<td>
|
|
668
|
-
<pre class="lines">
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
66
|
|
672
|
-
67
|
|
673
|
-
68</pre>
|
|
674
|
-
</td>
|
|
675
|
-
<td>
|
|
676
|
-
<pre class="code"><span class="info file"># File 'lib/opentok/archive.rb', line 66</span>
|
|
677
|
-
|
|
678
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_created_at'>created_at</span>
|
|
679
|
-
<span class='ivar'>@created_at</span>
|
|
680
|
-
<span class='kw'>end</span></pre>
|
|
681
|
-
</td>
|
|
682
|
-
</tr>
|
|
683
|
-
</table>
|
|
684
|
-
</div>
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
<span id="duration=-instance_method"></span>
|
|
688
|
-
<div class="method_details ">
|
|
689
|
-
<h3 class="signature " id="duration-instance_method">
|
|
690
|
-
|
|
691
|
-
- (<tt>string</tt>) <strong>duration</strong>
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
</h3><div class="docstring">
|
|
698
|
-
<div class="discussion">
|
|
699
|
-
|
|
700
|
-
<p>The duration of the archive, in milliseconds.</p>
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
</div>
|
|
704
|
-
</div>
|
|
705
|
-
<div class="tags">
|
|
706
|
-
|
|
707
|
-
<p class="tag_title">Returns:</p>
|
|
708
|
-
<ul class="return">
|
|
709
|
-
|
|
710
|
-
<li>
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
<span class='type'>(<tt>string</tt>)</span>
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
—
|
|
718
|
-
<div class='inline'>
|
|
719
|
-
<p>the current value of duration</p>
|
|
720
|
-
</div>
|
|
721
|
-
|
|
722
|
-
</li>
|
|
723
|
-
|
|
724
|
-
</ul>
|
|
725
|
-
|
|
726
|
-
</div><table class="source_code">
|
|
727
|
-
<tr>
|
|
728
|
-
<td>
|
|
729
|
-
<pre class="lines">
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
66
|
|
733
|
-
67
|
|
734
|
-
68</pre>
|
|
735
|
-
</td>
|
|
736
|
-
<td>
|
|
737
|
-
<pre class="code"><span class="info file"># File 'lib/opentok/archive.rb', line 66</span>
|
|
738
|
-
|
|
739
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_duration'>duration</span>
|
|
740
|
-
<span class='ivar'>@duration</span>
|
|
741
|
-
<span class='kw'>end</span></pre>
|
|
742
|
-
</td>
|
|
743
|
-
</tr>
|
|
744
|
-
</table>
|
|
745
|
-
</div>
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
<span id="has_audio=-instance_method"></span>
|
|
749
|
-
<div class="method_details ">
|
|
750
|
-
<h3 class="signature " id="has_audio-instance_method">
|
|
751
|
-
|
|
752
|
-
- (<tt>true</tt>, <tt>false</tt>) <strong>has_audio</strong>
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
</h3><div class="docstring">
|
|
759
|
-
<div class="discussion">
|
|
760
|
-
|
|
761
|
-
<p>Whether the archive has an audio track (true) or not (false).</p>
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
</div>
|
|
765
|
-
</div>
|
|
766
|
-
<div class="tags">
|
|
767
|
-
|
|
768
|
-
<p class="tag_title">Returns:</p>
|
|
769
|
-
<ul class="return">
|
|
770
|
-
|
|
771
|
-
<li>
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
<span class='type'>(<tt>true</tt>, <tt>false</tt>)</span>
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
—
|
|
779
|
-
<div class='inline'>
|
|
780
|
-
<p>the current value of has_audio</p>
|
|
781
|
-
</div>
|
|
782
|
-
|
|
783
|
-
</li>
|
|
784
|
-
|
|
785
|
-
</ul>
|
|
786
|
-
|
|
787
|
-
</div><table class="source_code">
|
|
788
|
-
<tr>
|
|
789
|
-
<td>
|
|
790
|
-
<pre class="lines">
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
66
|
|
794
|
-
67
|
|
795
|
-
68</pre>
|
|
796
|
-
</td>
|
|
797
|
-
<td>
|
|
798
|
-
<pre class="code"><span class="info file"># File 'lib/opentok/archive.rb', line 66</span>
|
|
799
|
-
|
|
800
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_has_audio'>has_audio</span>
|
|
801
|
-
<span class='ivar'>@has_audio</span>
|
|
802
|
-
<span class='kw'>end</span></pre>
|
|
803
|
-
</td>
|
|
804
|
-
</tr>
|
|
805
|
-
</table>
|
|
806
|
-
</div>
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
<span id="has_video=-instance_method"></span>
|
|
810
|
-
<div class="method_details ">
|
|
811
|
-
<h3 class="signature " id="has_video-instance_method">
|
|
812
|
-
|
|
813
|
-
- (<tt>true</tt>, <tt>false</tt>) <strong>has_video</strong>
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
</h3><div class="docstring">
|
|
820
|
-
<div class="discussion">
|
|
821
|
-
|
|
822
|
-
<p>Whether the archive has a video track (true) or not (false).</p>
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
</div>
|
|
826
|
-
</div>
|
|
827
|
-
<div class="tags">
|
|
828
|
-
|
|
829
|
-
<p class="tag_title">Returns:</p>
|
|
830
|
-
<ul class="return">
|
|
831
|
-
|
|
832
|
-
<li>
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
<span class='type'>(<tt>true</tt>, <tt>false</tt>)</span>
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
—
|
|
840
|
-
<div class='inline'>
|
|
841
|
-
<p>the current value of has_video</p>
|
|
842
|
-
</div>
|
|
843
|
-
|
|
844
|
-
</li>
|
|
845
|
-
|
|
846
|
-
</ul>
|
|
847
|
-
|
|
848
|
-
</div><table class="source_code">
|
|
849
|
-
<tr>
|
|
850
|
-
<td>
|
|
851
|
-
<pre class="lines">
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
66
|
|
855
|
-
67
|
|
856
|
-
68</pre>
|
|
857
|
-
</td>
|
|
858
|
-
<td>
|
|
859
|
-
<pre class="code"><span class="info file"># File 'lib/opentok/archive.rb', line 66</span>
|
|
860
|
-
|
|
861
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_has_video'>has_video</span>
|
|
862
|
-
<span class='ivar'>@has_video</span>
|
|
863
|
-
<span class='kw'>end</span></pre>
|
|
864
|
-
</td>
|
|
865
|
-
</tr>
|
|
866
|
-
</table>
|
|
867
|
-
</div>
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
<span id="id=-instance_method"></span>
|
|
871
|
-
<div class="method_details ">
|
|
872
|
-
<h3 class="signature " id="id-instance_method">
|
|
873
|
-
|
|
874
|
-
- (<tt>string</tt>) <strong>id</strong>
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
</h3><div class="docstring">
|
|
881
|
-
<div class="discussion">
|
|
882
|
-
|
|
883
|
-
<p>The archive ID.</p>
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
</div>
|
|
887
|
-
</div>
|
|
888
|
-
<div class="tags">
|
|
889
|
-
|
|
890
|
-
<p class="tag_title">Returns:</p>
|
|
891
|
-
<ul class="return">
|
|
892
|
-
|
|
893
|
-
<li>
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
<span class='type'>(<tt>string</tt>)</span>
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
—
|
|
901
|
-
<div class='inline'>
|
|
902
|
-
<p>the current value of id</p>
|
|
903
|
-
</div>
|
|
904
|
-
|
|
905
|
-
</li>
|
|
906
|
-
|
|
907
|
-
</ul>
|
|
908
|
-
|
|
909
|
-
</div><table class="source_code">
|
|
910
|
-
<tr>
|
|
911
|
-
<td>
|
|
912
|
-
<pre class="lines">
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
66
|
|
916
|
-
67
|
|
917
|
-
68</pre>
|
|
918
|
-
</td>
|
|
919
|
-
<td>
|
|
920
|
-
<pre class="code"><span class="info file"># File 'lib/opentok/archive.rb', line 66</span>
|
|
921
|
-
|
|
922
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_id'>id</span>
|
|
923
|
-
<span class='ivar'>@id</span>
|
|
924
|
-
<span class='kw'>end</span></pre>
|
|
925
|
-
</td>
|
|
926
|
-
</tr>
|
|
927
|
-
</table>
|
|
928
|
-
</div>
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
<span id="name=-instance_method"></span>
|
|
932
|
-
<div class="method_details ">
|
|
933
|
-
<h3 class="signature " id="name-instance_method">
|
|
934
|
-
|
|
935
|
-
- (<tt>string</tt>) <strong>name</strong>
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
</h3><div class="docstring">
|
|
942
|
-
<div class="discussion">
|
|
943
|
-
|
|
944
|
-
<p>The name of the archive. If no name was provided when the archive was
|
|
945
|
-
created, this is set to null.</p>
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
</div>
|
|
949
|
-
</div>
|
|
950
|
-
<div class="tags">
|
|
951
|
-
|
|
952
|
-
<p class="tag_title">Returns:</p>
|
|
953
|
-
<ul class="return">
|
|
954
|
-
|
|
955
|
-
<li>
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
<span class='type'>(<tt>string</tt>)</span>
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
—
|
|
963
|
-
<div class='inline'>
|
|
964
|
-
<p>the current value of name</p>
|
|
965
|
-
</div>
|
|
966
|
-
|
|
967
|
-
</li>
|
|
968
|
-
|
|
969
|
-
</ul>
|
|
970
|
-
|
|
971
|
-
</div><table class="source_code">
|
|
972
|
-
<tr>
|
|
973
|
-
<td>
|
|
974
|
-
<pre class="lines">
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
66
|
|
978
|
-
67
|
|
979
|
-
68</pre>
|
|
980
|
-
</td>
|
|
981
|
-
<td>
|
|
982
|
-
<pre class="code"><span class="info file"># File 'lib/opentok/archive.rb', line 66</span>
|
|
983
|
-
|
|
984
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
|
|
985
|
-
<span class='ivar'>@name</span>
|
|
986
|
-
<span class='kw'>end</span></pre>
|
|
987
|
-
</td>
|
|
988
|
-
</tr>
|
|
989
|
-
</table>
|
|
990
|
-
</div>
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
<span id="output_mode=-instance_method"></span>
|
|
994
|
-
<div class="method_details ">
|
|
995
|
-
<h3 class="signature " id="output_mode-instance_method">
|
|
996
|
-
|
|
997
|
-
- (<tt>String</tt>) <strong>output_mode</strong>
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
</h3><div class="docstring">
|
|
1004
|
-
<div class="discussion">
|
|
1005
|
-
|
|
1006
|
-
<p>Whether all streams in the archive are recorded to a single file
|
|
1007
|
-
(<tt>:composed</tt>) or to individual files (<tt>:individual</tt>).</p>
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
</div>
|
|
1011
|
-
</div>
|
|
1012
|
-
<div class="tags">
|
|
1013
|
-
|
|
1014
|
-
<p class="tag_title">Returns:</p>
|
|
1015
|
-
<ul class="return">
|
|
1016
|
-
|
|
1017
|
-
<li>
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
<span class='type'>(<tt>String</tt>)</span>
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
—
|
|
1025
|
-
<div class='inline'>
|
|
1026
|
-
<p>the current value of output_mode</p>
|
|
1027
|
-
</div>
|
|
1028
|
-
|
|
1029
|
-
</li>
|
|
1030
|
-
|
|
1031
|
-
</ul>
|
|
1032
|
-
|
|
1033
|
-
</div><table class="source_code">
|
|
1034
|
-
<tr>
|
|
1035
|
-
<td>
|
|
1036
|
-
<pre class="lines">
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
66
|
|
1040
|
-
67
|
|
1041
|
-
68</pre>
|
|
1042
|
-
</td>
|
|
1043
|
-
<td>
|
|
1044
|
-
<pre class="code"><span class="info file"># File 'lib/opentok/archive.rb', line 66</span>
|
|
1045
|
-
|
|
1046
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_output_mode'>output_mode</span>
|
|
1047
|
-
<span class='ivar'>@output_mode</span>
|
|
1048
|
-
<span class='kw'>end</span></pre>
|
|
1049
|
-
</td>
|
|
1050
|
-
</tr>
|
|
1051
|
-
</table>
|
|
1052
|
-
</div>
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
<span id="partner_id=-instance_method"></span>
|
|
1056
|
-
<div class="method_details ">
|
|
1057
|
-
<h3 class="signature " id="partner_id-instance_method">
|
|
1058
|
-
|
|
1059
|
-
- (<tt>string</tt>) <strong>partner_id</strong>
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
</h3><div class="docstring">
|
|
1066
|
-
<div class="discussion">
|
|
1067
|
-
|
|
1068
|
-
<p>The API key associated with the archive.</p>
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
</div>
|
|
1072
|
-
</div>
|
|
1073
|
-
<div class="tags">
|
|
1074
|
-
|
|
1075
|
-
<p class="tag_title">Returns:</p>
|
|
1076
|
-
<ul class="return">
|
|
1077
|
-
|
|
1078
|
-
<li>
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
<span class='type'>(<tt>string</tt>)</span>
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
—
|
|
1086
|
-
<div class='inline'>
|
|
1087
|
-
<p>the current value of partner_id</p>
|
|
1088
|
-
</div>
|
|
1089
|
-
|
|
1090
|
-
</li>
|
|
1091
|
-
|
|
1092
|
-
</ul>
|
|
1093
|
-
|
|
1094
|
-
</div><table class="source_code">
|
|
1095
|
-
<tr>
|
|
1096
|
-
<td>
|
|
1097
|
-
<pre class="lines">
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
66
|
|
1101
|
-
67
|
|
1102
|
-
68</pre>
|
|
1103
|
-
</td>
|
|
1104
|
-
<td>
|
|
1105
|
-
<pre class="code"><span class="info file"># File 'lib/opentok/archive.rb', line 66</span>
|
|
1106
|
-
|
|
1107
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_partner_id'>partner_id</span>
|
|
1108
|
-
<span class='ivar'>@partner_id</span>
|
|
1109
|
-
<span class='kw'>end</span></pre>
|
|
1110
|
-
</td>
|
|
1111
|
-
</tr>
|
|
1112
|
-
</table>
|
|
1113
|
-
</div>
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
<span id="reason=-instance_method"></span>
|
|
1117
|
-
<div class="method_details ">
|
|
1118
|
-
<h3 class="signature " id="reason-instance_method">
|
|
1119
|
-
|
|
1120
|
-
- (<tt>string</tt>) <strong>reason</strong>
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
</h3><div class="docstring">
|
|
1127
|
-
<div class="discussion">
|
|
1128
|
-
|
|
1129
|
-
<p>For archives with the status "stopped", this can be set to "90 mins
|
|
1130
|
-
exceeded", "failure", "session ended", or "user initiated". For archives
|
|
1131
|
-
with the status "failed", this can be set to "system failure".</p>
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
</div>
|
|
1135
|
-
</div>
|
|
1136
|
-
<div class="tags">
|
|
1137
|
-
|
|
1138
|
-
<p class="tag_title">Returns:</p>
|
|
1139
|
-
<ul class="return">
|
|
1140
|
-
|
|
1141
|
-
<li>
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
<span class='type'>(<tt>string</tt>)</span>
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
—
|
|
1149
|
-
<div class='inline'>
|
|
1150
|
-
<p>the current value of reason</p>
|
|
1151
|
-
</div>
|
|
1152
|
-
|
|
1153
|
-
</li>
|
|
1154
|
-
|
|
1155
|
-
</ul>
|
|
1156
|
-
|
|
1157
|
-
</div><table class="source_code">
|
|
1158
|
-
<tr>
|
|
1159
|
-
<td>
|
|
1160
|
-
<pre class="lines">
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
66
|
|
1164
|
-
67
|
|
1165
|
-
68</pre>
|
|
1166
|
-
</td>
|
|
1167
|
-
<td>
|
|
1168
|
-
<pre class="code"><span class="info file"># File 'lib/opentok/archive.rb', line 66</span>
|
|
1169
|
-
|
|
1170
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_reason'>reason</span>
|
|
1171
|
-
<span class='ivar'>@reason</span>
|
|
1172
|
-
<span class='kw'>end</span></pre>
|
|
1173
|
-
</td>
|
|
1174
|
-
</tr>
|
|
1175
|
-
</table>
|
|
1176
|
-
</div>
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
<span id="session_id=-instance_method"></span>
|
|
1180
|
-
<div class="method_details ">
|
|
1181
|
-
<h3 class="signature " id="session_id-instance_method">
|
|
1182
|
-
|
|
1183
|
-
- (<tt>string</tt>) <strong>session_id</strong>
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
</h3><div class="docstring">
|
|
1190
|
-
<div class="discussion">
|
|
1191
|
-
|
|
1192
|
-
<p>The session ID of the OpenTok session associated with this archive.</p>
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
</div>
|
|
1196
|
-
</div>
|
|
1197
|
-
<div class="tags">
|
|
1198
|
-
|
|
1199
|
-
<p class="tag_title">Returns:</p>
|
|
1200
|
-
<ul class="return">
|
|
1201
|
-
|
|
1202
|
-
<li>
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
<span class='type'>(<tt>string</tt>)</span>
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
—
|
|
1210
|
-
<div class='inline'>
|
|
1211
|
-
<p>the current value of session_id</p>
|
|
1212
|
-
</div>
|
|
1213
|
-
|
|
1214
|
-
</li>
|
|
1215
|
-
|
|
1216
|
-
</ul>
|
|
1217
|
-
|
|
1218
|
-
</div><table class="source_code">
|
|
1219
|
-
<tr>
|
|
1220
|
-
<td>
|
|
1221
|
-
<pre class="lines">
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
66
|
|
1225
|
-
67
|
|
1226
|
-
68</pre>
|
|
1227
|
-
</td>
|
|
1228
|
-
<td>
|
|
1229
|
-
<pre class="code"><span class="info file"># File 'lib/opentok/archive.rb', line 66</span>
|
|
1230
|
-
|
|
1231
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_session_id'>session_id</span>
|
|
1232
|
-
<span class='ivar'>@session_id</span>
|
|
1233
|
-
<span class='kw'>end</span></pre>
|
|
1234
|
-
</td>
|
|
1235
|
-
</tr>
|
|
1236
|
-
</table>
|
|
1237
|
-
</div>
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
<span id="size=-instance_method"></span>
|
|
1241
|
-
<div class="method_details ">
|
|
1242
|
-
<h3 class="signature " id="size-instance_method">
|
|
1243
|
-
|
|
1244
|
-
- (<tt>float</tt>) <strong>size</strong>
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
</h3><div class="docstring">
|
|
1251
|
-
<div class="discussion">
|
|
1252
|
-
|
|
1253
|
-
<p>The size of the MP4 file. For archives that have not been generated, this
|
|
1254
|
-
value is set to 0.</p>
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
</div>
|
|
1258
|
-
</div>
|
|
1259
|
-
<div class="tags">
|
|
1260
|
-
|
|
1261
|
-
<p class="tag_title">Returns:</p>
|
|
1262
|
-
<ul class="return">
|
|
1263
|
-
|
|
1264
|
-
<li>
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
<span class='type'>(<tt>float</tt>)</span>
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
—
|
|
1272
|
-
<div class='inline'>
|
|
1273
|
-
<p>the current value of size</p>
|
|
1274
|
-
</div>
|
|
1275
|
-
|
|
1276
|
-
</li>
|
|
1277
|
-
|
|
1278
|
-
</ul>
|
|
1279
|
-
|
|
1280
|
-
</div><table class="source_code">
|
|
1281
|
-
<tr>
|
|
1282
|
-
<td>
|
|
1283
|
-
<pre class="lines">
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
66
|
|
1287
|
-
67
|
|
1288
|
-
68</pre>
|
|
1289
|
-
</td>
|
|
1290
|
-
<td>
|
|
1291
|
-
<pre class="code"><span class="info file"># File 'lib/opentok/archive.rb', line 66</span>
|
|
1292
|
-
|
|
1293
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_size'>size</span>
|
|
1294
|
-
<span class='ivar'>@size</span>
|
|
1295
|
-
<span class='kw'>end</span></pre>
|
|
1296
|
-
</td>
|
|
1297
|
-
</tr>
|
|
1298
|
-
</table>
|
|
1299
|
-
</div>
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
<span id="status=-instance_method"></span>
|
|
1303
|
-
<div class="method_details ">
|
|
1304
|
-
<h3 class="signature " id="status-instance_method">
|
|
1305
|
-
|
|
1306
|
-
- (<tt>string</tt>) <strong>status</strong>
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
</h3><div class="docstring">
|
|
1313
|
-
<div class="discussion">
|
|
1314
|
-
|
|
1315
|
-
<p>The status of the archive, which can be one of the following:</p>
|
|
1316
|
-
<ul><li>
|
|
1317
|
-
<p>"available" -- The archive is available for download from the OpenTok
|
|
1318
|
-
cloud.</p>
|
|
1319
|
-
</li><li>
|
|
1320
|
-
<p>"expired" -- The archive is no longer available for download from the
|
|
1321
|
-
OpenTok cloud.</p>
|
|
1322
|
-
</li><li>
|
|
1323
|
-
<p>"failed" -- The archive recording failed.</p>
|
|
1324
|
-
</li><li>
|
|
1325
|
-
<p>"paused" -- The archive is in progress and no clients are publishing
|
|
1326
|
-
streams to the session. When an archive is in progress and any client
|
|
1327
|
-
publishes a stream, the status is "started". When an archive is paused,
|
|
1328
|
-
nothing is recorded. When a client starts publishing a stream, the
|
|
1329
|
-
recording starts (or resumes). If all clients disconnect from a session
|
|
1330
|
-
that is being archived, the status changes to "paused", and after 60
|
|
1331
|
-
seconds the archive recording stops (and the status changes to "stopped").</p>
|
|
1332
|
-
</li><li>
|
|
1333
|
-
<p>"started" -- The archive started and is in the process of being recorded.</p>
|
|
1334
|
-
</li><li>
|
|
1335
|
-
<p>"stopped" -- The archive stopped recording.</p>
|
|
1336
|
-
</li><li>
|
|
1337
|
-
<p>"uploaded" -- The archive is available for download from the the upload
|
|
1338
|
-
target Amazon S3 bucket or Windows Azure container you set at the OpenTok
|
|
1339
|
-
dashboard (<a
|
|
1340
|
-
href="https://dashboard.tokbox.com">dashboard.tokbox.com</a>).</p>
|
|
1341
|
-
</li></ul>
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
</div>
|
|
1345
|
-
</div>
|
|
1346
|
-
<div class="tags">
|
|
1347
|
-
|
|
1348
|
-
<p class="tag_title">Returns:</p>
|
|
1349
|
-
<ul class="return">
|
|
1350
|
-
|
|
1351
|
-
<li>
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
<span class='type'>(<tt>string</tt>)</span>
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
—
|
|
1359
|
-
<div class='inline'>
|
|
1360
|
-
<p>the current value of status</p>
|
|
1361
|
-
</div>
|
|
1362
|
-
|
|
1363
|
-
</li>
|
|
1364
|
-
|
|
1365
|
-
</ul>
|
|
1366
|
-
|
|
1367
|
-
</div><table class="source_code">
|
|
1368
|
-
<tr>
|
|
1369
|
-
<td>
|
|
1370
|
-
<pre class="lines">
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
66
|
|
1374
|
-
67
|
|
1375
|
-
68</pre>
|
|
1376
|
-
</td>
|
|
1377
|
-
<td>
|
|
1378
|
-
<pre class="code"><span class="info file"># File 'lib/opentok/archive.rb', line 66</span>
|
|
1379
|
-
|
|
1380
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_status'>status</span>
|
|
1381
|
-
<span class='ivar'>@status</span>
|
|
1382
|
-
<span class='kw'>end</span></pre>
|
|
1383
|
-
</td>
|
|
1384
|
-
</tr>
|
|
1385
|
-
</table>
|
|
1386
|
-
</div>
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
<span id="url=-instance_method"></span>
|
|
1390
|
-
<div class="method_details ">
|
|
1391
|
-
<h3 class="signature " id="url-instance_method">
|
|
1392
|
-
|
|
1393
|
-
- (<tt>string</tt>) <strong>url</strong>
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
</h3><div class="docstring">
|
|
1400
|
-
<div class="discussion">
|
|
1401
|
-
|
|
1402
|
-
<p>The download URL of the available MP4 file. This is only set for an archive
|
|
1403
|
-
with the status set to "available"; for other archives, (including archives
|
|
1404
|
-
with the status "uploaded") this property is set to null. The download URL
|
|
1405
|
-
is obfuscated, and the file is only available from the URL for 10 minutes.
|
|
1406
|
-
To generate a new URL, call the Archive.listArchives() or
|
|
1407
|
-
OpenTok.getArchive() method.</p>
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
</div>
|
|
1411
|
-
</div>
|
|
1412
|
-
<div class="tags">
|
|
1413
|
-
|
|
1414
|
-
<p class="tag_title">Returns:</p>
|
|
1415
|
-
<ul class="return">
|
|
1416
|
-
|
|
1417
|
-
<li>
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
<span class='type'>(<tt>string</tt>)</span>
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
—
|
|
1425
|
-
<div class='inline'>
|
|
1426
|
-
<p>the current value of url</p>
|
|
1427
|
-
</div>
|
|
1428
|
-
|
|
1429
|
-
</li>
|
|
1430
|
-
|
|
1431
|
-
</ul>
|
|
1432
|
-
|
|
1433
|
-
</div><table class="source_code">
|
|
1434
|
-
<tr>
|
|
1435
|
-
<td>
|
|
1436
|
-
<pre class="lines">
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
66
|
|
1440
|
-
67
|
|
1441
|
-
68</pre>
|
|
1442
|
-
</td>
|
|
1443
|
-
<td>
|
|
1444
|
-
<pre class="code"><span class="info file"># File 'lib/opentok/archive.rb', line 66</span>
|
|
1445
|
-
|
|
1446
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_url'>url</span>
|
|
1447
|
-
<span class='ivar'>@url</span>
|
|
1448
|
-
<span class='kw'>end</span></pre>
|
|
1449
|
-
</td>
|
|
1450
|
-
</tr>
|
|
1451
|
-
</table>
|
|
1452
|
-
</div>
|
|
1453
|
-
|
|
1454
|
-
</div>
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
<div id="instance_method_details" class="method_details_list">
|
|
1458
|
-
<h2>Instance Method Details</h2>
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
<div class="method_details first">
|
|
1462
|
-
<h3 class="signature first" id="delete-instance_method">
|
|
1463
|
-
|
|
1464
|
-
- (<tt>Object</tt>) <strong>delete</strong>
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
</h3><div class="docstring">
|
|
1471
|
-
<div class="discussion">
|
|
1472
|
-
|
|
1473
|
-
<p>Deletes an OpenTok archive.</p>
|
|
1474
|
-
|
|
1475
|
-
<p>You can only delete an archive which has a status of "available" or
|
|
1476
|
-
"uploaded". Deleting an archive removes its record from the list of
|
|
1477
|
-
archives. For an "available" archive, it also removes the archive file,
|
|
1478
|
-
making it unavailable for download.</p>
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
</div>
|
|
1482
|
-
</div>
|
|
1483
|
-
<div class="tags">
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
</div><table class="source_code">
|
|
1487
|
-
<tr>
|
|
1488
|
-
<td>
|
|
1489
|
-
<pre class="lines">
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
94
|
|
1493
|
-
95
|
|
1494
|
-
96
|
|
1495
|
-
97</pre>
|
|
1496
|
-
</td>
|
|
1497
|
-
<td>
|
|
1498
|
-
<pre class="code"><span class="info file"># File 'lib/opentok/archive.rb', line 94</span>
|
|
1499
|
-
|
|
1500
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_delete'>delete</span>
|
|
1501
|
-
<span class='comment'># TODO: validate returned json fits schema
|
|
1502
|
-
</span> <span class='ivar'>@json</span> <span class='op'>=</span> <span class='ivar'>@interface</span><span class='period'>.</span><span class='id identifier rubyid_delete_by_id'>delete_by_id</span> <span class='ivar'>@json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>id</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
|
1503
|
-
<span class='kw'>end</span></pre>
|
|
1504
|
-
</td>
|
|
1505
|
-
</tr>
|
|
1506
|
-
</table>
|
|
1507
|
-
</div>
|
|
1508
|
-
|
|
1509
|
-
<div class="method_details ">
|
|
1510
|
-
<h3 class="signature " id="stop-instance_method">
|
|
1511
|
-
|
|
1512
|
-
- (<tt>Object</tt>) <strong>stop</strong>
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
</h3><div class="docstring">
|
|
1519
|
-
<div class="discussion">
|
|
1520
|
-
|
|
1521
|
-
<p>Stops an OpenTok archive that is being recorded.</p>
|
|
1522
|
-
|
|
1523
|
-
<p>Archives automatically stop recording after 90 minutes or when all clients
|
|
1524
|
-
have disconnected from the session being archived.</p>
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
</div>
|
|
1528
|
-
</div>
|
|
1529
|
-
<div class="tags">
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
</div><table class="source_code">
|
|
1533
|
-
<tr>
|
|
1534
|
-
<td>
|
|
1535
|
-
<pre class="lines">
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
84
|
|
1539
|
-
85
|
|
1540
|
-
86
|
|
1541
|
-
87</pre>
|
|
1542
|
-
</td>
|
|
1543
|
-
<td>
|
|
1544
|
-
<pre class="code"><span class="info file"># File 'lib/opentok/archive.rb', line 84</span>
|
|
1545
|
-
|
|
1546
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_stop'>stop</span>
|
|
1547
|
-
<span class='comment'># TODO: validate returned json fits schema
|
|
1548
|
-
</span> <span class='ivar'>@json</span> <span class='op'>=</span> <span class='ivar'>@interface</span><span class='period'>.</span><span class='id identifier rubyid_stop_by_id'>stop_by_id</span> <span class='ivar'>@json</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>id</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
|
1549
|
-
<span class='kw'>end</span></pre>
|
|
1550
|
-
</td>
|
|
1551
|
-
</tr>
|
|
1552
|
-
</table>
|
|
1553
|
-
</div>
|
|
1554
|
-
|
|
1555
|
-
<div class="method_details ">
|
|
1556
|
-
<h3 class="signature " id="to_json-instance_method">
|
|
1557
|
-
|
|
1558
|
-
- (<tt>Object</tt>) <strong>to_json</strong>
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
</h3><div class="docstring">
|
|
1565
|
-
<div class="discussion">
|
|
1566
|
-
|
|
1567
|
-
<p>A JSON encoded string representation of the archive</p>
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
</div>
|
|
1571
|
-
</div>
|
|
1572
|
-
<div class="tags">
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
</div><table class="source_code">
|
|
1576
|
-
<tr>
|
|
1577
|
-
<td>
|
|
1578
|
-
<pre class="lines">
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
76
|
|
1582
|
-
77
|
|
1583
|
-
78</pre>
|
|
1584
|
-
</td>
|
|
1585
|
-
<td>
|
|
1586
|
-
<pre class="code"><span class="info file"># File 'lib/opentok/archive.rb', line 76</span>
|
|
1587
|
-
|
|
1588
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_to_json'>to_json</span>
|
|
1589
|
-
<span class='ivar'>@json</span><span class='period'>.</span><span class='id identifier rubyid_to_json'>to_json</span>
|
|
1590
|
-
<span class='kw'>end</span></pre>
|
|
1591
|
-
</td>
|
|
1592
|
-
</tr>
|
|
1593
|
-
</table>
|
|
1594
|
-
</div>
|
|
1595
|
-
|
|
1596
|
-
</div>
|
|
1597
|
-
|
|
1598
|
-
</div>
|
|
1599
|
-
|
|
1600
|
-
<div id="footer">
|
|
1601
|
-
Generated on Mon May 25 15:52:46 2015 by
|
|
1602
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1603
|
-
0.8.7.6 (ruby-1.9.3).
|
|
1604
|
-
</div>
|
|
1605
|
-
|
|
1606
|
-
</body>
|
|
1607
|
-
</html>
|