Customizes production of Input frames
Optional
Crops the source frame
player.use( new Webcam(), { // renders square frames crop: (width, height) => [(width - height) / 2, 0, height, height], },) Copy
player.use( new Webcam(), { // renders square frames crop: (width, height) => [(width - height) / 2, 0, height, height], },)
Mirrors the source frames by X axis
player.use( new MediaStream( await navigator.mediaDevices.getUserMedia({ video: true }), ), { horizontalFlip: true, },) Copy
player.use( new MediaStream( await navigator.mediaDevices.getUserMedia({ video: true }), ), { horizontalFlip: true, },)
Source orientation counterclockwise (default: 0)
Source texture orientation (default: same as orientation)
Customizes production of Input frames