etro 0.6.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.
Files changed (103) hide show
  1. package/.env +2 -0
  2. package/.github/workflows/nodejs.yml +27 -0
  3. package/CHANGELOG.md +109 -0
  4. package/CODE_OF_CONDUCT.md +77 -0
  5. package/CONTRIBUTING.md +155 -0
  6. package/LICENSE +674 -0
  7. package/README.md +57 -0
  8. package/dist/etro.js +3397 -0
  9. package/docs/effect.js.html +1215 -0
  10. package/docs/event.js.html +145 -0
  11. package/docs/index.html +81 -0
  12. package/docs/index.js.html +92 -0
  13. package/docs/layer.js.html +888 -0
  14. package/docs/module-effect-GaussianBlurComponent.html +345 -0
  15. package/docs/module-effect.Brightness.html +339 -0
  16. package/docs/module-effect.Channels.html +319 -0
  17. package/docs/module-effect.ChromaKey.html +611 -0
  18. package/docs/module-effect.Contrast.html +339 -0
  19. package/docs/module-effect.EllipticalMask.html +200 -0
  20. package/docs/module-effect.GaussianBlur.html +202 -0
  21. package/docs/module-effect.GaussianBlurHorizontal.html +242 -0
  22. package/docs/module-effect.GaussianBlurVertical.html +242 -0
  23. package/docs/module-effect.Pixelate.html +330 -0
  24. package/docs/module-effect.Shader.html +1227 -0
  25. package/docs/module-effect.Stack.html +406 -0
  26. package/docs/module-effect.Transform.Matrix.html +193 -0
  27. package/docs/module-effect.Transform.html +1174 -0
  28. package/docs/module-effect.html +148 -0
  29. package/docs/module-event.html +473 -0
  30. package/docs/module-index.html +186 -0
  31. package/docs/module-layer-Media.html +1116 -0
  32. package/docs/module-layer-MediaMixin.html +164 -0
  33. package/docs/module-layer.Audio.html +1188 -0
  34. package/docs/module-layer.Base.html +629 -0
  35. package/docs/module-layer.Image.html +1421 -0
  36. package/docs/module-layer.Text.html +1731 -0
  37. package/docs/module-layer.Video.html +1938 -0
  38. package/docs/module-layer.Visual.html +1698 -0
  39. package/docs/module-layer.html +137 -0
  40. package/docs/module-movie.html +3118 -0
  41. package/docs/module-util.Color.html +702 -0
  42. package/docs/module-util.Font.html +395 -0
  43. package/docs/module-util.html +845 -0
  44. package/docs/movie.js.html +689 -0
  45. package/docs/scripts/collapse.js +20 -0
  46. package/docs/scripts/linenumber.js +25 -0
  47. package/docs/scripts/nav.js +12 -0
  48. package/docs/scripts/polyfill.js +4 -0
  49. package/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  50. package/docs/scripts/prettify/lang-css.js +2 -0
  51. package/docs/scripts/prettify/prettify.js +28 -0
  52. package/docs/scripts/search.js +83 -0
  53. package/docs/styles/jsdoc.css +671 -0
  54. package/docs/styles/prettify.css +79 -0
  55. package/docs/util.js.html +503 -0
  56. package/eslint.conf.js +28 -0
  57. package/eslint.test-conf.js +4 -0
  58. package/examples/application/readme-screenshot.html +86 -0
  59. package/examples/application/video-player.html +131 -0
  60. package/examples/application/webcam.html +28 -0
  61. package/examples/introduction/audio.html +52 -0
  62. package/examples/introduction/effects.html +56 -0
  63. package/examples/introduction/export.html +70 -0
  64. package/examples/introduction/functions.html +35 -0
  65. package/examples/introduction/hello-world1.html +33 -0
  66. package/examples/introduction/hello-world2.html +32 -0
  67. package/examples/introduction/keyframes.html +67 -0
  68. package/examples/introduction/media.html +55 -0
  69. package/examples/introduction/text.html +27 -0
  70. package/jsdoc.conf.json +3 -0
  71. package/karma.conf.js +60 -0
  72. package/package.json +63 -0
  73. package/private-todo.txt +70 -0
  74. package/rename-file.sh +18 -0
  75. package/rename-versions.sh +14 -0
  76. package/rename.sh +22 -0
  77. package/rollup.config.js +31 -0
  78. package/screenshots/2019-08-17_0.png +0 -0
  79. package/scripts/gen-effect-samples.html +99 -0
  80. package/scripts/save-effect-samples.js +43 -0
  81. package/spec/assets/effect/gaussian-blur-horizontal.png +0 -0
  82. package/spec/assets/effect/gaussian-blur-vertical.png +0 -0
  83. package/spec/assets/effect/original.png +0 -0
  84. package/spec/assets/effect/pixelate.png +0 -0
  85. package/spec/assets/effect/transform/multiply.png +0 -0
  86. package/spec/assets/effect/transform/rotate.png +0 -0
  87. package/spec/assets/effect/transform/scale-fraction.png +0 -0
  88. package/spec/assets/effect/transform/scale.png +0 -0
  89. package/spec/assets/effect/transform/translate-fraction.png +0 -0
  90. package/spec/assets/effect/transform/translate.png +0 -0
  91. package/spec/assets/layer/audio.wav +0 -0
  92. package/spec/assets/layer/image.jpg +0 -0
  93. package/spec/effect.spec.js +352 -0
  94. package/spec/event.spec.js +25 -0
  95. package/spec/layer.spec.js +128 -0
  96. package/spec/movie.spec.js +154 -0
  97. package/spec/util.spec.js +285 -0
  98. package/src/effect.js +1265 -0
  99. package/src/event.js +78 -0
  100. package/src/index.js +23 -0
  101. package/src/layer.js +875 -0
  102. package/src/movie.js +636 -0
  103. package/src/util.js +487 -0
@@ -0,0 +1,1938 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+
5
+ <meta charset="utf-8">
6
+ <title>Video - Documentation</title>
7
+
8
+
9
+ <script src="scripts/prettify/prettify.js"></script>
10
+ <script src="scripts/prettify/lang-css.js"></script>
11
+ <!--[if lt IE 9]>
12
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
+ <![endif]-->
14
+ <link type="text/css" rel="stylesheet" href="styles/prettify.css">
15
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
16
+ <script src="scripts/nav.js" defer></script>
17
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
18
+ </head>
19
+ <body>
20
+
21
+ <input type="checkbox" id="nav-trigger" class="nav-trigger" />
22
+ <label for="nav-trigger" class="navicon-button x">
23
+ <div class="navicon"></div>
24
+ </label>
25
+
26
+ <label for="nav-trigger" class="overlay"></label>
27
+
28
+ <nav >
29
+
30
+ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="module-effect.Brightness.html">Brightness</a></li><li><a href="module-effect.Channels.html">Channels</a></li><li><a href="module-effect.ChromaKey.html">ChromaKey</a></li><li><a href="module-effect.Contrast.html">Contrast</a></li><li><a href="module-effect.EllipticalMask.html">EllipticalMask</a></li><li><a href="module-effect.GaussianBlur.html">GaussianBlur</a></li><li><a href="module-effect.GaussianBlurHorizontal.html">GaussianBlurHorizontal</a></li><li><a href="module-effect.GaussianBlurVertical.html">GaussianBlurVertical</a></li><li><a href="module-effect.Pixelate.html">Pixelate</a></li><li><a href="module-effect.Shader.html">Shader</a><ul class='methods'><li data-type='method'><a href="module-effect.Shader.html#._initBuffer">_initBuffer</a></li><li data-type='method'><a href="module-effect.Shader.html#._loadTexture">_loadTexture</a></li><li data-type='method'><a href="module-effect.Shader.html#_prepareValue">_prepareValue</a></li></ul></li><li><a href="module-effect.Stack.html">Stack</a><ul class='methods'><li data-type='method'><a href="module-effect.Stack.html#addEffect">addEffect</a></li></ul></li><li><a href="module-effect.Transform.html">Transform</a><ul class='methods'><li data-type='method'><a href="module-effect.Transform.html#.Matrix#cell">Matrix#cell</a></li><li data-type='method'><a href="module-effect.Transform.html#.Matrix#multiply">Matrix#multiply</a></li><li data-type='method'><a href="module-effect.Transform.html#.Matrix#rotate">Matrix#rotate</a></li><li data-type='method'><a href="module-effect.Transform.html#.Matrix#scale">Matrix#scale</a></li><li data-type='method'><a href="module-effect.Transform.html#.Matrix#translate">Matrix#translate</a></li></ul></li><li><a href="module-effect.Transform.Matrix.html">Matrix</a></li><li><a href="module-effect-GaussianBlurComponent.html">GaussianBlurComponent</a></li><li><a href="module-layer.Audio.html">Audio</a></li><li><a href="module-layer.Base.html">Base</a><ul class='methods'><li data-type='method'><a href="module-layer.Base.html#_render">_render</a></li></ul></li><li><a href="module-layer.Image.html">Image</a></li><li><a href="module-layer.Text.html">Text</a></li><li><a href="module-layer.Video.html">Video</a></li><li><a href="module-layer.Visual.html">Visual</a><ul class='methods'><li data-type='method'><a href="module-layer.Visual.html#_render">_render</a></li><li data-type='method'><a href="module-layer.Visual.html#addEffect">addEffect</a></li></ul></li><li><a href="module-layer-Media.html">Media</a></li><li><a href="module-movie.html">movie</a><ul class='methods'><li data-type='method'><a href="module-movie.html#addEffect">addEffect</a></li><li data-type='method'><a href="module-movie.html#addLayer">addLayer</a></li><li data-type='method'><a href="module-movie.html#pause">pause</a></li><li data-type='method'><a href="module-movie.html#play">play</a></li><li data-type='method'><a href="module-movie.html#publishToLayers">publishToLayers</a></li><li data-type='method'><a href="module-movie.html#record">record</a></li><li data-type='method'><a href="module-movie.html#refresh">refresh</a></li><li data-type='method'><a href="module-movie.html#setCurrentTime">setCurrentTime</a></li><li data-type='method'><a href="module-movie.html#stop">stop</a></li></ul></li><li><a href="module-util.Color.html">Color</a><ul class='methods'><li data-type='method'><a href="module-util.Color.html#toString">toString</a></li></ul></li><li><a href="module-util.Font.html">Font</a><ul class='methods'><li data-type='method'><a href="module-util.Font.html#toString">toString</a></li></ul></li></ul><h3>Modules</h3><ul><li><a href="module-effect.html">effect</a></li><li><a href="module-event.html">event</a><ul class='methods'><li data-type='method'><a href="module-event.html#.publish">publish</a></li><li data-type='method'><a href="module-event.html#.subscribe">subscribe</a></li></ul></li><li><a href="module-index.html">index</a></li><li><a href="module-layer.html">layer</a></li><li><a href="module-movie.html">movie</a><ul class='methods'><li data-type='method'><a href="module-movie.html#addEffect">addEffect</a></li><li data-type='method'><a href="module-movie.html#addLayer">addLayer</a></li><li data-type='method'><a href="module-movie.html#pause">pause</a></li><li data-type='method'><a href="module-movie.html#play">play</a></li><li data-type='method'><a href="module-movie.html#publishToLayers">publishToLayers</a></li><li data-type='method'><a href="module-movie.html#record">record</a></li><li data-type='method'><a href="module-movie.html#refresh">refresh</a></li><li data-type='method'><a href="module-movie.html#setCurrentTime">setCurrentTime</a></li><li data-type='method'><a href="module-movie.html#stop">stop</a></li></ul></li><li><a href="module-util.html">util</a><ul class='methods'><li data-type='method'><a href="module-util.html#.parseColor">parseColor</a></li><li data-type='method'><a href="module-util.html#.parseFont">parseFont</a></li><li data-type='method'><a href="module-util.html#.watchPublic">watchPublic</a></li><li data-type='method'><a href="module-util.html#~isKeyFrames">isKeyFrames</a></li></ul></li></ul><h3>Mixins</h3><ul><li><a href="module-layer-MediaMixin.html">MediaMixin</a></li></ul>
31
+ </nav>
32
+
33
+ <div id="main">
34
+
35
+ <h1 class="page-title">Video</h1>
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+ <section>
44
+
45
+ <header>
46
+
47
+ <h2>
48
+ <span class="ancestors"><a href="module-layer.html">layer</a>.</span>
49
+
50
+ Video
51
+ </h2>
52
+
53
+
54
+ </header>
55
+
56
+ <article>
57
+
58
+ <div class="container-overview">
59
+
60
+
61
+
62
+
63
+
64
+ <h4 class="name" id="Video"><span class="type-signature"></span>new Video<span class="signature">(startTime, media, options<span class="signature-attributes">opt</span>, startTime, media, options<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
65
+
66
+
67
+
68
+
69
+
70
+
71
+ <dl class="details">
72
+
73
+
74
+ <dt class="tag-source">Source:</dt>
75
+ <dd class="tag-source"><ul class="dummy"><li>
76
+ <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line713">line 713</a>
77
+ </li></ul></dd>
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+ </dl>
110
+
111
+
112
+
113
+
114
+
115
+ <div class="description">
116
+ Creates a new video layer
117
+ </div>
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+ <h5>Parameters:</h5>
130
+
131
+
132
+ <table class="params">
133
+ <thead>
134
+ <tr>
135
+
136
+ <th>Name</th>
137
+
138
+
139
+ <th>Type</th>
140
+
141
+
142
+ <th>Attributes</th>
143
+
144
+
145
+
146
+
147
+ <th class="last">Description</th>
148
+ </tr>
149
+ </thead>
150
+
151
+ <tbody>
152
+
153
+
154
+ <tr>
155
+
156
+ <td class="name"><code>startTime</code></td>
157
+
158
+
159
+ <td class="type">
160
+
161
+
162
+ <span class="param-type">number</span>
163
+
164
+
165
+
166
+ </td>
167
+
168
+
169
+ <td class="attributes">
170
+
171
+
172
+
173
+
174
+
175
+ </td>
176
+
177
+
178
+
179
+
180
+ <td class="description last"></td>
181
+ </tr>
182
+
183
+
184
+
185
+ <tr>
186
+
187
+ <td class="name"><code>media</code></td>
188
+
189
+
190
+ <td class="type">
191
+
192
+
193
+ <span class="param-type">HTMLVideoElement</span>
194
+
195
+
196
+
197
+ </td>
198
+
199
+
200
+ <td class="attributes">
201
+
202
+
203
+
204
+
205
+
206
+ </td>
207
+
208
+
209
+
210
+
211
+ <td class="description last"></td>
212
+ </tr>
213
+
214
+
215
+
216
+ <tr>
217
+
218
+ <td class="name"><code>options</code></td>
219
+
220
+
221
+ <td class="type">
222
+
223
+
224
+ <span class="param-type">object</span>
225
+
226
+
227
+
228
+ </td>
229
+
230
+
231
+ <td class="attributes">
232
+
233
+ &lt;optional><br>
234
+
235
+
236
+
237
+
238
+
239
+ </td>
240
+
241
+
242
+
243
+
244
+ <td class="description last"></td>
245
+ </tr>
246
+
247
+
248
+
249
+ <tr>
250
+
251
+ <td class="name"><code>startTime</code></td>
252
+
253
+
254
+ <td class="type">
255
+
256
+
257
+ <span class="param-type">number</span>
258
+
259
+
260
+
261
+ </td>
262
+
263
+
264
+ <td class="attributes">
265
+
266
+
267
+
268
+
269
+
270
+ </td>
271
+
272
+
273
+
274
+
275
+ <td class="description last"></td>
276
+ </tr>
277
+
278
+
279
+
280
+ <tr>
281
+
282
+ <td class="name"><code>media</code></td>
283
+
284
+
285
+ <td class="type">
286
+
287
+
288
+ <span class="param-type">HTMLVideoElement</span>
289
+
290
+
291
+
292
+ </td>
293
+
294
+
295
+ <td class="attributes">
296
+
297
+
298
+
299
+
300
+
301
+ </td>
302
+
303
+
304
+
305
+
306
+ <td class="description last"></td>
307
+ </tr>
308
+
309
+
310
+
311
+ <tr>
312
+
313
+ <td class="name"><code>options</code></td>
314
+
315
+
316
+ <td class="type">
317
+
318
+
319
+ <span class="param-type">object</span>
320
+
321
+
322
+
323
+ </td>
324
+
325
+
326
+ <td class="attributes">
327
+
328
+ &lt;optional><br>
329
+
330
+
331
+
332
+
333
+
334
+ </td>
335
+
336
+
337
+
338
+
339
+ <td class="description last">
340
+ <h6>Properties</h6>
341
+
342
+
343
+ <table class="params">
344
+ <thead>
345
+ <tr>
346
+
347
+ <th>Name</th>
348
+
349
+
350
+ <th>Type</th>
351
+
352
+
353
+ <th>Attributes</th>
354
+
355
+
356
+
357
+ <th>Default</th>
358
+
359
+
360
+ <th class="last">Description</th>
361
+ </tr>
362
+ </thead>
363
+
364
+ <tbody>
365
+
366
+
367
+ <tr>
368
+
369
+ <td class="name"><code>mediaStartTime</code></td>
370
+
371
+
372
+ <td class="type">
373
+
374
+
375
+ <span class="param-type">number</span>
376
+
377
+
378
+
379
+ </td>
380
+
381
+
382
+ <td class="attributes">
383
+
384
+ &lt;optional><br>
385
+
386
+
387
+
388
+
389
+
390
+ </td>
391
+
392
+
393
+
394
+ <td class="default">
395
+
396
+ <code>0</code>
397
+
398
+ </td>
399
+
400
+
401
+ <td class="description last">at what time in the audio the layer starts</td>
402
+ </tr>
403
+
404
+
405
+
406
+ <tr>
407
+
408
+ <td class="name"><code>duration</code></td>
409
+
410
+
411
+ <td class="type">
412
+
413
+
414
+ <span class="param-type">numer</span>
415
+
416
+
417
+
418
+ </td>
419
+
420
+
421
+ <td class="attributes">
422
+
423
+ &lt;optional><br>
424
+
425
+
426
+
427
+
428
+
429
+ </td>
430
+
431
+
432
+
433
+ <td class="default">
434
+
435
+ <code>media.duration-options.mediaStartTime</code>
436
+
437
+ </td>
438
+
439
+
440
+ <td class="description last"></td>
441
+ </tr>
442
+
443
+
444
+
445
+ <tr>
446
+
447
+ <td class="name"><code>muted</code></td>
448
+
449
+
450
+ <td class="type">
451
+
452
+
453
+ <span class="param-type">boolean</span>
454
+
455
+
456
+
457
+ </td>
458
+
459
+
460
+ <td class="attributes">
461
+
462
+ &lt;optional><br>
463
+
464
+
465
+
466
+
467
+
468
+ </td>
469
+
470
+
471
+
472
+ <td class="default">
473
+
474
+ <code>false</code>
475
+
476
+ </td>
477
+
478
+
479
+ <td class="description last"></td>
480
+ </tr>
481
+
482
+
483
+
484
+ <tr>
485
+
486
+ <td class="name"><code>volume</code></td>
487
+
488
+
489
+ <td class="type">
490
+
491
+
492
+ <span class="param-type">number</span>
493
+
494
+
495
+
496
+ </td>
497
+
498
+
499
+ <td class="attributes">
500
+
501
+ &lt;optional><br>
502
+
503
+
504
+
505
+
506
+
507
+ </td>
508
+
509
+
510
+
511
+ <td class="default">
512
+
513
+ <code>1</code>
514
+
515
+ </td>
516
+
517
+
518
+ <td class="description last"></td>
519
+ </tr>
520
+
521
+
522
+
523
+ <tr>
524
+
525
+ <td class="name"><code>speed</code></td>
526
+
527
+
528
+ <td class="type">
529
+
530
+
531
+ <span class="param-type">number</span>
532
+
533
+
534
+
535
+ </td>
536
+
537
+
538
+ <td class="attributes">
539
+
540
+ &lt;optional><br>
541
+
542
+
543
+
544
+
545
+
546
+ </td>
547
+
548
+
549
+
550
+ <td class="default">
551
+
552
+ <code>1</code>
553
+
554
+ </td>
555
+
556
+
557
+ <td class="description last">the audio's playerback rate</td>
558
+ </tr>
559
+
560
+
561
+
562
+ <tr>
563
+
564
+ <td class="name"><code>mediaStartTime</code></td>
565
+
566
+
567
+ <td class="type">
568
+
569
+
570
+ <span class="param-type">number</span>
571
+
572
+
573
+
574
+ </td>
575
+
576
+
577
+ <td class="attributes">
578
+
579
+ &lt;optional><br>
580
+
581
+
582
+
583
+
584
+
585
+ </td>
586
+
587
+
588
+
589
+ <td class="default">
590
+
591
+ <code>0</code>
592
+
593
+ </td>
594
+
595
+
596
+ <td class="description last">at what time in the video the layer starts</td>
597
+ </tr>
598
+
599
+
600
+
601
+ <tr>
602
+
603
+ <td class="name"><code>duration</code></td>
604
+
605
+
606
+ <td class="type">
607
+
608
+
609
+ <span class="param-type">numer</span>
610
+
611
+
612
+
613
+ </td>
614
+
615
+
616
+ <td class="attributes">
617
+
618
+ &lt;optional><br>
619
+
620
+
621
+
622
+
623
+
624
+ </td>
625
+
626
+
627
+
628
+ <td class="default">
629
+
630
+ <code>media.duration-options.mediaStartTime</code>
631
+
632
+ </td>
633
+
634
+
635
+ <td class="description last"></td>
636
+ </tr>
637
+
638
+
639
+
640
+ <tr>
641
+
642
+ <td class="name"><code>clipX</code></td>
643
+
644
+
645
+ <td class="type">
646
+
647
+
648
+ <span class="param-type">number</span>
649
+
650
+
651
+
652
+ </td>
653
+
654
+
655
+ <td class="attributes">
656
+
657
+ &lt;optional><br>
658
+
659
+
660
+
661
+
662
+
663
+ </td>
664
+
665
+
666
+
667
+ <td class="default">
668
+
669
+ <code>0</code>
670
+
671
+ </td>
672
+
673
+
674
+ <td class="description last">video source x</td>
675
+ </tr>
676
+
677
+
678
+
679
+ <tr>
680
+
681
+ <td class="name"><code>clipY</code></td>
682
+
683
+
684
+ <td class="type">
685
+
686
+
687
+ <span class="param-type">number</span>
688
+
689
+
690
+
691
+ </td>
692
+
693
+
694
+ <td class="attributes">
695
+
696
+ &lt;optional><br>
697
+
698
+
699
+
700
+
701
+
702
+ </td>
703
+
704
+
705
+
706
+ <td class="default">
707
+
708
+ <code>0</code>
709
+
710
+ </td>
711
+
712
+
713
+ <td class="description last">video source y</td>
714
+ </tr>
715
+
716
+
717
+
718
+ <tr>
719
+
720
+ <td class="name"><code>clipWidth</code></td>
721
+
722
+
723
+ <td class="type">
724
+
725
+
726
+ <span class="param-type">number</span>
727
+
728
+
729
+
730
+ </td>
731
+
732
+
733
+ <td class="attributes">
734
+
735
+ &lt;optional><br>
736
+
737
+
738
+
739
+
740
+
741
+ </td>
742
+
743
+
744
+
745
+ <td class="default">
746
+
747
+ <code>0</code>
748
+
749
+ </td>
750
+
751
+
752
+ <td class="description last">video destination width</td>
753
+ </tr>
754
+
755
+
756
+
757
+ <tr>
758
+
759
+ <td class="name"><code>clipHeight</code></td>
760
+
761
+
762
+ <td class="type">
763
+
764
+
765
+ <span class="param-type">number</span>
766
+
767
+
768
+
769
+ </td>
770
+
771
+
772
+ <td class="attributes">
773
+
774
+ &lt;optional><br>
775
+
776
+
777
+
778
+
779
+
780
+ </td>
781
+
782
+
783
+
784
+ <td class="default">
785
+
786
+ <code>0</code>
787
+
788
+ </td>
789
+
790
+
791
+ <td class="description last">video destination height</td>
792
+ </tr>
793
+
794
+
795
+
796
+ <tr>
797
+
798
+ <td class="name"><code>mediaX</code></td>
799
+
800
+
801
+ <td class="type">
802
+
803
+
804
+ <span class="param-type">number</span>
805
+
806
+
807
+
808
+ </td>
809
+
810
+
811
+ <td class="attributes">
812
+
813
+ &lt;optional><br>
814
+
815
+
816
+
817
+
818
+
819
+ </td>
820
+
821
+
822
+
823
+ <td class="default">
824
+
825
+ <code>0</code>
826
+
827
+ </td>
828
+
829
+
830
+ <td class="description last">video offset relative to the layer</td>
831
+ </tr>
832
+
833
+
834
+
835
+ <tr>
836
+
837
+ <td class="name"><code>mediaY</code></td>
838
+
839
+
840
+ <td class="type">
841
+
842
+
843
+ <span class="param-type">number</span>
844
+
845
+
846
+
847
+ </td>
848
+
849
+
850
+ <td class="attributes">
851
+
852
+ &lt;optional><br>
853
+
854
+
855
+
856
+
857
+
858
+ </td>
859
+
860
+
861
+
862
+ <td class="default">
863
+
864
+ <code>0</code>
865
+
866
+ </td>
867
+
868
+
869
+ <td class="description last">video offset relative to the layer</td>
870
+ </tr>
871
+
872
+
873
+ </tbody>
874
+ </table>
875
+
876
+ </td>
877
+ </tr>
878
+
879
+
880
+ </tbody>
881
+ </table>
882
+
883
+
884
+
885
+
886
+
887
+
888
+
889
+
890
+
891
+
892
+
893
+
894
+
895
+
896
+
897
+
898
+
899
+
900
+
901
+
902
+ </div>
903
+
904
+
905
+
906
+ <h3 class="subsection-title">Extends</h3>
907
+
908
+
909
+
910
+
911
+ <ul>
912
+ <li><a href="module-layer-Media.html">module:layer~Media</a></li>
913
+ </ul>
914
+
915
+
916
+
917
+
918
+
919
+
920
+
921
+
922
+
923
+
924
+
925
+
926
+
927
+
928
+
929
+ <h3 class="subsection-title">Members</h3>
930
+
931
+
932
+
933
+ <h4 class="name" id="clipX"><span class="type-signature"></span>clipX<span class="type-signature"> :number</span></h4>
934
+
935
+
936
+
937
+
938
+
939
+ <dl class="details">
940
+
941
+
942
+ <dt class="tag-source">Source:</dt>
943
+ <dd class="tag-source"><ul class="dummy"><li>
944
+ <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line741">line 741</a>
945
+ </li></ul></dd>
946
+
947
+
948
+
949
+
950
+
951
+
952
+
953
+
954
+
955
+
956
+
957
+
958
+
959
+
960
+
961
+
962
+
963
+
964
+
965
+
966
+
967
+
968
+
969
+
970
+
971
+
972
+
973
+
974
+
975
+
976
+
977
+ </dl>
978
+
979
+
980
+
981
+
982
+
983
+ <div class="description">
984
+ Video source x
985
+ </div>
986
+
987
+
988
+
989
+ <h5>Type:</h5>
990
+ <ul>
991
+ <li>
992
+
993
+ <span class="param-type">number</span>
994
+
995
+
996
+ </li>
997
+ </ul>
998
+
999
+
1000
+
1001
+
1002
+
1003
+
1004
+
1005
+
1006
+ <h4 class="name" id="clipY"><span class="type-signature"></span>clipY<span class="type-signature"> :number</span></h4>
1007
+
1008
+
1009
+
1010
+
1011
+
1012
+ <dl class="details">
1013
+
1014
+
1015
+ <dt class="tag-source">Source:</dt>
1016
+ <dd class="tag-source"><ul class="dummy"><li>
1017
+ <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line747">line 747</a>
1018
+ </li></ul></dd>
1019
+
1020
+
1021
+
1022
+
1023
+
1024
+
1025
+
1026
+
1027
+
1028
+
1029
+
1030
+
1031
+
1032
+
1033
+
1034
+
1035
+
1036
+
1037
+
1038
+
1039
+
1040
+
1041
+
1042
+
1043
+
1044
+
1045
+
1046
+
1047
+
1048
+
1049
+
1050
+ </dl>
1051
+
1052
+
1053
+
1054
+
1055
+
1056
+ <div class="description">
1057
+ Video source y
1058
+ </div>
1059
+
1060
+
1061
+
1062
+ <h5>Type:</h5>
1063
+ <ul>
1064
+ <li>
1065
+
1066
+ <span class="param-type">number</span>
1067
+
1068
+
1069
+ </li>
1070
+ </ul>
1071
+
1072
+
1073
+
1074
+
1075
+
1076
+
1077
+
1078
+
1079
+ <h4 class="name" id="duration"><span class="type-signature"></span>duration<span class="type-signature"> :number</span></h4>
1080
+
1081
+
1082
+
1083
+
1084
+
1085
+ <dl class="details">
1086
+
1087
+
1088
+ <dt class="tag-source">Source:</dt>
1089
+ <dd class="tag-source"><ul class="dummy"><li>
1090
+ <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line658">line 658</a>
1091
+ </li></ul></dd>
1092
+
1093
+
1094
+
1095
+
1096
+
1097
+
1098
+
1099
+
1100
+
1101
+ <dt class="tag-overrides">Overrides:</dt>
1102
+ <dd class="tag-overrides"><ul class="dummy"><li>
1103
+ <a href="module-layer-Media.html#duration">module:layer~Media#duration</a>
1104
+ </li></ul></dd>
1105
+
1106
+
1107
+
1108
+
1109
+
1110
+
1111
+
1112
+
1113
+
1114
+
1115
+
1116
+
1117
+
1118
+
1119
+
1120
+
1121
+
1122
+
1123
+
1124
+
1125
+
1126
+
1127
+
1128
+ </dl>
1129
+
1130
+
1131
+
1132
+
1133
+
1134
+
1135
+
1136
+ <h5>Type:</h5>
1137
+ <ul>
1138
+ <li>
1139
+
1140
+ <span class="param-type">number</span>
1141
+
1142
+
1143
+ </li>
1144
+ </ul>
1145
+
1146
+
1147
+
1148
+
1149
+
1150
+
1151
+
1152
+
1153
+ <h4 class="name" id="media"><span class="type-signature"></span>media<span class="type-signature"> :HTMLMediaElement</span></h4>
1154
+
1155
+
1156
+
1157
+
1158
+
1159
+ <dl class="details">
1160
+
1161
+
1162
+ <dt class="tag-source">Source:</dt>
1163
+ <dd class="tag-source"><ul class="dummy"><li>
1164
+ <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line609">line 609</a>
1165
+ </li></ul></dd>
1166
+
1167
+
1168
+
1169
+
1170
+
1171
+
1172
+
1173
+
1174
+
1175
+ <dt class="tag-overrides">Overrides:</dt>
1176
+ <dd class="tag-overrides"><ul class="dummy"><li>
1177
+ <a href="module-layer-Media.html#media">module:layer~Media#media</a>
1178
+ </li></ul></dd>
1179
+
1180
+
1181
+
1182
+
1183
+
1184
+
1185
+
1186
+
1187
+
1188
+
1189
+
1190
+
1191
+
1192
+
1193
+
1194
+
1195
+
1196
+
1197
+
1198
+
1199
+
1200
+
1201
+
1202
+ </dl>
1203
+
1204
+
1205
+
1206
+
1207
+
1208
+ <div class="description">
1209
+ The raw html media element
1210
+ </div>
1211
+
1212
+
1213
+
1214
+ <h5>Type:</h5>
1215
+ <ul>
1216
+ <li>
1217
+
1218
+ <span class="param-type">HTMLMediaElement</span>
1219
+
1220
+
1221
+ </li>
1222
+ </ul>
1223
+
1224
+
1225
+
1226
+
1227
+
1228
+
1229
+
1230
+
1231
+ <h4 class="name" id="mediaHeight"><span class="type-signature"></span>mediaHeight<span class="type-signature"> :number</span></h4>
1232
+
1233
+
1234
+
1235
+
1236
+
1237
+ <dl class="details">
1238
+
1239
+
1240
+ <dt class="tag-source">Source:</dt>
1241
+ <dd class="tag-source"><ul class="dummy"><li>
1242
+ <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line771">line 771</a>
1243
+ </li></ul></dd>
1244
+
1245
+
1246
+
1247
+
1248
+
1249
+
1250
+
1251
+
1252
+
1253
+
1254
+
1255
+
1256
+
1257
+
1258
+
1259
+
1260
+
1261
+
1262
+
1263
+
1264
+
1265
+
1266
+
1267
+
1268
+
1269
+
1270
+
1271
+
1272
+
1273
+
1274
+
1275
+ </dl>
1276
+
1277
+
1278
+
1279
+
1280
+
1281
+ <div class="description">
1282
+ Video destination height
1283
+ </div>
1284
+
1285
+
1286
+
1287
+ <h5>Type:</h5>
1288
+ <ul>
1289
+ <li>
1290
+
1291
+ <span class="param-type">number</span>
1292
+
1293
+
1294
+ </li>
1295
+ </ul>
1296
+
1297
+
1298
+
1299
+
1300
+
1301
+
1302
+
1303
+
1304
+ <h4 class="name" id="mediaStartTime"><span class="type-signature"></span>mediaStartTime<span class="type-signature"> :number</span></h4>
1305
+
1306
+
1307
+
1308
+
1309
+
1310
+ <dl class="details">
1311
+
1312
+
1313
+ <dt class="tag-source">Source:</dt>
1314
+ <dd class="tag-source"><ul class="dummy"><li>
1315
+ <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line645">line 645</a>
1316
+ </li></ul></dd>
1317
+
1318
+
1319
+
1320
+
1321
+
1322
+
1323
+
1324
+
1325
+
1326
+ <dt class="tag-overrides">Overrides:</dt>
1327
+ <dd class="tag-overrides"><ul class="dummy"><li>
1328
+ <a href="module-layer-Media.html#mediaStartTime">module:layer~Media#mediaStartTime</a>
1329
+ </li></ul></dd>
1330
+
1331
+
1332
+
1333
+
1334
+
1335
+
1336
+
1337
+
1338
+
1339
+
1340
+
1341
+
1342
+
1343
+
1344
+
1345
+
1346
+
1347
+
1348
+
1349
+
1350
+
1351
+
1352
+
1353
+ </dl>
1354
+
1355
+
1356
+
1357
+
1358
+
1359
+ <div class="description">
1360
+ Where in the media the layer starts at
1361
+ </div>
1362
+
1363
+
1364
+
1365
+ <h5>Type:</h5>
1366
+ <ul>
1367
+ <li>
1368
+
1369
+ <span class="param-type">number</span>
1370
+
1371
+
1372
+ </li>
1373
+ </ul>
1374
+
1375
+
1376
+
1377
+
1378
+
1379
+
1380
+
1381
+
1382
+ <h4 class="name" id="mediaWidth"><span class="type-signature"></span>mediaWidth<span class="type-signature"> :number</span></h4>
1383
+
1384
+
1385
+
1386
+
1387
+
1388
+ <dl class="details">
1389
+
1390
+
1391
+ <dt class="tag-source">Source:</dt>
1392
+ <dd class="tag-source"><ul class="dummy"><li>
1393
+ <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line765">line 765</a>
1394
+ </li></ul></dd>
1395
+
1396
+
1397
+
1398
+
1399
+
1400
+
1401
+
1402
+
1403
+
1404
+
1405
+
1406
+
1407
+
1408
+
1409
+
1410
+
1411
+
1412
+
1413
+
1414
+
1415
+
1416
+
1417
+
1418
+
1419
+
1420
+
1421
+
1422
+
1423
+
1424
+
1425
+
1426
+ </dl>
1427
+
1428
+
1429
+
1430
+
1431
+
1432
+ <div class="description">
1433
+ Video destination width
1434
+ </div>
1435
+
1436
+
1437
+
1438
+ <h5>Type:</h5>
1439
+ <ul>
1440
+ <li>
1441
+
1442
+ <span class="param-type">number</span>
1443
+
1444
+
1445
+ </li>
1446
+ </ul>
1447
+
1448
+
1449
+
1450
+
1451
+
1452
+
1453
+
1454
+
1455
+ <h4 class="name" id="mediaX"><span class="type-signature"></span>mediaX<span class="type-signature"> :number</span></h4>
1456
+
1457
+
1458
+
1459
+
1460
+
1461
+ <dl class="details">
1462
+
1463
+
1464
+ <dt class="tag-source">Source:</dt>
1465
+ <dd class="tag-source"><ul class="dummy"><li>
1466
+ <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line753">line 753</a>
1467
+ </li></ul></dd>
1468
+
1469
+
1470
+
1471
+
1472
+
1473
+
1474
+
1475
+
1476
+
1477
+
1478
+
1479
+
1480
+
1481
+
1482
+
1483
+
1484
+
1485
+
1486
+
1487
+
1488
+
1489
+
1490
+
1491
+
1492
+
1493
+
1494
+
1495
+
1496
+
1497
+
1498
+
1499
+ </dl>
1500
+
1501
+
1502
+
1503
+
1504
+
1505
+ <div class="description">
1506
+ Video offset relative to layer
1507
+ </div>
1508
+
1509
+
1510
+
1511
+ <h5>Type:</h5>
1512
+ <ul>
1513
+ <li>
1514
+
1515
+ <span class="param-type">number</span>
1516
+
1517
+
1518
+ </li>
1519
+ </ul>
1520
+
1521
+
1522
+
1523
+
1524
+
1525
+
1526
+
1527
+
1528
+ <h4 class="name" id="mediaY"><span class="type-signature"></span>mediaY<span class="type-signature"> :number</span></h4>
1529
+
1530
+
1531
+
1532
+
1533
+
1534
+ <dl class="details">
1535
+
1536
+
1537
+ <dt class="tag-source">Source:</dt>
1538
+ <dd class="tag-source"><ul class="dummy"><li>
1539
+ <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line759">line 759</a>
1540
+ </li></ul></dd>
1541
+
1542
+
1543
+
1544
+
1545
+
1546
+
1547
+
1548
+
1549
+
1550
+
1551
+
1552
+
1553
+
1554
+
1555
+
1556
+
1557
+
1558
+
1559
+
1560
+
1561
+
1562
+
1563
+
1564
+
1565
+
1566
+
1567
+
1568
+
1569
+
1570
+
1571
+
1572
+ </dl>
1573
+
1574
+
1575
+
1576
+
1577
+
1578
+ <div class="description">
1579
+ Video offset relative to layer
1580
+ </div>
1581
+
1582
+
1583
+
1584
+ <h5>Type:</h5>
1585
+ <ul>
1586
+ <li>
1587
+
1588
+ <span class="param-type">number</span>
1589
+
1590
+
1591
+ </li>
1592
+ </ul>
1593
+
1594
+
1595
+
1596
+
1597
+
1598
+
1599
+
1600
+
1601
+ <h4 class="name" id="muted"><span class="type-signature"></span>muted<span class="type-signature"> :boolean</span></h4>
1602
+
1603
+
1604
+
1605
+
1606
+
1607
+ <dl class="details">
1608
+
1609
+
1610
+ <dt class="tag-source">Source:</dt>
1611
+ <dd class="tag-source"><ul class="dummy"><li>
1612
+ <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line663">line 663</a>
1613
+ </li></ul></dd>
1614
+
1615
+
1616
+
1617
+
1618
+
1619
+
1620
+
1621
+
1622
+
1623
+ <dt class="tag-overrides">Overrides:</dt>
1624
+ <dd class="tag-overrides"><ul class="dummy"><li>
1625
+ <a href="module-layer-Media.html#muted">module:layer~Media#muted</a>
1626
+ </li></ul></dd>
1627
+
1628
+
1629
+
1630
+
1631
+
1632
+
1633
+
1634
+
1635
+
1636
+
1637
+
1638
+
1639
+
1640
+
1641
+
1642
+
1643
+
1644
+
1645
+
1646
+
1647
+
1648
+
1649
+
1650
+ </dl>
1651
+
1652
+
1653
+
1654
+
1655
+
1656
+
1657
+
1658
+ <h5>Type:</h5>
1659
+ <ul>
1660
+ <li>
1661
+
1662
+ <span class="param-type">boolean</span>
1663
+
1664
+
1665
+ </li>
1666
+ </ul>
1667
+
1668
+
1669
+
1670
+
1671
+
1672
+
1673
+
1674
+
1675
+ <h4 class="name" id="playbackRate"><span class="type-signature"></span>playbackRate<span class="type-signature"> :number</span></h4>
1676
+
1677
+
1678
+
1679
+
1680
+
1681
+ <dl class="details">
1682
+
1683
+
1684
+ <dt class="tag-source">Source:</dt>
1685
+ <dd class="tag-source"><ul class="dummy"><li>
1686
+ <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line673">line 673</a>
1687
+ </li></ul></dd>
1688
+
1689
+
1690
+
1691
+
1692
+
1693
+
1694
+
1695
+
1696
+
1697
+ <dt class="tag-overrides">Overrides:</dt>
1698
+ <dd class="tag-overrides"><ul class="dummy"><li>
1699
+ <a href="module-layer-Media.html#playbackRate">module:layer~Media#playbackRate</a>
1700
+ </li></ul></dd>
1701
+
1702
+
1703
+
1704
+
1705
+
1706
+
1707
+
1708
+
1709
+
1710
+
1711
+
1712
+
1713
+
1714
+
1715
+
1716
+
1717
+
1718
+
1719
+
1720
+
1721
+
1722
+
1723
+
1724
+ <dt class="tag-todo">To Do:</dt>
1725
+ <dd class="tag-todo">
1726
+ <ul>
1727
+ <li><strong>Implement</strong></li>
1728
+ </ul>
1729
+ </dd>
1730
+
1731
+ </dl>
1732
+
1733
+
1734
+
1735
+
1736
+
1737
+
1738
+
1739
+ <h5>Type:</h5>
1740
+ <ul>
1741
+ <li>
1742
+
1743
+ <span class="param-type">number</span>
1744
+
1745
+
1746
+ </li>
1747
+ </ul>
1748
+
1749
+
1750
+
1751
+
1752
+
1753
+
1754
+
1755
+
1756
+ <h4 class="name" id="source"><span class="type-signature"></span>source<span class="type-signature"> :MediaStreamAudioSourceNode</span></h4>
1757
+
1758
+
1759
+
1760
+
1761
+
1762
+ <dl class="details">
1763
+
1764
+
1765
+ <dt class="tag-source">Source:</dt>
1766
+ <dd class="tag-source"><ul class="dummy"><li>
1767
+ <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line617">line 617</a>
1768
+ </li></ul></dd>
1769
+
1770
+
1771
+
1772
+
1773
+
1774
+
1775
+
1776
+
1777
+
1778
+ <dt class="tag-overrides">Overrides:</dt>
1779
+ <dd class="tag-overrides"><ul class="dummy"><li>
1780
+ <a href="module-layer-Media.html#source">module:layer~Media#source</a>
1781
+ </li></ul></dd>
1782
+
1783
+
1784
+
1785
+
1786
+
1787
+
1788
+
1789
+
1790
+
1791
+
1792
+
1793
+
1794
+
1795
+
1796
+
1797
+
1798
+
1799
+
1800
+
1801
+
1802
+
1803
+
1804
+
1805
+ </dl>
1806
+
1807
+
1808
+
1809
+
1810
+
1811
+ <div class="description">
1812
+ The audio source node for the media
1813
+ </div>
1814
+
1815
+
1816
+
1817
+ <h5>Type:</h5>
1818
+ <ul>
1819
+ <li>
1820
+
1821
+ <span class="param-type">MediaStreamAudioSourceNode</span>
1822
+
1823
+
1824
+ </li>
1825
+ </ul>
1826
+
1827
+
1828
+
1829
+
1830
+
1831
+
1832
+
1833
+
1834
+ <h4 class="name" id="volume"><span class="type-signature"></span>volume<span class="type-signature"> :number</span></h4>
1835
+
1836
+
1837
+
1838
+
1839
+
1840
+ <dl class="details">
1841
+
1842
+
1843
+ <dt class="tag-source">Source:</dt>
1844
+ <dd class="tag-source"><ul class="dummy"><li>
1845
+ <a href="layer.js.html">layer.js</a>, <a href="layer.js.html#line668">line 668</a>
1846
+ </li></ul></dd>
1847
+
1848
+
1849
+
1850
+
1851
+
1852
+
1853
+
1854
+
1855
+
1856
+ <dt class="tag-overrides">Overrides:</dt>
1857
+ <dd class="tag-overrides"><ul class="dummy"><li>
1858
+ <a href="module-layer-Media.html#volume">module:layer~Media#volume</a>
1859
+ </li></ul></dd>
1860
+
1861
+
1862
+
1863
+
1864
+
1865
+
1866
+
1867
+
1868
+
1869
+
1870
+
1871
+
1872
+
1873
+
1874
+
1875
+
1876
+
1877
+
1878
+
1879
+
1880
+
1881
+
1882
+
1883
+ </dl>
1884
+
1885
+
1886
+
1887
+
1888
+
1889
+
1890
+
1891
+ <h5>Type:</h5>
1892
+ <ul>
1893
+ <li>
1894
+
1895
+ <span class="param-type">number</span>
1896
+
1897
+
1898
+ </li>
1899
+ </ul>
1900
+
1901
+
1902
+
1903
+
1904
+
1905
+
1906
+
1907
+
1908
+
1909
+
1910
+
1911
+
1912
+
1913
+
1914
+ </article>
1915
+
1916
+ </section>
1917
+
1918
+
1919
+
1920
+
1921
+
1922
+
1923
+ </div>
1924
+
1925
+ <br class="clear">
1926
+
1927
+ <footer>
1928
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Sun Oct 13 2019 15:38:43 GMT-0400 (Eastern Daylight Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1929
+ </footer>
1930
+
1931
+ <script>prettyPrint();</script>
1932
+ <script src="scripts/polyfill.js"></script>
1933
+ <script src="scripts/linenumber.js"></script>
1934
+
1935
+
1936
+
1937
+ </body>
1938
+ </html>