Skip to content

Commit eb7b7df

Browse files
committed
Fix createVideo,Audio,Capture being treated as static
1 parent ff2f8af commit eb7b7df

File tree

2 files changed

+28
-25
lines changed

2 files changed

+28
-25
lines changed

docs/parameterData.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -300,31 +300,6 @@
300300
]
301301
]
302302
},
303-
"createVideo": {
304-
"overloads": [
305-
[
306-
"String|String[]",
307-
"Function?"
308-
]
309-
]
310-
},
311-
"createAudio": {
312-
"overloads": [
313-
[
314-
"String|String[]?",
315-
"Function?"
316-
]
317-
]
318-
},
319-
"createCapture": {
320-
"overloads": [
321-
[
322-
"AUDIO|VIDEO|Object?",
323-
"Object?",
324-
"Function?"
325-
]
326-
]
327-
},
328303
"cursor": {
329304
"overloads": [
330305
[
@@ -795,6 +770,31 @@
795770
]
796771
]
797772
},
773+
"createVideo": {
774+
"overloads": [
775+
[
776+
"String|String[]",
777+
"Function?"
778+
]
779+
]
780+
},
781+
"createAudio": {
782+
"overloads": [
783+
[
784+
"String|String[]?",
785+
"Function?"
786+
]
787+
]
788+
},
789+
"createCapture": {
790+
"overloads": [
791+
[
792+
"AUDIO|VIDEO|Object?",
793+
"Object?",
794+
"Function?"
795+
]
796+
]
797+
},
798798
"setMoveThreshold": {
799799
"overloads": [
800800
[

src/dom/p5.MediaElement.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,6 +1399,7 @@ function media(p5, fn){
13991399
* The second parameter, `callback`, is optional. It's a function to call once
14001400
* the video is ready to play.
14011401
*
1402+
* @method createVideo
14021403
* @param {String|String[]} src path to a video file, or an array of paths for
14031404
* supporting different browsers.
14041405
* @param {Function} [callback] function to call once the video is ready to play.
@@ -1494,6 +1495,7 @@ function media(p5, fn){
14941495
* The second parameter, `callback`, is optional. It's a function to call once
14951496
* the audio is ready to play.
14961497
*
1498+
* @method createAudio
14971499
* @param {String|String[]} [src] path to an audio file, or an array of paths
14981500
* for supporting different browsers.
14991501
* @param {Function} [callback] function to call once the audio is ready to play.
@@ -1587,6 +1589,7 @@ function media(p5, fn){
15871589
* <a href="http://stackoverflow.com/questions/34197653/getusermedia-in-chrome-47-without-using-https" target="_blank">here</a>
15881590
* and <a href="https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia" target="_blank">here</a>.
15891591
*
1592+
* @method createCapture
15901593
* @param {(AUDIO|VIDEO|Object)} [type] type of capture, either AUDIO or VIDEO,
15911594
* or a constraints object. Both video and audio
15921595
* audio streams are captured by default.

0 commit comments

Comments
 (0)