@@ -1400,7 +1400,7 @@ function media(p5, fn){
14001400 * the video is ready to play.
14011401 *
14021402 * @method createVideo
1403- * @param {String|String[] } src path to a video file, or an array of paths for
1403+ * @param {String|String[] } [ src] path to a video file, or an array of paths for
14041404 * supporting different browsers.
14051405 * @param {Function } [callback] function to call once the video is ready to play.
14061406 * @return {p5.MediaElement } new <a href="#/p5.MediaElement">p5.MediaElement</a> object.
@@ -1483,11 +1483,11 @@ function media(p5, fn){
14831483 * `createAudio()` returns a new
14841484 * <a href="#/p5.MediaElement">p5.MediaElement</a> object.
14851485 *
1486- * The first parameter, `src`, is the path the video . If a single string is
1487- * passed, as in `'assets/video.mp4 '`, a single video is loaded. An array
1488- * of strings can be used to load the same video in different formats. For
1489- * example, `['assets/video.mp4 ', 'assets/video.ogv', 'assets/video.webm ']`.
1490- * This is useful for ensuring that the video can play across different
1486+ * The first parameter, `src`, is the path the audio . If a single string is
1487+ * passed, as in `'assets/audio.mp3 '`, a single audio is loaded. An array
1488+ * of strings can be used to load the same audio in different formats. For
1489+ * example, `['assets/audio.mp3 ', 'assets/video.wav ']`.
1490+ * This is useful for ensuring that the audio can play across different
14911491 * browsers with different capabilities. See
14921492 * <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats" target="_blank">MDN</a>
14931493 * for more information about supported formats.
0 commit comments