Samples still frames from a MediaStream. The caller owns the stream: FrameSampler.Stop releases the sampler's elements and timer but never stops the stream's tracks.
MediaStream
The stream to sample. Its first video track is drawn.
Rate, format, size cap and the frame callback.
Whether the sampler is taking frames.
The stream being sampled.
Starts taking frames. Calling it while running does nothing.
false when there is no DOM to draw frames in, so no frames will come.
false
Stops taking frames and releases the elements. The stream's tracks keep running.
Samples still frames from a
MediaStream. The caller owns the stream: FrameSampler.Stop releases the sampler's elements and timer but never stops the stream's tracks.