opentok 2.4.0.beta.1 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +1 -0
  3. data/.travis.yml +2 -1
  4. data/README.md +8 -11
  5. data/lib/opentok.rb +1 -1
  6. data/lib/opentok/archive.rb +2 -3
  7. data/lib/opentok/archives.rb +4 -2
  8. data/lib/opentok/client.rb +37 -12
  9. data/lib/opentok/constants.rb +1 -0
  10. data/lib/opentok/opentok.rb +1 -1
  11. data/lib/opentok/session.rb +1 -1
  12. data/lib/opentok/token_generator.rb +0 -9
  13. data/lib/opentok/version.rb +1 -1
  14. data/opentok.gemspec +3 -2
  15. data/sample/Archiving/public/js/host.js +18 -7
  16. data/sample/Archiving/public/js/participant.js +18 -7
  17. data/sample/Archiving/views/host.erb +1 -1
  18. data/sample/Archiving/views/participant.erb +1 -1
  19. data/sample/HelloWorld/public/js/helloworld.js +26 -6
  20. data/sample/HelloWorld/views/index.erb +1 -1
  21. data/spec/cassettes/OpenTok_Archives/should_create_archives.yml +3 -3
  22. data/spec/cassettes/OpenTok_Archives/should_create_audio_only_archives.yml +3 -3
  23. data/spec/cassettes/OpenTok_Archives/should_create_individual_archives.yml +3 -3
  24. data/spec/cassettes/OpenTok_Archives/should_create_named_archives.yml +3 -3
  25. data/spec/cassettes/OpenTok_Archives/should_delete_an_archive_by_id.yml +3 -3
  26. data/spec/cassettes/OpenTok_Archives/should_find_archives_by_id.yml +3 -3
  27. data/spec/cassettes/OpenTok_Archives/should_find_archives_with_unknown_properties.yml +3 -3
  28. data/spec/cassettes/OpenTok_Archives/should_find_expired_archives.yml +3 -3
  29. data/spec/cassettes/OpenTok_Archives/should_find_paused_archives_by_id.yml +3 -3
  30. data/spec/cassettes/OpenTok_Archives/should_stop_archives.yml +3 -3
  31. data/spec/cassettes/OpenTok_Archives/when_many_archives_are_created/should_return_all_archives.yml +3 -3
  32. data/spec/cassettes/OpenTok_Archives/when_many_archives_are_created/should_return_archives_with_an_offset.yml +4 -4
  33. data/spec/cassettes/OpenTok_Archives/when_many_archives_are_created/should_return_count_number_of_archives.yml +4 -4
  34. data/spec/cassettes/OpenTok_Archives/when_many_archives_are_created/should_return_part_of_the_archives_when_using_offset_and_count.yml +4 -4
  35. data/spec/cassettes/OpenTok_Archives/when_many_archives_are_created/should_return_session_archives.yml +71 -0
  36. data/spec/cassettes/OpenTok_OpenTok/when_initialized_properly/_create_session/creates_always_archived_sessions.yml +2 -2
  37. data/spec/cassettes/OpenTok_OpenTok/when_initialized_properly/_create_session/creates_default_sessions.yml +2 -2
  38. data/spec/cassettes/OpenTok_OpenTok/when_initialized_properly/_create_session/creates_relayed_media_sessions.yml +2 -2
  39. data/spec/cassettes/OpenTok_OpenTok/when_initialized_properly/_create_session/creates_relayed_media_sessions_for_invalid_media_modes.yml +2 -2
  40. data/spec/cassettes/OpenTok_OpenTok/when_initialized_properly/_create_session/creates_relayed_media_sessions_with_a_location_hint.yml +2 -2
  41. data/spec/cassettes/OpenTok_OpenTok/when_initialized_properly/_create_session/creates_routed_media_sessions.yml +2 -2
  42. data/spec/cassettes/OpenTok_OpenTok/when_initialized_properly/_create_session/creates_routed_media_sessions_with_a_location_hint.yml +2 -2
  43. data/spec/cassettes/OpenTok_OpenTok/when_initialized_properly/_create_session/creates_sessions_with_a_location_hint.yml +2 -2
  44. 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
  45. data/spec/matchers/token.rb +1 -2
  46. data/spec/opentok/archives_spec.rb +16 -0
  47. data/spec/opentok/opentok_spec.rb +5 -0
  48. data/spec/opentok/session_spec.rb +5 -0
  49. data/spec/shared/opentok_generates_tokens.rb +5 -25
  50. data/spec/shared/session_generates_tokens.rb +5 -0
  51. metadata +49 -84
  52. data/doc/OpenTok.html +0 -418
  53. data/doc/OpenTok/Archive.html +0 -1607
  54. data/doc/OpenTok/ArchiveList.html +0 -216
  55. data/doc/OpenTok/Archives.html +0 -1101
  56. data/doc/OpenTok/Client.html +0 -695
  57. data/doc/OpenTok/HashExtensions.html +0 -184
  58. data/doc/OpenTok/OpenTok.html +0 -1083
  59. data/doc/OpenTok/OpenTokArchiveError.html +0 -142
  60. data/doc/OpenTok/OpenTokAuthenticationError.html +0 -143
  61. data/doc/OpenTok/OpenTokError.html +0 -138
  62. data/doc/OpenTok/Session.html +0 -757
  63. data/doc/OpenTok/TokenGenerator.html +0 -204
  64. data/doc/OpenTok/TokenGenerator/ClassMethods.html +0 -187
  65. data/doc/README.md +0 -15
  66. data/doc/_index.html +0 -197
  67. data/doc/class_list.html +0 -58
  68. data/doc/css/common.css +0 -1
  69. data/doc/css/full_list.css +0 -57
  70. data/doc/css/style.css +0 -339
  71. data/doc/file.README.html +0 -87
  72. data/doc/file_list.html +0 -60
  73. data/doc/frames.html +0 -26
  74. data/doc/index.html +0 -87
  75. data/doc/js/app.js +0 -219
  76. data/doc/js/full_list.js +0 -181
  77. data/doc/js/jquery.js +0 -4
  78. data/doc/method_list.html +0 -261
  79. data/doc/top-level-namespace.html +0 -112
@@ -1,216 +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::ArchiveList
8
-
9
- &mdash; 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/ArchiveList.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> &raquo;
35
- <span class='title'><span class='object_link'><a href="../OpenTok.html" title="OpenTok (module)">OpenTok</a></span></span>
36
- &raquo;
37
- <span class="title">ArchiveList</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::ArchiveList
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">Array</span>
77
-
78
- <ul class="fullTree">
79
- <li>Object</li>
80
-
81
- <li class="next">Array</li>
82
-
83
- <li class="next">OpenTok::ArchiveList</li>
84
-
85
- </ul>
86
- <a href="#" class="inheritanceTree">show all</a>
87
-
88
- </dd>
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
- <dt class="r2 last">Defined in:</dt>
99
- <dd class="r2 last">lib/opentok/archive_list.rb</dd>
100
-
101
- </dl>
102
- <div class="clear"></div>
103
-
104
- <h2>Overview</h2><div class="docstring">
105
- <div class="discussion">
106
-
107
- <p>A class for accessing an array of Archive objects.</p>
108
-
109
-
110
- </div>
111
- </div>
112
- <div class="tags">
113
-
114
-
115
- </div>
116
-
117
-
118
-
119
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
120
- <ul class="summary">
121
-
122
- <li class="public ">
123
- <span class="summary_signature">
124
-
125
- <a href="#total-instance_method" title="#total (instance method)">- (Object) <strong>total</strong> </a>
126
-
127
-
128
-
129
- </span>
130
-
131
-
132
-
133
-
134
- <span class="note title readonly">readonly</span>
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
- <span class="summary_desc"><div class='inline'>
145
- <p>The total number archives.</p>
146
- </div></span>
147
-
148
- </li>
149
-
150
-
151
- </ul>
152
-
153
-
154
-
155
-
156
-
157
-
158
- <div id="instance_attr_details" class="attr_details">
159
- <h2>Instance Attribute Details</h2>
160
-
161
-
162
- <span id=""></span>
163
- <div class="method_details first">
164
- <h3 class="signature first" id="total-instance_method">
165
-
166
- - (<tt>Object</tt>) <strong>total</strong> <span class="extras">(readonly)</span>
167
-
168
-
169
-
170
-
171
-
172
- </h3><div class="docstring">
173
- <div class="discussion">
174
-
175
- <p>The total number archives.</p>
176
-
177
-
178
- </div>
179
- </div>
180
- <div class="tags">
181
-
182
-
183
- </div><table class="source_code">
184
- <tr>
185
- <td>
186
- <pre class="lines">
187
-
188
-
189
- 8
190
- 9
191
- 10</pre>
192
- </td>
193
- <td>
194
- <pre class="code"><span class="info file"># File 'lib/opentok/archive_list.rb', line 8</span>
195
-
196
- <span class='kw'>def</span> <span class='id identifier rubyid_total'>total</span>
197
- <span class='ivar'>@total</span>
198
- <span class='kw'>end</span></pre>
199
- </td>
200
- </tr>
201
- </table>
202
- </div>
203
-
204
- </div>
205
-
206
-
207
- </div>
208
-
209
- <div id="footer">
210
- Generated on Mon May 25 15:52:46 2015 by
211
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
212
- 0.8.7.6 (ruby-1.9.3).
213
- </div>
214
-
215
- </body>
216
- </html>
@@ -1,1101 +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::Archives
8
-
9
- &mdash; 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/Archives.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> &raquo;
35
- <span class='title'><span class='object_link'><a href="../OpenTok.html" title="OpenTok (module)">OpenTok</a></span></span>
36
- &raquo;
37
- <span class="title">Archives</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::Archives
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::Archives</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/archives.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>A class for working with OpenTok archives.</p>
106
-
107
-
108
- </div>
109
- </div>
110
- <div class="tags">
111
-
112
-
113
- </div>
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
- <h2>
122
- Instance Method Summary
123
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
124
- </h2>
125
-
126
- <ul class="summary">
127
-
128
- <li class="public ">
129
- <span class="summary_signature">
130
-
131
- <a href="#all-instance_method" title="#all (instance method)">- (ArchiveList) <strong>all</strong>(options = {}) </a>
132
-
133
-
134
-
135
- </span>
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
- <span class="summary_desc"><div class='inline'>
146
- <p>Returns an ArchiveList, which is an array of archives that are completed
147
- and in-progress, for your API key.</p>
148
- </div></span>
149
-
150
- </li>
151
-
152
-
153
- <li class="public ">
154
- <span class="summary_signature">
155
-
156
- <a href="#create-instance_method" title="#create (instance method)">- (Archive) <strong>create</strong>(session_id, options = {}) </a>
157
-
158
-
159
-
160
- </span>
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
- <span class="summary_desc"><div class='inline'>
171
- <p>Starts archiving an OpenTok session.</p>
172
- </div></span>
173
-
174
- </li>
175
-
176
-
177
- <li class="public ">
178
- <span class="summary_signature">
179
-
180
- <a href="#delete_by_id-instance_method" title="#delete_by_id (instance method)">- (Object) <strong>delete_by_id</strong>(archive_id) </a>
181
-
182
-
183
-
184
- </span>
185
-
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
- <span class="summary_desc"><div class='inline'>
195
- <p>Deletes an OpenTok archive.</p>
196
- </div></span>
197
-
198
- </li>
199
-
200
-
201
- <li class="public ">
202
- <span class="summary_signature">
203
-
204
- <a href="#find-instance_method" title="#find (instance method)">- (Archive) <strong>find</strong>(archive_id) </a>
205
-
206
-
207
-
208
- </span>
209
-
210
-
211
-
212
-
213
-
214
-
215
-
216
-
217
-
218
- <span class="summary_desc"><div class='inline'>
219
- <p>Gets an Archive object for the given archive ID.</p>
220
- </div></span>
221
-
222
- </li>
223
-
224
-
225
- <li class="public ">
226
- <span class="summary_signature">
227
-
228
- <a href="#stop_by_id-instance_method" title="#stop_by_id (instance method)">- (Archive) <strong>stop_by_id</strong>(archive_id) </a>
229
-
230
-
231
-
232
- </span>
233
-
234
-
235
-
236
-
237
-
238
-
239
-
240
-
241
-
242
- <span class="summary_desc"><div class='inline'>
243
- <p>Stops an OpenTok archive that is being recorded.</p>
244
- </div></span>
245
-
246
- </li>
247
-
248
-
249
- </ul>
250
-
251
-
252
-
253
-
254
- <div id="instance_method_details" class="method_details_list">
255
- <h2>Instance Method Details</h2>
256
-
257
-
258
- <div class="method_details first">
259
- <h3 class="signature first" id="all-instance_method">
260
-
261
- - (<tt><span class='object_link'><a href="ArchiveList.html" title="OpenTok::ArchiveList (class)">ArchiveList</a></span></tt>) <strong>all</strong>(options = {})
262
-
263
-
264
-
265
-
266
-
267
- </h3><div class="docstring">
268
- <div class="discussion">
269
-
270
- <p>Returns an ArchiveList, which is an array of archives that are completed
271
- and in-progress, for your API key.</p>
272
-
273
-
274
- </div>
275
- </div>
276
- <div class="tags">
277
- <p class="tag_title">Parameters:</p>
278
- <ul class="param">
279
-
280
- <li>
281
-
282
- <span class='name'>options</span>
283
-
284
-
285
- <span class='type'>(<tt>Hash</tt>)</span>
286
-
287
-
288
- <em class="default">(defaults to: <tt>{}</tt>)</em>
289
-
290
-
291
- &mdash;
292
- <div class='inline'>
293
- <p>A hash with keys defining which range of archives to retrieve.</p>
294
- </div>
295
-
296
- </li>
297
-
298
- </ul>
299
-
300
-
301
-
302
-
303
- <p class="tag_title">Options Hash (<tt>options</tt>):</p>
304
- <ul class="option">
305
-
306
- <li>
307
- <span class="name">:offset</span>
308
- <span class="type">(<tt>integer</tt>)</span>
309
- <span class="default">
310
-
311
- </span>
312
-
313
- &mdash; <div class='inline'>
314
- <p>Optional. The index offset of the first archive. 0 is offset of the most
315
- recently started archive. 1 is the offset of the archive that started prior
316
- to the most recent archive. If you do not specify an offset, 0 is used.</p>
317
- </div>
318
-
319
- </li>
320
-
321
- <li>
322
- <span class="name">:count</span>
323
- <span class="type">(<tt>integer</tt>)</span>
324
- <span class="default">
325
-
326
- </span>
327
-
328
- &mdash; <div class='inline'>
329
- <p>Optional. The number of archives to be returned. The maximum number of
330
- archives returned is 1000.</p>
331
- </div>
332
-
333
- </li>
334
-
335
- </ul>
336
-
337
-
338
- <p class="tag_title">Returns:</p>
339
- <ul class="return">
340
-
341
- <li>
342
-
343
-
344
- <span class='type'>(<tt><span class='object_link'><a href="ArchiveList.html" title="OpenTok::ArchiveList (class)">ArchiveList</a></span></tt>)</span>
345
-
346
-
347
-
348
- &mdash;
349
- <div class='inline'>
350
- <p>An ArchiveList object, which is an array of Archive objects.</p>
351
- </div>
352
-
353
- </li>
354
-
355
- </ul>
356
- <p class="tag_title">Raises:</p>
357
- <ul class="raise">
358
-
359
- <li>
360
-
361
-
362
- <span class='type'>(<tt>ArgumentError</tt>)</span>
363
-
364
-
365
-
366
- </li>
367
-
368
- </ul>
369
-
370
- </div><table class="source_code">
371
- <tr>
372
- <td>
373
- <pre class="lines">
374
-
375
-
376
- 101
377
- 102
378
- 103
379
- 104
380
- 105</pre>
381
- </td>
382
- <td>
383
- <pre class="code"><span class="info file"># File 'lib/opentok/archives.rb', line 101</span>
384
-
385
- <span class='kw'>def</span> <span class='id identifier rubyid_all'>all</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
386
- <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Limit is invalid</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:count</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='kw'>or</span> <span class='lparen'>(</span><span class='int'>0</span><span class='op'>..</span><span class='int'>100</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:count</span><span class='rbracket'>]</span>
387
- <span class='id identifier rubyid_archive_list_json'>archive_list_json</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_list_archives'>list_archives</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:offset</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:count</span><span class='rbracket'>]</span><span class='rparen'>)</span>
388
- <span class='const'>ArchiveList</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_archive_list_json'>archive_list_json</span>
389
- <span class='kw'>end</span></pre>
390
- </td>
391
- </tr>
392
- </table>
393
- </div>
394
-
395
- <div class="method_details ">
396
- <h3 class="signature " id="create-instance_method">
397
-
398
- - (<tt><span class='object_link'><a href="Archive.html" title="OpenTok::Archive (class)">Archive</a></span></tt>) <strong>create</strong>(session_id, options = {})
399
-
400
-
401
-
402
-
403
-
404
- </h3><div class="docstring">
405
- <div class="discussion">
406
-
407
- <p>Starts archiving an OpenTok session.</p>
408
-
409
- <p>Clients must be actively connected to the OpenTok session for you to
410
- successfully start recording an archive.</p>
411
-
412
- <p>You can only record one archive at a time for a given session. You can only
413
- record archives of sessions that use the OpenTok Media Router (sessions
414
- with the media mode set to routed); you cannot archive sessions with the
415
- media mode set to relayed.</p>
416
-
417
- <p>For more information on archiving, see the
418
- <a href="https://tokbox.com/opentok/tutorials/archiving" target="_parent" title="OpenTok archiving">OpenTok archiving</a>
419
- programming guide.</p>
420
-
421
- <p>:name.</p>
422
-
423
-
424
- </div>
425
- </div>
426
- <div class="tags">
427
- <p class="tag_title">Parameters:</p>
428
- <ul class="param">
429
-
430
- <li>
431
-
432
- <span class='name'>session_id</span>
433
-
434
-
435
- <span class='type'>(<tt>String</tt>)</span>
436
-
437
-
438
-
439
- &mdash;
440
- <div class='inline'>
441
- <p>The session ID of the OpenTok session to archive.</p>
442
- </div>
443
-
444
- </li>
445
-
446
- <li>
447
-
448
- <span class='name'>options</span>
449
-
450
-
451
- <span class='type'>(<tt>Hash</tt>)</span>
452
-
453
-
454
- <em class="default">(defaults to: <tt>{}</tt>)</em>
455
-
456
-
457
- &mdash;
458
- <div class='inline'>
459
- <p>A hash with the key ‘name’, ‘has_audio’, and ‘has_video’ (or</p>
460
- </div>
461
-
462
- </li>
463
-
464
- </ul>
465
-
466
-
467
-
468
-
469
-
470
-
471
- <p class="tag_title">Options Hash (<tt>options</tt>):</p>
472
- <ul class="option">
473
-
474
- <li>
475
- <span class="name">:name</span>
476
- <span class="type">(<tt>String</tt>)</span>
477
- <span class="default">
478
-
479
- </span>
480
-
481
- &mdash; <div class='inline'>
482
- <p>This is the name of the archive. You can use this name to identify the
483
- archive. It is a property of the Archive object, and it is a property of
484
- archive-related events in the OpenTok client SDKs.</p>
485
- </div>
486
-
487
- </li>
488
-
489
- <li>
490
- <span class="name">:has_audio</span>
491
- <span class="type">(<tt>true</tt>, <tt>false</tt>)</span>
492
- <span class="default">
493
-
494
- </span>
495
-
496
- &mdash; <div class='inline'>
497
- <p>Whether the archive will include an audio track (<tt>true</tt>) or not
498
- <tt>false</tt>). The default value is <tt>true</tt> (an audio track is
499
- included). If you set both <tt>has_audio</tt> and <tt>has_video</tt> to
500
- <tt>false</tt>, the call to the <tt>create()</tt> method results in an
501
- error.</p>
502
- </div>
503
-
504
- </li>
505
-
506
- <li>
507
- <span class="name">:has_video</span>
508
- <span class="type">(<tt>true</tt>, <tt>false</tt>)</span>
509
- <span class="default">
510
-
511
- </span>
512
-
513
- &mdash; <div class='inline'>
514
- <p>Whether the archive will include a video track (<tt>true</tt>) or not
515
- <tt>false</tt>). The default value is <tt>true</tt> (a video track is
516
- included). If you set both <tt>has_audio</tt> and <tt>has_video</tt> to
517
- <tt>false</tt>, the call to the <tt>create()</tt> method results in an
518
- error.</p>
519
- </div>
520
-
521
- </li>
522
-
523
- <li>
524
- <span class="name">:output_mode</span>
525
- <span class="type">(<tt>String</tt>)</span>
526
- <span class="default">
527
-
528
- </span>
529
-
530
- &mdash; <div class='inline'>
531
- <p>Whether all streams in the archive are recorded to a single file
532
- (<tt>:composed</tt>, the default) or to individual files
533
- (<tt>:individual</tt>). For more information on archiving and the archive
534
- file formats, see the <a href="https://tokbox.com/opentok/tutorials/archiving" target="_parent" title="OpenTok archiving">OpenTok archiving</a> programming guide.</p>
535
- </div>
536
-
537
- </li>
538
-
539
- </ul>
540
-
541
-
542
- <p class="tag_title">Returns:</p>
543
- <ul class="return">
544
-
545
- <li>
546
-
547
-
548
- <span class='type'>(<tt><span class='object_link'><a href="Archive.html" title="OpenTok::Archive (class)">Archive</a></span></tt>)</span>
549
-
550
-
551
-
552
- &mdash;
553
- <div class='inline'>
554
- <p>The Archive object, which includes properties defining the archive,
555
- including the archive ID.</p>
556
- </div>
557
-
558
- </li>
559
-
560
- </ul>
561
- <p class="tag_title">Raises:</p>
562
- <ul class="raise">
563
-
564
- <li>
565
-
566
-
567
- <span class='type'>(<tt><span class='object_link'><a href="OpenTokArchiveError.html" title="OpenTok::OpenTokArchiveError (class)">OpenTokArchiveError</a></span></tt>)</span>
568
-
569
-
570
-
571
- &mdash;
572
- <div class='inline'>
573
- <p>The archive could not be started. The request was invalid or the session
574
- has no connected clients.</p>
575
- </div>
576
-
577
- </li>
578
-
579
- <li>
580
-
581
-
582
- <span class='type'>(<tt><span class='object_link'><a href="OpenTokAuthenticationError.html" title="OpenTok::OpenTokAuthenticationError (class)">OpenTokAuthenticationError</a></span></tt>)</span>
583
-
584
-
585
-
586
- &mdash;
587
- <div class='inline'>
588
- <p>Authentication failed while starting an archive. Invalid API key.</p>
589
- </div>
590
-
591
- </li>
592
-
593
- <li>
594
-
595
-
596
- <span class='type'>(<tt><span class='object_link'><a href="OpenTokArchiveError.html" title="OpenTok::OpenTokArchiveError (class)">OpenTokArchiveError</a></span></tt>)</span>
597
-
598
-
599
-
600
- &mdash;
601
- <div class='inline'>
602
- <p>The archive could not be started. The session ID does not exist.</p>
603
- </div>
604
-
605
- </li>
606
-
607
- <li>
608
-
609
-
610
- <span class='type'>(<tt><span class='object_link'><a href="OpenTokArchiveError.html" title="OpenTok::OpenTokArchiveError (class)">OpenTokArchiveError</a></span></tt>)</span>
611
-
612
-
613
-
614
- &mdash;
615
- <div class='inline'>
616
- <p>The archive could not be started. The session could be peer-to-peer or the
617
- session is already being recorded.</p>
618
- </div>
619
-
620
- </li>
621
-
622
- <li>
623
-
624
-
625
- <span class='type'>(<tt><span class='object_link'><a href="OpenTokArchiveError.html" title="OpenTok::OpenTokArchiveError (class)">OpenTokArchiveError</a></span></tt>)</span>
626
-
627
-
628
-
629
- &mdash;
630
- <div class='inline'>
631
- <p>The archive could not be started.</p>
632
- </div>
633
-
634
- </li>
635
-
636
- </ul>
637
-
638
- </div><table class="source_code">
639
- <tr>
640
- <td>
641
- <pre class="lines">
642
-
643
-
644
- 59
645
- 60
646
- 61
647
- 62
648
- 63
649
- 64
650
- 65
651
- 66
652
- 67
653
- 68
654
- 69
655
- 70
656
- 71
657
- 72
658
- 73</pre>
659
- </td>
660
- <td>
661
- <pre class="code"><span class="info file"># File 'lib/opentok/archives.rb', line 59</span>
662
-
663
- <span class='kw'>def</span> <span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='id identifier rubyid_session_id'>session_id</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
664
- <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>session_id not provided</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_session_id'>session_id</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
665
-
666
- <span class='comment'># normalize opts so all keys are symbols and only include valid_opts
667
- </span> <span class='id identifier rubyid_valid_opts'>valid_opts</span> <span class='op'>=</span> <span class='lbracket'>[</span> <span class='symbol'>:name</span><span class='comma'>,</span> <span class='symbol'>:has_audio</span><span class='comma'>,</span> <span class='symbol'>:has_video</span><span class='comma'>,</span> <span class='symbol'>:output_mode</span> <span class='rbracket'>]</span>
668
- <span class='id identifier rubyid_opts'>opts</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_inject'>inject</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_m'>m</span><span class='comma'>,</span><span class='lparen'>(</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span><span class='id identifier rubyid_v'>v</span><span class='rparen'>)</span><span class='op'>|</span>
669
- <span class='kw'>if</span> <span class='id identifier rubyid_valid_opts'>valid_opts</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span> <span class='id identifier rubyid_k'>k</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
670
- <span class='id identifier rubyid_m'>m</span><span class='lbracket'>[</span><span class='id identifier rubyid_k'>k</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_v'>v</span>
671
- <span class='kw'>end</span>
672
- <span class='id identifier rubyid_m'>m</span>
673
- <span class='kw'>end</span>
674
-
675
- <span class='id identifier rubyid_archive_json'>archive_json</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_start_archive'>start_archive</span><span class='lparen'>(</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='rparen'>)</span>
676
- <span class='const'>Archive</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_archive_json'>archive_json</span>
677
- <span class='kw'>end</span></pre>
678
- </td>
679
- </tr>
680
- </table>
681
- </div>
682
-
683
- <div class="method_details ">
684
- <h3 class="signature " id="delete_by_id-instance_method">
685
-
686
- - (<tt>Object</tt>) <strong>delete_by_id</strong>(archive_id)
687
-
688
-
689
-
690
-
691
-
692
- </h3><div class="docstring">
693
- <div class="discussion">
694
-
695
- <p>Deletes an OpenTok archive.</p>
696
-
697
- <p>You can only delete an archive which has a status of "available",
698
- "uploaded", or "deleted". Deleting an archive removes its record from the
699
- list of archives. For an "available" archive, it also removes the archive
700
- file, making it unavailable for download. For a "deleted" archive, the
701
- archive remains deleted.</p>
702
-
703
-
704
- </div>
705
- </div>
706
- <div class="tags">
707
- <p class="tag_title">Parameters:</p>
708
- <ul class="param">
709
-
710
- <li>
711
-
712
- <span class='name'>archive_id</span>
713
-
714
-
715
- <span class='type'>(<tt>String</tt>)</span>
716
-
717
-
718
-
719
- &mdash;
720
- <div class='inline'>
721
- <p>The archive ID of the archive you want to delete.</p>
722
- </div>
723
-
724
- </li>
725
-
726
- </ul>
727
-
728
- <p class="tag_title">Raises:</p>
729
- <ul class="raise">
730
-
731
- <li>
732
-
733
-
734
- <span class='type'>(<tt><span class='object_link'><a href="OpenTokAuthenticationError.html" title="OpenTok::OpenTokAuthenticationError (class)">OpenTokAuthenticationError</a></span></tt>)</span>
735
-
736
-
737
-
738
- &mdash;
739
- <div class='inline'>
740
- <p>Authentication failed or an invalid archive ID was given.</p>
741
- </div>
742
-
743
- </li>
744
-
745
- <li>
746
-
747
-
748
- <span class='type'>(<tt><span class='object_link'><a href="OpenTokArchiveError.html" title="OpenTok::OpenTokArchiveError (class)">OpenTokArchiveError</a></span></tt>)</span>
749
-
750
-
751
-
752
- &mdash;
753
- <div class='inline'>
754
- <p>The archive could not be deleted. The status must be ‘available’,
755
- ‘deleted’, or ‘uploaded’.</p>
756
- </div>
757
-
758
- </li>
759
-
760
- <li>
761
-
762
-
763
- <span class='type'>(<tt><span class='object_link'><a href="OpenTokArchiveError.html" title="OpenTok::OpenTokArchiveError (class)">OpenTokArchiveError</a></span></tt>)</span>
764
-
765
-
766
-
767
- &mdash;
768
- <div class='inline'>
769
- <p>The archive could not be deleted.</p>
770
- </div>
771
-
772
- </li>
773
-
774
- </ul>
775
-
776
- </div><table class="source_code">
777
- <tr>
778
- <td>
779
- <pre class="lines">
780
-
781
-
782
- 141
783
- 142
784
- 143
785
- 144
786
- 145</pre>
787
- </td>
788
- <td>
789
- <pre class="code"><span class="info file"># File 'lib/opentok/archives.rb', line 141</span>
790
-
791
- <span class='kw'>def</span> <span class='id identifier rubyid_delete_by_id'>delete_by_id</span><span class='lparen'>(</span><span class='id identifier rubyid_archive_id'>archive_id</span><span class='rparen'>)</span>
792
- <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>archive_id not provided</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_archive_id'>archive_id</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
793
- <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_delete_archive'>delete_archive</span><span class='lparen'>(</span><span class='id identifier rubyid_archive_id'>archive_id</span><span class='rparen'>)</span>
794
- <span class='lparen'>(</span><span class='int'>200</span><span class='op'>..</span><span class='int'>300</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span> <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_code'>code</span>
795
- <span class='kw'>end</span></pre>
796
- </td>
797
- </tr>
798
- </table>
799
- </div>
800
-
801
- <div class="method_details ">
802
- <h3 class="signature " id="find-instance_method">
803
-
804
- - (<tt><span class='object_link'><a href="Archive.html" title="OpenTok::Archive (class)">Archive</a></span></tt>) <strong>find</strong>(archive_id)
805
-
806
-
807
-
808
-
809
-
810
- </h3><div class="docstring">
811
- <div class="discussion">
812
-
813
- <p>Gets an Archive object for the given archive ID.</p>
814
-
815
-
816
- </div>
817
- </div>
818
- <div class="tags">
819
- <p class="tag_title">Parameters:</p>
820
- <ul class="param">
821
-
822
- <li>
823
-
824
- <span class='name'>archive_id</span>
825
-
826
-
827
- <span class='type'>(<tt>String</tt>)</span>
828
-
829
-
830
-
831
- &mdash;
832
- <div class='inline'>
833
- <p>The archive ID.</p>
834
- </div>
835
-
836
- </li>
837
-
838
- </ul>
839
-
840
- <p class="tag_title">Returns:</p>
841
- <ul class="return">
842
-
843
- <li>
844
-
845
-
846
- <span class='type'>(<tt><span class='object_link'><a href="Archive.html" title="OpenTok::Archive (class)">Archive</a></span></tt>)</span>
847
-
848
-
849
-
850
- &mdash;
851
- <div class='inline'>
852
- <p>The Archive object.</p>
853
- </div>
854
-
855
- </li>
856
-
857
- </ul>
858
- <p class="tag_title">Raises:</p>
859
- <ul class="raise">
860
-
861
- <li>
862
-
863
-
864
- <span class='type'>(<tt><span class='object_link'><a href="OpenTokArchiveError.html" title="OpenTok::OpenTokArchiveError (class)">OpenTokArchiveError</a></span></tt>)</span>
865
-
866
-
867
-
868
- &mdash;
869
- <div class='inline'>
870
- <p>The archive could not be retrieved. The archive ID is invalid.</p>
871
- </div>
872
-
873
- </li>
874
-
875
- <li>
876
-
877
-
878
- <span class='type'>(<tt><span class='object_link'><a href="OpenTokAuthenticationError.html" title="OpenTok::OpenTokAuthenticationError (class)">OpenTokAuthenticationError</a></span></tt>)</span>
879
-
880
-
881
-
882
- &mdash;
883
- <div class='inline'>
884
- <p>Authentication failed while retrieving the archive. Invalid API key.</p>
885
- </div>
886
-
887
- </li>
888
-
889
- <li>
890
-
891
-
892
- <span class='type'>(<tt><span class='object_link'><a href="OpenTokArchiveError.html" title="OpenTok::OpenTokArchiveError (class)">OpenTokArchiveError</a></span></tt>)</span>
893
-
894
-
895
-
896
- &mdash;
897
- <div class='inline'>
898
- <p>The archive could not be retrieved.</p>
899
- </div>
900
-
901
- </li>
902
-
903
- </ul>
904
-
905
- </div><table class="source_code">
906
- <tr>
907
- <td>
908
- <pre class="lines">
909
-
910
-
911
- 84
912
- 85
913
- 86
914
- 87
915
- 88</pre>
916
- </td>
917
- <td>
918
- <pre class="code"><span class="info file"># File 'lib/opentok/archives.rb', line 84</span>
919
-
920
- <span class='kw'>def</span> <span class='id identifier rubyid_find'>find</span><span class='lparen'>(</span><span class='id identifier rubyid_archive_id'>archive_id</span><span class='rparen'>)</span>
921
- <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>archive_id not provided</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_archive_id'>archive_id</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
922
- <span class='id identifier rubyid_archive_json'>archive_json</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_get_archive'>get_archive</span><span class='lparen'>(</span><span class='id identifier rubyid_archive_id'>archive_id</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='rparen'>)</span>
923
- <span class='const'>Archive</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_archive_json'>archive_json</span>
924
- <span class='kw'>end</span></pre>
925
- </td>
926
- </tr>
927
- </table>
928
- </div>
929
-
930
- <div class="method_details ">
931
- <h3 class="signature " id="stop_by_id-instance_method">
932
-
933
- - (<tt><span class='object_link'><a href="Archive.html" title="OpenTok::Archive (class)">Archive</a></span></tt>) <strong>stop_by_id</strong>(archive_id)
934
-
935
-
936
-
937
-
938
-
939
- </h3><div class="docstring">
940
- <div class="discussion">
941
-
942
- <p>Stops an OpenTok archive that is being recorded.</p>
943
-
944
- <p>Archives automatically stop recording after 90 minutes or when all clients
945
- have disconnected from the session being archived.</p>
946
-
947
-
948
- </div>
949
- </div>
950
- <div class="tags">
951
- <p class="tag_title">Parameters:</p>
952
- <ul class="param">
953
-
954
- <li>
955
-
956
- <span class='name'>archive_id</span>
957
-
958
-
959
- <span class='type'>(<tt>String</tt>)</span>
960
-
961
-
962
-
963
- &mdash;
964
- <div class='inline'>
965
- <p>The archive ID of the archive you want to stop recording.</p>
966
- </div>
967
-
968
- </li>
969
-
970
- </ul>
971
-
972
- <p class="tag_title">Returns:</p>
973
- <ul class="return">
974
-
975
- <li>
976
-
977
-
978
- <span class='type'>(<tt><span class='object_link'><a href="Archive.html" title="OpenTok::Archive (class)">Archive</a></span></tt>)</span>
979
-
980
-
981
-
982
- &mdash;
983
- <div class='inline'>
984
- <p>The Archive object corresponding to the archive being stopped.</p>
985
- </div>
986
-
987
- </li>
988
-
989
- </ul>
990
- <p class="tag_title">Raises:</p>
991
- <ul class="raise">
992
-
993
- <li>
994
-
995
-
996
- <span class='type'>(<tt><span class='object_link'><a href="OpenTokArchiveError.html" title="OpenTok::OpenTokArchiveError (class)">OpenTokArchiveError</a></span></tt>)</span>
997
-
998
-
999
-
1000
- &mdash;
1001
- <div class='inline'>
1002
- <p>The archive could not be stopped. The request was invalid.</p>
1003
- </div>
1004
-
1005
- </li>
1006
-
1007
- <li>
1008
-
1009
-
1010
- <span class='type'>(<tt><span class='object_link'><a href="OpenTokAuthenticationError.html" title="OpenTok::OpenTokAuthenticationError (class)">OpenTokAuthenticationError</a></span></tt>)</span>
1011
-
1012
-
1013
-
1014
- &mdash;
1015
- <div class='inline'>
1016
- <p>Authentication failed while stopping an archive.</p>
1017
- </div>
1018
-
1019
- </li>
1020
-
1021
- <li>
1022
-
1023
-
1024
- <span class='type'>(<tt><span class='object_link'><a href="OpenTokArchiveError.html" title="OpenTok::OpenTokArchiveError (class)">OpenTokArchiveError</a></span></tt>)</span>
1025
-
1026
-
1027
-
1028
- &mdash;
1029
- <div class='inline'>
1030
- <p>The archive could not be stopped. The archive ID does not exist.</p>
1031
- </div>
1032
-
1033
- </li>
1034
-
1035
- <li>
1036
-
1037
-
1038
- <span class='type'>(<tt><span class='object_link'><a href="OpenTokArchiveError.html" title="OpenTok::OpenTokArchiveError (class)">OpenTokArchiveError</a></span></tt>)</span>
1039
-
1040
-
1041
-
1042
- &mdash;
1043
- <div class='inline'>
1044
- <p>The archive could not be stopped. The archive is not currently recording.</p>
1045
- </div>
1046
-
1047
- </li>
1048
-
1049
- <li>
1050
-
1051
-
1052
- <span class='type'>(<tt><span class='object_link'><a href="OpenTokArchiveError.html" title="OpenTok::OpenTokArchiveError (class)">OpenTokArchiveError</a></span></tt>)</span>
1053
-
1054
-
1055
-
1056
- &mdash;
1057
- <div class='inline'>
1058
- <p>The archive could not be started.</p>
1059
- </div>
1060
-
1061
- </li>
1062
-
1063
- </ul>
1064
-
1065
- </div><table class="source_code">
1066
- <tr>
1067
- <td>
1068
- <pre class="lines">
1069
-
1070
-
1071
- 122
1072
- 123
1073
- 124
1074
- 125
1075
- 126</pre>
1076
- </td>
1077
- <td>
1078
- <pre class="code"><span class="info file"># File 'lib/opentok/archives.rb', line 122</span>
1079
-
1080
- <span class='kw'>def</span> <span class='id identifier rubyid_stop_by_id'>stop_by_id</span><span class='lparen'>(</span><span class='id identifier rubyid_archive_id'>archive_id</span><span class='rparen'>)</span>
1081
- <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>archive_id not provided</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_archive_id'>archive_id</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
1082
- <span class='id identifier rubyid_archive_json'>archive_json</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_stop_archive'>stop_archive</span><span class='lparen'>(</span><span class='id identifier rubyid_archive_id'>archive_id</span><span class='rparen'>)</span>
1083
- <span class='const'>Archive</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='kw'>self</span><span class='comma'>,</span> <span class='id identifier rubyid_archive_json'>archive_json</span>
1084
- <span class='kw'>end</span></pre>
1085
- </td>
1086
- </tr>
1087
- </table>
1088
- </div>
1089
-
1090
- </div>
1091
-
1092
- </div>
1093
-
1094
- <div id="footer">
1095
- Generated on Mon May 25 15:52:46 2015 by
1096
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1097
- 0.8.7.6 (ruby-1.9.3).
1098
- </div>
1099
-
1100
- </body>
1101
- </html>