File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 948948 * @return {p5.MediaElement|p5.Element } pointer to video p5.Element
949949 * @example
950950 * <div><code>
951- * var vid
952- * function setup(){
953- * vid = createVideo([" small.mp4"," small.ogv"," small.webm" ], vidLoad);
951+ * var vid;
952+ * function setup() {
953+ * vid = createVideo([' small.mp4', ' small.ogv', ' small.webm' ], vidLoad);
954954 * }
955- *
955+ *
956956 * // This function is called when the video loads
957- * function vidLoad(){
958- * vid.play();
957+ * function vidLoad() {
958+ * vid.play();
959959 * }
960960 * </code></div>
961961 */
962- p5 . prototype . createVideo = function ( src , callback ) {
962+ p5 . prototype . createVideo = function ( src , callback ) {
963963 p5 . _validateParameters ( 'createVideo' , arguments ) ;
964964 return createMedia ( this , 'video' , src , callback ) ;
965965 } ;
You can’t perform that action at this time.
0 commit comments