new WebcamSource(renderer, options)
The WebcamSource allows for playback of webcams in the Mixer project
Webcam Example on codepen:
codepen
The WebcamSource allows for playback of webcams in the Mixer project
Parameters:
Name | Type | Description |
---|---|---|
renderer |
GlRenderer | GlRenderer object |
options |
Object | JSON Object |
- Implements:
- Source:
Example
let myWebcamSource = new WebcamSource( renderer, { src: 'myfile.mp4' } );
Members
video
exposes the HTMLMediaElement Video for listeners and control
- Source:
Methods
currentTime(time)
skip to time (in seconds) or gets currentTime
in seconds
Parameters:
Name | Type | Description |
---|---|---|
time |
float | time in seconds |
- Source:
duration()
give the duration of the video in seconds (cannot be changed)
- Source:
pause()
pauses the video
- Source:
paused()
returns true then the video is paused. False otherwise
- Source:
play()
start the current video
- Source: