react-covideo-embed 1.0.50 → 1.0.52
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.
- package/build/app/pages/insertVideo/components/CopyVideoButton.d.ts +2 -1
- package/build/app/pages/insertVideo/components/InsertButton.d.ts +2 -1
- package/build/app/pages/merge/types.d.ts +10 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +93 -93
- package/build/lib/api/inventoryApi.d.ts +37 -1
- package/build/lib/api/lesa/useLesaTvVideosQuery.d.ts +13 -2
- package/build/lib/api/lesa/useLesaVideosMutation.d.ts +1 -0
- package/build/lib/api/videoRequestApi.d.ts +76 -1
- package/build/lib/api/videos/useCreateVideoMutation.d.ts +59 -6
- package/build/lib/api/videosApi.d.ts +23 -2
- package/build/lib/hooks/query/inventoryItem/useGetInventoryItems.d.ts +1 -1
- package/build/lib/hooks/useGoogleTagManager.d.ts +3 -0
- package/build/lib/images/CdkSmallLogoActive.d.ts +2 -0
- package/build/lib/images/CovideoSmallLogoActive.d.ts +2 -0
- package/build/lib/types/gtm.d.ts +34 -0
- package/build/lib/utils/gtm.d.ts +29 -0
- package/package.json +1 -1
- package/storybook-static/357.42a13d21.iframe.bundle.js +1 -0
- package/storybook-static/433.62d42712.iframe.bundle.js +1 -0
- package/storybook-static/447.8daf228e.iframe.bundle.js +402 -0
- package/storybook-static/447.8daf228e.iframe.bundle.js.LICENSE.txt +56 -0
- package/storybook-static/447.8daf228e.iframe.bundle.js.map +1 -0
- package/storybook-static/525.255de6ba.iframe.bundle.js +1 -0
- package/storybook-static/677.18371a2a.iframe.bundle.js +1 -0
- package/storybook-static/757.f4372d22.iframe.bundle.js +95 -0
- package/storybook-static/757.f4372d22.iframe.bundle.js.LICENSE.txt +25 -0
- package/storybook-static/757.f4372d22.iframe.bundle.js.map +1 -0
- package/storybook-static/793.cf38c5c2.iframe.bundle.js +1 -0
- package/storybook-static/908.0e3d7327.iframe.bundle.js +782 -0
- package/storybook-static/908.0e3d7327.iframe.bundle.js.LICENSE.txt +946 -0
- package/storybook-static/908.0e3d7327.iframe.bundle.js.map +1 -0
- package/storybook-static/948.f5c676b7.iframe.bundle.js +1 -0
- package/storybook-static/950.5473fc63.iframe.bundle.js +1 -0
- package/storybook-static/CovideoEmbed-stories.3e1c79bd.iframe.bundle.js +1 -0
- package/storybook-static/favicon.svg +7 -0
- package/storybook-static/iframe.html +481 -0
- package/storybook-static/index.html +155 -0
- package/storybook-static/index.json +1 -0
- package/storybook-static/main.70dd0fa6.iframe.bundle.js +1 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/runtime~main.ceae5404.iframe.bundle.js +1 -0
- package/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-actions-3/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js +12 -0
- package/storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js +60 -0
- package/storybook-static/sb-addons/essentials-controls-2/manager-bundle.js.LEGAL.txt +18 -0
- package/storybook-static/sb-addons/essentials-measure-7/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-measure-7/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-outline-8/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-outline-8/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-toolbars-6/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-toolbars-6/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/links-1/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/links-1/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +3 -0
- package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-common-assets/fonts.css +31 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/WithTooltip-KJL26V4Q-5LS5AN27.js +1 -0
- package/storybook-static/sb-manager/chunk-2IOEGHGR.js +274 -0
- package/storybook-static/sb-manager/chunk-B3YDJJJH.js +347 -0
- package/storybook-static/sb-manager/chunk-BLWCBWKL.js +9 -0
- package/storybook-static/sb-manager/chunk-GUVK2GTO.js +6 -0
- package/storybook-static/sb-manager/chunk-VQTIH3SE.js +186 -0
- package/storybook-static/sb-manager/chunk-ZR5JZWHI.js +1 -0
- package/storybook-static/sb-manager/formatter-2WMMO6ZP-JI7RHVTW.js +58 -0
- package/storybook-static/sb-manager/globals-module-info.js +1 -0
- package/storybook-static/sb-manager/globals-runtime.js +1 -0
- package/storybook-static/sb-manager/globals.js +1 -0
- package/storybook-static/sb-manager/index.js +1 -0
- package/storybook-static/sb-manager/runtime.js +1 -0
- package/storybook-static/sb-manager/syntaxhighlighter-BP7B2CQK-WOJYHKQR.js +1 -0
- package/storybook-static/sb-preview/globals.js +1 -0
- package/storybook-static/sb-preview/runtime.js +156 -0
|
@@ -0,0 +1,946 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
Copyright (c) 2018 Jed Watson.
|
|
3
|
+
Licensed under the MIT License (MIT), see
|
|
4
|
+
http://jedwatson.github.io/classnames
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/*!
|
|
8
|
+
* ### ._obj
|
|
9
|
+
*
|
|
10
|
+
* Quick reference to stored `actual` value for plugin developers.
|
|
11
|
+
*
|
|
12
|
+
* @api private
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/*!
|
|
16
|
+
* ### .ifError(object)
|
|
17
|
+
*
|
|
18
|
+
* Asserts if value is not a false value, and throws if it is a true value.
|
|
19
|
+
* This is added to allow for chai to be a drop-in replacement for Node's
|
|
20
|
+
* assert class.
|
|
21
|
+
*
|
|
22
|
+
* var err = new Error('I am a custom error');
|
|
23
|
+
* assert.ifError(err); // Rethrows err!
|
|
24
|
+
*
|
|
25
|
+
* @name ifError
|
|
26
|
+
* @param {Object} object
|
|
27
|
+
* @namespace Assert
|
|
28
|
+
* @api public
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
/*!
|
|
32
|
+
* Aliases.
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
/*!
|
|
36
|
+
* Assertion Constructor
|
|
37
|
+
*
|
|
38
|
+
* Creates object for chaining.
|
|
39
|
+
*
|
|
40
|
+
* `Assertion` objects contain metadata in the form of flags. Three flags can
|
|
41
|
+
* be assigned during instantiation by passing arguments to this constructor:
|
|
42
|
+
*
|
|
43
|
+
* - `object`: This flag contains the target of the assertion. For example, in
|
|
44
|
+
* the assertion `expect(numKittens).to.equal(7);`, the `object` flag will
|
|
45
|
+
* contain `numKittens` so that the `equal` assertion can reference it when
|
|
46
|
+
* needed.
|
|
47
|
+
*
|
|
48
|
+
* - `message`: This flag contains an optional custom error message to be
|
|
49
|
+
* prepended to the error message that's generated by the assertion when it
|
|
50
|
+
* fails.
|
|
51
|
+
*
|
|
52
|
+
* - `ssfi`: This flag stands for "start stack function indicator". It
|
|
53
|
+
* contains a function reference that serves as the starting point for
|
|
54
|
+
* removing frames from the stack trace of the error that's created by the
|
|
55
|
+
* assertion when it fails. The goal is to provide a cleaner stack trace to
|
|
56
|
+
* end users by removing Chai's internal functions. Note that it only works
|
|
57
|
+
* in environments that support `Error.captureStackTrace`, and only when
|
|
58
|
+
* `Chai.config.includeStack` hasn't been set to `false`.
|
|
59
|
+
*
|
|
60
|
+
* - `lockSsfi`: This flag controls whether or not the given `ssfi` flag
|
|
61
|
+
* should retain its current value, even as assertions are chained off of
|
|
62
|
+
* this object. This is usually set to `true` when creating a new assertion
|
|
63
|
+
* from within another assertion. It's also temporarily set to `true` before
|
|
64
|
+
* an overwritten assertion gets called by the overwriting assertion.
|
|
65
|
+
*
|
|
66
|
+
* - `eql`: This flag contains the deepEqual function to be used by the assertion.
|
|
67
|
+
*
|
|
68
|
+
* @param {Mixed} obj target of the assertion
|
|
69
|
+
* @param {String} msg (optional) custom error message
|
|
70
|
+
* @param {Function} ssfi (optional) starting point for removing stack frames
|
|
71
|
+
* @param {Boolean} lockSsfi (optional) whether or not the ssfi flag is locked
|
|
72
|
+
* @api private
|
|
73
|
+
*/
|
|
74
|
+
|
|
75
|
+
/*!
|
|
76
|
+
* Chai dependencies.
|
|
77
|
+
*/
|
|
78
|
+
|
|
79
|
+
/*!
|
|
80
|
+
* Module dependencies.
|
|
81
|
+
*/
|
|
82
|
+
|
|
83
|
+
/*!
|
|
84
|
+
* Module export.
|
|
85
|
+
*/
|
|
86
|
+
|
|
87
|
+
/*!
|
|
88
|
+
Copyright (c) 2015 Jed Watson.
|
|
89
|
+
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
90
|
+
All rights reserved.
|
|
91
|
+
*/
|
|
92
|
+
|
|
93
|
+
/*!
|
|
94
|
+
* Adapted from jQuery UI core
|
|
95
|
+
*
|
|
96
|
+
* http://jqueryui.com
|
|
97
|
+
*
|
|
98
|
+
* Copyright 2014 jQuery Foundation and other contributors
|
|
99
|
+
* Released under the MIT license.
|
|
100
|
+
* http://jquery.org/license
|
|
101
|
+
*
|
|
102
|
+
* http://api.jqueryui.com/category/ui-core/
|
|
103
|
+
*/
|
|
104
|
+
|
|
105
|
+
/*!
|
|
106
|
+
* Add a chainable method
|
|
107
|
+
*/
|
|
108
|
+
|
|
109
|
+
/*!
|
|
110
|
+
* Assert interface
|
|
111
|
+
*/
|
|
112
|
+
|
|
113
|
+
/*!
|
|
114
|
+
* Assertion Error
|
|
115
|
+
*/
|
|
116
|
+
|
|
117
|
+
/*!
|
|
118
|
+
* Chai - addChainingMethod utility
|
|
119
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
120
|
+
* MIT Licensed
|
|
121
|
+
*/
|
|
122
|
+
|
|
123
|
+
/*!
|
|
124
|
+
* Chai - addLengthGuard utility
|
|
125
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
126
|
+
* MIT Licensed
|
|
127
|
+
*/
|
|
128
|
+
|
|
129
|
+
/*!
|
|
130
|
+
* Chai - addMethod utility
|
|
131
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
132
|
+
* MIT Licensed
|
|
133
|
+
*/
|
|
134
|
+
|
|
135
|
+
/*!
|
|
136
|
+
* Chai - addProperty utility
|
|
137
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
138
|
+
* MIT Licensed
|
|
139
|
+
*/
|
|
140
|
+
|
|
141
|
+
/*!
|
|
142
|
+
* Chai - compareByInspect utility
|
|
143
|
+
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
|
144
|
+
* MIT Licensed
|
|
145
|
+
*/
|
|
146
|
+
|
|
147
|
+
/*!
|
|
148
|
+
* Chai - expectTypes utility
|
|
149
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
150
|
+
* MIT Licensed
|
|
151
|
+
*/
|
|
152
|
+
|
|
153
|
+
/*!
|
|
154
|
+
* Chai - flag utility
|
|
155
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
156
|
+
* MIT Licensed
|
|
157
|
+
*/
|
|
158
|
+
|
|
159
|
+
/*!
|
|
160
|
+
* Chai - getActual utility
|
|
161
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
162
|
+
* MIT Licensed
|
|
163
|
+
*/
|
|
164
|
+
|
|
165
|
+
/*!
|
|
166
|
+
* Chai - getOwnEnumerableProperties utility
|
|
167
|
+
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
|
168
|
+
* MIT Licensed
|
|
169
|
+
*/
|
|
170
|
+
|
|
171
|
+
/*!
|
|
172
|
+
* Chai - getOwnEnumerablePropertySymbols utility
|
|
173
|
+
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
|
174
|
+
* MIT Licensed
|
|
175
|
+
*/
|
|
176
|
+
|
|
177
|
+
/*!
|
|
178
|
+
* Chai - getProperties utility
|
|
179
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
180
|
+
* MIT Licensed
|
|
181
|
+
*/
|
|
182
|
+
|
|
183
|
+
/*!
|
|
184
|
+
* Chai - isNaN utility
|
|
185
|
+
* Copyright(c) 2012-2015 Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
|
|
186
|
+
* MIT Licensed
|
|
187
|
+
*/
|
|
188
|
+
|
|
189
|
+
/*!
|
|
190
|
+
* Chai - isProxyEnabled helper
|
|
191
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
192
|
+
* MIT Licensed
|
|
193
|
+
*/
|
|
194
|
+
|
|
195
|
+
/*!
|
|
196
|
+
* Chai - message composition utility
|
|
197
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
198
|
+
* MIT Licensed
|
|
199
|
+
*/
|
|
200
|
+
|
|
201
|
+
/*!
|
|
202
|
+
* Chai - overwriteChainableMethod utility
|
|
203
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
204
|
+
* MIT Licensed
|
|
205
|
+
*/
|
|
206
|
+
|
|
207
|
+
/*!
|
|
208
|
+
* Chai - overwriteMethod utility
|
|
209
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
210
|
+
* MIT Licensed
|
|
211
|
+
*/
|
|
212
|
+
|
|
213
|
+
/*!
|
|
214
|
+
* Chai - overwriteProperty utility
|
|
215
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
216
|
+
* MIT Licensed
|
|
217
|
+
*/
|
|
218
|
+
|
|
219
|
+
/*!
|
|
220
|
+
* Chai - test utility
|
|
221
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
222
|
+
* MIT Licensed
|
|
223
|
+
*/
|
|
224
|
+
|
|
225
|
+
/*!
|
|
226
|
+
* Chai - transferFlags utility
|
|
227
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
228
|
+
* MIT Licensed
|
|
229
|
+
*/
|
|
230
|
+
|
|
231
|
+
/*!
|
|
232
|
+
* Chai version
|
|
233
|
+
*/
|
|
234
|
+
|
|
235
|
+
/*!
|
|
236
|
+
* Check if a property exists
|
|
237
|
+
*/
|
|
238
|
+
|
|
239
|
+
/*!
|
|
240
|
+
* Check to see if the MemoizeMap has recorded a result of the two operands
|
|
241
|
+
*
|
|
242
|
+
* @param {Mixed} leftHandOperand
|
|
243
|
+
* @param {Mixed} rightHandOperand
|
|
244
|
+
* @param {MemoizeMap} memoizeMap
|
|
245
|
+
* @returns {Boolean|null} result
|
|
246
|
+
*/
|
|
247
|
+
|
|
248
|
+
/*!
|
|
249
|
+
* Checks error against a given set of criteria
|
|
250
|
+
*/
|
|
251
|
+
|
|
252
|
+
/*!
|
|
253
|
+
* Compare by inspect method
|
|
254
|
+
*/
|
|
255
|
+
|
|
256
|
+
/*!
|
|
257
|
+
* Compare two Regular Expressions for equality.
|
|
258
|
+
*
|
|
259
|
+
* @param {RegExp} leftHandOperand
|
|
260
|
+
* @param {RegExp} rightHandOperand
|
|
261
|
+
* @return {Boolean} result
|
|
262
|
+
*/
|
|
263
|
+
|
|
264
|
+
/*!
|
|
265
|
+
* Compare two Sets/Maps for equality. Faster than other equality functions.
|
|
266
|
+
*
|
|
267
|
+
* @param {Set} leftHandOperand
|
|
268
|
+
* @param {Set} rightHandOperand
|
|
269
|
+
* @param {Object} [options] (Optional)
|
|
270
|
+
* @return {Boolean} result
|
|
271
|
+
*/
|
|
272
|
+
|
|
273
|
+
/*!
|
|
274
|
+
* Configuration
|
|
275
|
+
*/
|
|
276
|
+
|
|
277
|
+
/*!
|
|
278
|
+
* Core Assertions
|
|
279
|
+
*/
|
|
280
|
+
|
|
281
|
+
/*!
|
|
282
|
+
* Deep equal utility
|
|
283
|
+
*/
|
|
284
|
+
|
|
285
|
+
/*!
|
|
286
|
+
* Deep path info
|
|
287
|
+
*/
|
|
288
|
+
|
|
289
|
+
/*!
|
|
290
|
+
* Dependencies that are used for multiple exports are required here only once
|
|
291
|
+
*/
|
|
292
|
+
|
|
293
|
+
/*!
|
|
294
|
+
* Determine if an object is a Buffer
|
|
295
|
+
*
|
|
296
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
297
|
+
* @license MIT
|
|
298
|
+
*/
|
|
299
|
+
|
|
300
|
+
/*!
|
|
301
|
+
* Determine if the given object has an @@iterator function.
|
|
302
|
+
*
|
|
303
|
+
* @param {Object} target
|
|
304
|
+
* @return {Boolean} `true` if the object has an @@iterator function.
|
|
305
|
+
*/
|
|
306
|
+
|
|
307
|
+
/*!
|
|
308
|
+
* Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of
|
|
309
|
+
* each key. If any value of the given key is not equal, the function will return false (early).
|
|
310
|
+
*
|
|
311
|
+
* @param {Mixed} leftHandOperand
|
|
312
|
+
* @param {Mixed} rightHandOperand
|
|
313
|
+
* @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against
|
|
314
|
+
* @param {Object} [options] (Optional)
|
|
315
|
+
* @return {Boolean} result
|
|
316
|
+
*/
|
|
317
|
+
|
|
318
|
+
/*!
|
|
319
|
+
* Ensure correct constructor
|
|
320
|
+
*/
|
|
321
|
+
|
|
322
|
+
/*!
|
|
323
|
+
* Expect interface
|
|
324
|
+
*/
|
|
325
|
+
|
|
326
|
+
/*!
|
|
327
|
+
* Flag transferring utility
|
|
328
|
+
*/
|
|
329
|
+
|
|
330
|
+
/*!
|
|
331
|
+
* Flag utility
|
|
332
|
+
*/
|
|
333
|
+
|
|
334
|
+
/*!
|
|
335
|
+
* Function name
|
|
336
|
+
*/
|
|
337
|
+
|
|
338
|
+
/*!
|
|
339
|
+
* Get own enumerable properties method
|
|
340
|
+
*/
|
|
341
|
+
|
|
342
|
+
/*!
|
|
343
|
+
* Get own enumerable property symbols method
|
|
344
|
+
*/
|
|
345
|
+
|
|
346
|
+
/*!
|
|
347
|
+
* Gets all entries from a Generator. This will consume the generator - which could have side effects.
|
|
348
|
+
*
|
|
349
|
+
* @param {Generator} target
|
|
350
|
+
* @returns {Array} an array of entries from the Generator.
|
|
351
|
+
*/
|
|
352
|
+
|
|
353
|
+
/*!
|
|
354
|
+
* Gets all iterator entries from the given Object. If the Object has no @@iterator function, returns an empty array.
|
|
355
|
+
* This will consume the iterator - which could have side effects depending on the @@iterator implementation.
|
|
356
|
+
*
|
|
357
|
+
* @param {Object} target
|
|
358
|
+
* @returns {Array} an array of entries from the @@iterator function
|
|
359
|
+
*/
|
|
360
|
+
|
|
361
|
+
/*!
|
|
362
|
+
* Gets all own and inherited enumerable keys from a target.
|
|
363
|
+
*
|
|
364
|
+
* @param {Object} target
|
|
365
|
+
* @returns {Array} an array of own and inherited enumerable keys from the target.
|
|
366
|
+
*/
|
|
367
|
+
|
|
368
|
+
/*!
|
|
369
|
+
* Inherit from Error.prototype
|
|
370
|
+
*/
|
|
371
|
+
|
|
372
|
+
/*!
|
|
373
|
+
* Inspect util
|
|
374
|
+
*/
|
|
375
|
+
|
|
376
|
+
/*!
|
|
377
|
+
* JavaScript Cookie v2.2.1
|
|
378
|
+
* https://github.com/js-cookie/js-cookie
|
|
379
|
+
*
|
|
380
|
+
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
|
381
|
+
* Released under the MIT license
|
|
382
|
+
*/
|
|
383
|
+
|
|
384
|
+
/*!
|
|
385
|
+
* Module dependencies
|
|
386
|
+
*/
|
|
387
|
+
|
|
388
|
+
/*!
|
|
389
|
+
* Object Display util
|
|
390
|
+
*/
|
|
391
|
+
|
|
392
|
+
/*!
|
|
393
|
+
* Overwrite chainable method
|
|
394
|
+
*/
|
|
395
|
+
|
|
396
|
+
/*!
|
|
397
|
+
* Primary Export
|
|
398
|
+
*/
|
|
399
|
+
|
|
400
|
+
/*!
|
|
401
|
+
* Primary Exports
|
|
402
|
+
*/
|
|
403
|
+
|
|
404
|
+
/*!
|
|
405
|
+
* Primary `Assertion` prototype
|
|
406
|
+
*/
|
|
407
|
+
|
|
408
|
+
/*!
|
|
409
|
+
* Proxify util
|
|
410
|
+
*/
|
|
411
|
+
|
|
412
|
+
/*!
|
|
413
|
+
* Recursively check the equality of two Objects. Once basic sameness has been established it will defer to `deepEqual`
|
|
414
|
+
* for each enumerable key in the object.
|
|
415
|
+
*
|
|
416
|
+
* @param {Mixed} leftHandOperand
|
|
417
|
+
* @param {Mixed} rightHandOperand
|
|
418
|
+
* @param {Object} [options] (Optional)
|
|
419
|
+
* @return {Boolean} result
|
|
420
|
+
*/
|
|
421
|
+
|
|
422
|
+
/*!
|
|
423
|
+
* Return a function that will copy properties from
|
|
424
|
+
* one object to another excluding any originally
|
|
425
|
+
* listed. Returned function will create a new `{}`.
|
|
426
|
+
*
|
|
427
|
+
* @param {String} excluded properties ...
|
|
428
|
+
* @return {Function}
|
|
429
|
+
*/
|
|
430
|
+
|
|
431
|
+
/*!
|
|
432
|
+
* Returns true if the argument is a primitive.
|
|
433
|
+
*
|
|
434
|
+
* This intentionally returns true for all objects that can be compared by reference,
|
|
435
|
+
* including functions and symbols.
|
|
436
|
+
*
|
|
437
|
+
* @param {Mixed} value
|
|
438
|
+
* @return {Boolean} result
|
|
439
|
+
*/
|
|
440
|
+
|
|
441
|
+
/*!
|
|
442
|
+
* Set the result of the equality into the MemoizeMap
|
|
443
|
+
*
|
|
444
|
+
* @param {Mixed} leftHandOperand
|
|
445
|
+
* @param {Mixed} rightHandOperand
|
|
446
|
+
* @param {MemoizeMap} memoizeMap
|
|
447
|
+
* @param {Boolean} result
|
|
448
|
+
*/
|
|
449
|
+
|
|
450
|
+
/*!
|
|
451
|
+
* Should interface
|
|
452
|
+
*/
|
|
453
|
+
|
|
454
|
+
/*!
|
|
455
|
+
* Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers.
|
|
456
|
+
*
|
|
457
|
+
* @param {Iterable} leftHandOperand
|
|
458
|
+
* @param {Iterable} rightHandOperand
|
|
459
|
+
* @param {Object} [options] (Optional)
|
|
460
|
+
* @return {Boolean} result
|
|
461
|
+
*/
|
|
462
|
+
|
|
463
|
+
/*!
|
|
464
|
+
* Simple equality for generator objects such as those returned by generator functions.
|
|
465
|
+
*
|
|
466
|
+
* @param {Iterable} leftHandOperand
|
|
467
|
+
* @param {Iterable} rightHandOperand
|
|
468
|
+
* @param {Object} [options] (Optional)
|
|
469
|
+
* @return {Boolean} result
|
|
470
|
+
*/
|
|
471
|
+
|
|
472
|
+
/*!
|
|
473
|
+
* Statically set name
|
|
474
|
+
*/
|
|
475
|
+
|
|
476
|
+
/*!
|
|
477
|
+
* The main logic of the `deepEqual` function.
|
|
478
|
+
*
|
|
479
|
+
* @param {Mixed} leftHandOperand
|
|
480
|
+
* @param {Mixed} rightHandOperand
|
|
481
|
+
* @param {Object} [options] (optional) Additional options
|
|
482
|
+
* @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.
|
|
483
|
+
* @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of
|
|
484
|
+
complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular
|
|
485
|
+
references to blow the stack.
|
|
486
|
+
* @return {Boolean} equal match
|
|
487
|
+
*/
|
|
488
|
+
|
|
489
|
+
/*!
|
|
490
|
+
* Utility Functions
|
|
491
|
+
*/
|
|
492
|
+
|
|
493
|
+
/*!
|
|
494
|
+
* Utils for plugins (not exported)
|
|
495
|
+
*/
|
|
496
|
+
|
|
497
|
+
/*!
|
|
498
|
+
* actual utility
|
|
499
|
+
*/
|
|
500
|
+
|
|
501
|
+
/*!
|
|
502
|
+
* add Method
|
|
503
|
+
*/
|
|
504
|
+
|
|
505
|
+
/*!
|
|
506
|
+
* add Property
|
|
507
|
+
*/
|
|
508
|
+
|
|
509
|
+
/*!
|
|
510
|
+
* addLengthGuard util
|
|
511
|
+
*/
|
|
512
|
+
|
|
513
|
+
/*!
|
|
514
|
+
* assertion-error
|
|
515
|
+
* Copyright(c) 2013 Jake Luer <jake@qualiancy.com>
|
|
516
|
+
* MIT Licensed
|
|
517
|
+
*/
|
|
518
|
+
|
|
519
|
+
/*!
|
|
520
|
+
* chai
|
|
521
|
+
* Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com>
|
|
522
|
+
* MIT Licensed
|
|
523
|
+
*/
|
|
524
|
+
|
|
525
|
+
/*!
|
|
526
|
+
* chai
|
|
527
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|
528
|
+
* MIT Licensed
|
|
529
|
+
*/
|
|
530
|
+
|
|
531
|
+
/*!
|
|
532
|
+
* chai
|
|
533
|
+
* http://chaijs.com
|
|
534
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|
535
|
+
* MIT Licensed
|
|
536
|
+
*/
|
|
537
|
+
|
|
538
|
+
/*!
|
|
539
|
+
* deep-eql
|
|
540
|
+
* Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>
|
|
541
|
+
* MIT Licensed
|
|
542
|
+
*/
|
|
543
|
+
|
|
544
|
+
/*!
|
|
545
|
+
* expectTypes utility
|
|
546
|
+
*/
|
|
547
|
+
|
|
548
|
+
/*!
|
|
549
|
+
* getOperator method
|
|
550
|
+
*/
|
|
551
|
+
|
|
552
|
+
/*!
|
|
553
|
+
* isNaN method
|
|
554
|
+
*/
|
|
555
|
+
|
|
556
|
+
/*!
|
|
557
|
+
* isProxyEnabled helper
|
|
558
|
+
*/
|
|
559
|
+
|
|
560
|
+
/*!
|
|
561
|
+
* message utility
|
|
562
|
+
*/
|
|
563
|
+
|
|
564
|
+
/*!
|
|
565
|
+
* overwrite Method
|
|
566
|
+
*/
|
|
567
|
+
|
|
568
|
+
/*!
|
|
569
|
+
* overwrite Property
|
|
570
|
+
*/
|
|
571
|
+
|
|
572
|
+
/*!
|
|
573
|
+
* test utility
|
|
574
|
+
*/
|
|
575
|
+
|
|
576
|
+
/*!
|
|
577
|
+
* type utility
|
|
578
|
+
*/
|
|
579
|
+
|
|
580
|
+
/*! *****************************************************************************
|
|
581
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
582
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
583
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
584
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
585
|
+
|
|
586
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
587
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
588
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
589
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
590
|
+
|
|
591
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
592
|
+
and limitations under the License.
|
|
593
|
+
***************************************************************************** */
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* @license
|
|
597
|
+
* Lodash (Custom Build) <https://lodash.com/>
|
|
598
|
+
* Build: `lodash modularize exports="es" -o ./`
|
|
599
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
600
|
+
* Released under MIT license <https://lodash.com/license>
|
|
601
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
602
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
603
|
+
*/
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* @license
|
|
607
|
+
* Lodash <https://lodash.com/>
|
|
608
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
609
|
+
* Released under MIT license <https://lodash.com/license>
|
|
610
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
611
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
612
|
+
*/
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* @license React
|
|
616
|
+
* react-is.production.min.js
|
|
617
|
+
*
|
|
618
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
619
|
+
*
|
|
620
|
+
* This source code is licensed under the MIT license found in the
|
|
621
|
+
* LICENSE file in the root directory of this source tree.
|
|
622
|
+
*/
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* CanvasRecorder is a standalone class used by {@link RecordRTC} to bring HTML5-Canvas recording into video WebM. It uses HTML2Canvas library and runs top over {@link Whammy}.
|
|
626
|
+
* @summary HTML2Canvas recording into video WebM.
|
|
627
|
+
* @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
|
|
628
|
+
* @author {@link https://MuazKhan.com|Muaz Khan}
|
|
629
|
+
* @typedef CanvasRecorder
|
|
630
|
+
* @class
|
|
631
|
+
* @example
|
|
632
|
+
* var recorder = new CanvasRecorder(htmlElement, { disableLogs: true, useWhammyRecorder: true });
|
|
633
|
+
* recorder.record();
|
|
634
|
+
* recorder.stop(function(blob) {
|
|
635
|
+
* video.src = URL.createObjectURL(blob);
|
|
636
|
+
* });
|
|
637
|
+
* @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
|
|
638
|
+
* @param {HTMLElement} htmlElement - querySelector/getElementById/getElementsByTagName[0]/etc.
|
|
639
|
+
* @param {object} config - {disableLogs:true, initCallback: function}
|
|
640
|
+
*/
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* DiskStorage is a standalone object used by {@link RecordRTC} to store recorded blobs in IndexedDB storage.
|
|
644
|
+
* @summary Writing blobs into IndexedDB.
|
|
645
|
+
* @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
|
|
646
|
+
* @author {@link https://MuazKhan.com|Muaz Khan}
|
|
647
|
+
* @example
|
|
648
|
+
* DiskStorage.Store({
|
|
649
|
+
* audioBlob: yourAudioBlob,
|
|
650
|
+
* videoBlob: yourVideoBlob,
|
|
651
|
+
* gifBlob : yourGifBlob
|
|
652
|
+
* });
|
|
653
|
+
* DiskStorage.Fetch(function(dataURL, type) {
|
|
654
|
+
* if(type === 'audioBlob') { }
|
|
655
|
+
* if(type === 'videoBlob') { }
|
|
656
|
+
* if(type === 'gifBlob') { }
|
|
657
|
+
* });
|
|
658
|
+
* // DiskStorage.dataStoreName = 'recordRTC';
|
|
659
|
+
* // DiskStorage.onError = function(error) { };
|
|
660
|
+
* @property {function} init - This method must be called once to initialize IndexedDB ObjectStore. Though, it is auto-used internally.
|
|
661
|
+
* @property {function} Fetch - This method fetches stored blobs from IndexedDB.
|
|
662
|
+
* @property {function} Store - This method stores blobs in IndexedDB.
|
|
663
|
+
* @property {function} onError - This function is invoked for any known/unknown error.
|
|
664
|
+
* @property {string} dataStoreName - Name of the ObjectStore created in IndexedDB storage.
|
|
665
|
+
* @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
|
|
666
|
+
*/
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* GifRecorder is standalone calss used by {@link RecordRTC} to record video or canvas into animated gif.
|
|
670
|
+
* @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
|
|
671
|
+
* @author {@link https://MuazKhan.com|Muaz Khan}
|
|
672
|
+
* @typedef GifRecorder
|
|
673
|
+
* @class
|
|
674
|
+
* @example
|
|
675
|
+
* var recorder = new GifRecorder(mediaStream || canvas || context, { onGifPreview: function, onGifRecordingStarted: function, width: 1280, height: 720, frameRate: 200, quality: 10 });
|
|
676
|
+
* recorder.record();
|
|
677
|
+
* recorder.stop(function(blob) {
|
|
678
|
+
* img.src = URL.createObjectURL(blob);
|
|
679
|
+
* });
|
|
680
|
+
* @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
|
|
681
|
+
* @param {MediaStream} mediaStream - MediaStream object or HTMLCanvasElement or CanvasRenderingContext2D.
|
|
682
|
+
* @param {object} config - {disableLogs:true, initCallback: function, width: 320, height: 240, frameRate: 200, quality: 10}
|
|
683
|
+
*/
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* MRecordRTC runs on top of {@link RecordRTC} to bring multiple recordings in a single place, by providing simple API.
|
|
687
|
+
* @summary MRecordRTC stands for "Multiple-RecordRTC".
|
|
688
|
+
* @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
|
|
689
|
+
* @author {@link https://MuazKhan.com|Muaz Khan}
|
|
690
|
+
* @typedef MRecordRTC
|
|
691
|
+
* @class
|
|
692
|
+
* @example
|
|
693
|
+
* var recorder = new MRecordRTC();
|
|
694
|
+
* recorder.addStream(MediaStream);
|
|
695
|
+
* recorder.mediaType = {
|
|
696
|
+
* audio: true, // or StereoAudioRecorder or MediaStreamRecorder
|
|
697
|
+
* video: true, // or WhammyRecorder or MediaStreamRecorder or WebAssemblyRecorder or CanvasRecorder
|
|
698
|
+
* gif: true // or GifRecorder
|
|
699
|
+
* };
|
|
700
|
+
* // mimeType is optional and should be set only in advance cases.
|
|
701
|
+
* recorder.mimeType = {
|
|
702
|
+
* audio: 'audio/wav',
|
|
703
|
+
* video: 'video/webm',
|
|
704
|
+
* gif: 'image/gif'
|
|
705
|
+
* };
|
|
706
|
+
* recorder.startRecording();
|
|
707
|
+
* @see For further information:
|
|
708
|
+
* @see {@link https://github.com/muaz-khan/RecordRTC/tree/master/MRecordRTC|MRecordRTC Source Code}
|
|
709
|
+
* @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API.
|
|
710
|
+
* @requires {@link RecordRTC}
|
|
711
|
+
*/
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* MediaStreamRecorder is an abstraction layer for {@link https://w3c.github.io/mediacapture-record/MediaRecorder.html|MediaRecorder API}. It is used by {@link RecordRTC} to record MediaStream(s) in both Chrome and Firefox.
|
|
715
|
+
* @summary Runs top over {@link https://w3c.github.io/mediacapture-record/MediaRecorder.html|MediaRecorder API}.
|
|
716
|
+
* @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
|
|
717
|
+
* @author {@link https://github.com/muaz-khan|Muaz Khan}
|
|
718
|
+
* @typedef MediaStreamRecorder
|
|
719
|
+
* @class
|
|
720
|
+
* @example
|
|
721
|
+
* var config = {
|
|
722
|
+
* mimeType: 'video/webm', // vp8, vp9, h264, mkv, opus/vorbis
|
|
723
|
+
* audioBitsPerSecond : 256 * 8 * 1024,
|
|
724
|
+
* videoBitsPerSecond : 256 * 8 * 1024,
|
|
725
|
+
* bitsPerSecond: 256 * 8 * 1024, // if this is provided, skip above two
|
|
726
|
+
* checkForInactiveTracks: true,
|
|
727
|
+
* timeSlice: 1000, // concatenate intervals based blobs
|
|
728
|
+
* ondataavailable: function() {} // get intervals based blobs
|
|
729
|
+
* }
|
|
730
|
+
* var recorder = new MediaStreamRecorder(mediaStream, config);
|
|
731
|
+
* recorder.record();
|
|
732
|
+
* recorder.stop(function(blob) {
|
|
733
|
+
* video.src = URL.createObjectURL(blob);
|
|
734
|
+
*
|
|
735
|
+
* // or
|
|
736
|
+
* var blob = recorder.blob;
|
|
737
|
+
* });
|
|
738
|
+
* @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
|
|
739
|
+
* @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API.
|
|
740
|
+
* @param {object} config - {disableLogs:true, initCallback: function, mimeType: "video/webm", timeSlice: 1000}
|
|
741
|
+
* @throws Will throw an error if first argument "MediaStream" is missing. Also throws error if "MediaRecorder API" are not supported by the browser.
|
|
742
|
+
*/
|
|
743
|
+
|
|
744
|
+
/**
|
|
745
|
+
* MultiStreamRecorder can record multiple videos in single container.
|
|
746
|
+
* @summary Multi-videos recorder.
|
|
747
|
+
* @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
|
|
748
|
+
* @author {@link https://MuazKhan.com|Muaz Khan}
|
|
749
|
+
* @typedef MultiStreamRecorder
|
|
750
|
+
* @class
|
|
751
|
+
* @example
|
|
752
|
+
* var options = {
|
|
753
|
+
* mimeType: 'video/webm'
|
|
754
|
+
* }
|
|
755
|
+
* var recorder = new MultiStreamRecorder(ArrayOfMediaStreams, options);
|
|
756
|
+
* recorder.record();
|
|
757
|
+
* recorder.stop(function(blob) {
|
|
758
|
+
* video.src = URL.createObjectURL(blob);
|
|
759
|
+
*
|
|
760
|
+
* // or
|
|
761
|
+
* var blob = recorder.blob;
|
|
762
|
+
* });
|
|
763
|
+
* @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
|
|
764
|
+
* @param {MediaStreams} mediaStreams - Array of MediaStreams.
|
|
765
|
+
* @param {object} config - {disableLogs:true, frameInterval: 1, mimeType: "video/webm"}
|
|
766
|
+
*/
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* RecordRTCPromisesHandler adds promises support in {@link RecordRTC}. Try a {@link https://github.com/muaz-khan/RecordRTC/blob/master/simple-demos/RecordRTCPromisesHandler.html|demo here}
|
|
770
|
+
* @summary Promises for {@link RecordRTC}
|
|
771
|
+
* @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
|
|
772
|
+
* @author {@link https://MuazKhan.com|Muaz Khan}
|
|
773
|
+
* @typedef RecordRTCPromisesHandler
|
|
774
|
+
* @class
|
|
775
|
+
* @example
|
|
776
|
+
* var recorder = new RecordRTCPromisesHandler(mediaStream, options);
|
|
777
|
+
* recorder.startRecording()
|
|
778
|
+
* .then(successCB)
|
|
779
|
+
* .catch(errorCB);
|
|
780
|
+
* // Note: You can access all RecordRTC API using "recorder.recordRTC" e.g.
|
|
781
|
+
* recorder.recordRTC.onStateChanged = function(state) {};
|
|
782
|
+
* recorder.recordRTC.setRecordingDuration(5000);
|
|
783
|
+
* @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
|
|
784
|
+
* @param {MediaStream} mediaStream - Single media-stream object, array of media-streams, html-canvas-element, etc.
|
|
785
|
+
* @param {object} config - {type:"video", recorderType: MediaStreamRecorder, disableLogs: true, numberOfAudioChannels: 1, bufferSize: 0, sampleRate: 0, video: HTMLVideoElement, etc.}
|
|
786
|
+
* @throws Will throw an error if "new" keyword is not used to initiate "RecordRTCPromisesHandler". Also throws error if first argument "MediaStream" is missing.
|
|
787
|
+
* @requires {@link RecordRTC}
|
|
788
|
+
*/
|
|
789
|
+
|
|
790
|
+
/**
|
|
791
|
+
* StereoAudioRecorder is a standalone class used by {@link RecordRTC} to bring "stereo" audio-recording in chrome.
|
|
792
|
+
* @summary JavaScript standalone object for stereo audio recording.
|
|
793
|
+
* @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
|
|
794
|
+
* @author {@link https://MuazKhan.com|Muaz Khan}
|
|
795
|
+
* @typedef StereoAudioRecorder
|
|
796
|
+
* @class
|
|
797
|
+
* @example
|
|
798
|
+
* var recorder = new StereoAudioRecorder(MediaStream, {
|
|
799
|
+
* sampleRate: 44100,
|
|
800
|
+
* bufferSize: 4096
|
|
801
|
+
* });
|
|
802
|
+
* recorder.record();
|
|
803
|
+
* recorder.stop(function(blob) {
|
|
804
|
+
* video.src = URL.createObjectURL(blob);
|
|
805
|
+
* });
|
|
806
|
+
* @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
|
|
807
|
+
* @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API.
|
|
808
|
+
* @param {object} config - {sampleRate: 44100, bufferSize: 4096, numberOfAudioChannels: 1, etc.}
|
|
809
|
+
*/
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* Storage is a standalone object used by {@link RecordRTC} to store reusable objects e.g. "new AudioContext".
|
|
813
|
+
* @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
|
|
814
|
+
* @author {@link https://MuazKhan.com|Muaz Khan}
|
|
815
|
+
* @example
|
|
816
|
+
* Storage.AudioContext === webkitAudioContext
|
|
817
|
+
* @property {webkitAudioContext} AudioContext - Keeps a reference to AudioContext object.
|
|
818
|
+
* @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
|
|
819
|
+
*/
|
|
820
|
+
|
|
821
|
+
/**
|
|
822
|
+
* WebAssemblyRecorder lets you create webm videos in JavaScript via WebAssembly. The library consumes raw RGBA32 buffers (4 bytes per pixel) and turns them into a webm video with the given framerate and quality. This makes it compatible out-of-the-box with ImageData from a CANVAS. With realtime mode you can also use webm-wasm for streaming webm videos.
|
|
823
|
+
* @summary Video recording feature in Chrome, Firefox and maybe Edge.
|
|
824
|
+
* @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
|
|
825
|
+
* @author {@link https://MuazKhan.com|Muaz Khan}
|
|
826
|
+
* @typedef WebAssemblyRecorder
|
|
827
|
+
* @class
|
|
828
|
+
* @example
|
|
829
|
+
* var recorder = new WebAssemblyRecorder(mediaStream);
|
|
830
|
+
* recorder.record();
|
|
831
|
+
* recorder.stop(function(blob) {
|
|
832
|
+
* video.src = URL.createObjectURL(blob);
|
|
833
|
+
* });
|
|
834
|
+
* @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
|
|
835
|
+
* @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API.
|
|
836
|
+
* @param {object} config - {webAssemblyPath:'webm-wasm.wasm',workerPath: 'webm-worker.js', frameRate: 30, width: 1920, height: 1080, bitrate: 1024, realtime: true}
|
|
837
|
+
*/
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* Whammy is a standalone class used by {@link RecordRTC} to bring video recording in Chrome. It is written by {@link https://github.com/antimatter15|antimatter15}
|
|
841
|
+
* @summary A real time javascript webm encoder based on a canvas hack.
|
|
842
|
+
* @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
|
|
843
|
+
* @author {@link https://MuazKhan.com|Muaz Khan}
|
|
844
|
+
* @typedef Whammy
|
|
845
|
+
* @class
|
|
846
|
+
* @example
|
|
847
|
+
* var recorder = new Whammy().Video(15);
|
|
848
|
+
* recorder.add(context || canvas || dataURL);
|
|
849
|
+
* var output = recorder.compile();
|
|
850
|
+
* @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
|
|
851
|
+
*/
|
|
852
|
+
|
|
853
|
+
/**
|
|
854
|
+
* WhammyRecorder is a standalone class used by {@link RecordRTC} to bring video recording in Chrome. It runs top over {@link Whammy}.
|
|
855
|
+
* @summary Video recording feature in Chrome.
|
|
856
|
+
* @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
|
|
857
|
+
* @author {@link https://MuazKhan.com|Muaz Khan}
|
|
858
|
+
* @typedef WhammyRecorder
|
|
859
|
+
* @class
|
|
860
|
+
* @example
|
|
861
|
+
* var recorder = new WhammyRecorder(mediaStream);
|
|
862
|
+
* recorder.record();
|
|
863
|
+
* recorder.stop(function(blob) {
|
|
864
|
+
* video.src = URL.createObjectURL(blob);
|
|
865
|
+
* });
|
|
866
|
+
* @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
|
|
867
|
+
* @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API.
|
|
868
|
+
* @param {object} config - {disableLogs: true, initCallback: function, video: HTMLVideoElement, etc.}
|
|
869
|
+
*/
|
|
870
|
+
|
|
871
|
+
/**
|
|
872
|
+
* {@link GetRecorderType} is an inner/private helper for {@link RecordRTC}.
|
|
873
|
+
* @summary It returns best recorder-type available for your browser.
|
|
874
|
+
* @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
|
|
875
|
+
* @author {@link https://MuazKhan.com|Muaz Khan}
|
|
876
|
+
* @typedef GetRecorderType
|
|
877
|
+
* @class
|
|
878
|
+
* @example
|
|
879
|
+
* var RecorderType = GetRecorderType(options);
|
|
880
|
+
* var recorder = new RecorderType(options);
|
|
881
|
+
* @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
|
|
882
|
+
* @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API.
|
|
883
|
+
* @param {object} config - {type:"video", disableLogs: true, numberOfAudioChannels: 1, bufferSize: 0, sampleRate: 0, video: HTMLVideoElement, etc.}
|
|
884
|
+
*/
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* {@link RecordRTCConfiguration} is an inner/private helper for {@link RecordRTC}.
|
|
888
|
+
* @summary It configures the 2nd parameter passed over {@link RecordRTC} and returns a valid "config" object.
|
|
889
|
+
* @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
|
|
890
|
+
* @author {@link https://MuazKhan.com|Muaz Khan}
|
|
891
|
+
* @typedef RecordRTCConfiguration
|
|
892
|
+
* @class
|
|
893
|
+
* @example
|
|
894
|
+
* var options = RecordRTCConfiguration(mediaStream, options);
|
|
895
|
+
* @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
|
|
896
|
+
* @param {MediaStream} mediaStream - MediaStream object fetched using getUserMedia API or generated using captureStreamUntilEnded or WebAudio API.
|
|
897
|
+
* @param {object} config - {type:"video", disableLogs: true, numberOfAudioChannels: 1, bufferSize: 0, sampleRate: 0, video: HTMLVideoElement, getNativeBlob:true, etc.}
|
|
898
|
+
*/
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* {@link https://github.com/muaz-khan/RecordRTC|RecordRTC} is a WebRTC JavaScript library for audio/video as well as screen activity recording. It supports Chrome, Firefox, Opera, Android, and Microsoft Edge. Platforms: Linux, Mac and Windows.
|
|
902
|
+
* @summary Record audio, video or screen inside the browser.
|
|
903
|
+
* @license {@link https://github.com/muaz-khan/RecordRTC/blob/master/LICENSE|MIT}
|
|
904
|
+
* @author {@link https://MuazKhan.com|Muaz Khan}
|
|
905
|
+
* @typedef RecordRTC
|
|
906
|
+
* @class
|
|
907
|
+
* @example
|
|
908
|
+
* var recorder = RecordRTC(mediaStream or [arrayOfMediaStream], {
|
|
909
|
+
* type: 'video', // audio or video or gif or canvas
|
|
910
|
+
* recorderType: MediaStreamRecorder || CanvasRecorder || StereoAudioRecorder || Etc
|
|
911
|
+
* });
|
|
912
|
+
* recorder.startRecording();
|
|
913
|
+
* @see For further information:
|
|
914
|
+
* @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
|
|
915
|
+
* @param {MediaStream} mediaStream - Single media-stream object, array of media-streams, html-canvas-element, etc.
|
|
916
|
+
* @param {object} config - {type:"video", recorderType: MediaStreamRecorder, disableLogs: true, numberOfAudioChannels: 1, bufferSize: 0, sampleRate: 0, desiredSampRate: 16000, video: HTMLVideoElement, etc.}
|
|
917
|
+
*/
|
|
918
|
+
|
|
919
|
+
/** @license React v16.13.1
|
|
920
|
+
* react-is.production.min.js
|
|
921
|
+
*
|
|
922
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
923
|
+
*
|
|
924
|
+
* This source code is licensed under the MIT license found in the
|
|
925
|
+
* LICENSE file in the root directory of this source tree.
|
|
926
|
+
*/
|
|
927
|
+
|
|
928
|
+
/** @license React v16.14.0
|
|
929
|
+
* react-jsx-runtime.production.min.js
|
|
930
|
+
*
|
|
931
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
932
|
+
*
|
|
933
|
+
* This source code is licensed under the MIT license found in the
|
|
934
|
+
* LICENSE file in the root directory of this source tree.
|
|
935
|
+
*/
|
|
936
|
+
|
|
937
|
+
/** @license React v17.0.2
|
|
938
|
+
* react-is.production.min.js
|
|
939
|
+
*
|
|
940
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
941
|
+
*
|
|
942
|
+
* This source code is licensed under the MIT license found in the
|
|
943
|
+
* LICENSE file in the root directory of this source tree.
|
|
944
|
+
*/
|
|
945
|
+
|
|
946
|
+
//! goToAndStop must be relative to the start of the current segment
|