You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make this function more useful, which could have accessibility implications
Most appropriate sub-area of p5.js?
Accessibility
Color
Core/Environment/Rendering
Data
DOM
Events
Image
IO
Math
Typography
Utilities
WebGL
Build process
Unit testing
Internationalization
Friendly errors
Other (specify if possible)
Feature enhancement details
Was just testing loading an array of createVideo(), in which each one should be muted, looped and hidden, however I learned that the callback function doesn't include the instance of media to directly affect, rather it expects a single global variable is used. Perhaps this could return as a param the media instance, so that one can directly mute, hide, loop that video once loaded?
letvideos=['path1.mov','path2.mov','path3.mov','path4.mov',]letvideoPlayers=[]functionsetup(){createCanvas(windowWidth,windowHeight)for(letvofvideos){videoPlayers.push(createVideo('data/videos/'+v,(vid)=>{print(vid)// *** undefined, but ideal if that was returned media itemvideoPlayers[videoPlayers.length-1].volume(0)// only works once, too fast on next callvideoPlayers[videoPlayers.length-1].loop()// only works once, too fast on next callvideoPlayers[videoPlayers.length-1].hide()// only works once, too fast on next call}))}}
The text was updated successfully, but these errors were encountered:
Increasing access
Make this function more useful, which could have accessibility implications
Most appropriate sub-area of p5.js?
Feature enhancement details
Was just testing loading an array of
createVideo()
, in which each one should be muted, looped and hidden, however I learned that the callback function doesn't include the instance of media to directly affect, rather it expects a single global variable is used. Perhaps this could return as a param the media instance, so that one can directly mute, hide, loop that video once loaded?The text was updated successfully, but these errors were encountered: