Skip to content

createCapture stop recording after using get()  #3753

@Bariyard

Description

@Bariyard

Nature of issue?

  • Found a bug
  • Existing feature enhancement
  • New feature request

Most appropriate sub-area of p5.js?

  • Color
  • Core/Environment/Rendering
  • Data
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Other (specify if possible)

Which platform were you using when you encountered this?

  • Mobile/Tablet (touch devices)
  • Desktop/Laptop
  • Others (specify if possible)

Details about the bug:

  • p5.js version: 0.8.0
  • Web browser and version: Chrome:: 74.0.3729.157 (Official Build) (64-bit)
  • Operating System: MacOSX 10.13.6
  • Steps to reproduce this:

createCapture stop recording after using get()

let img;

function setup() {
  createCanvas(400, 400);
  capture = createCapture(VIDEO);
  capture.size(400, 400);
  capture.hide();
}

function draw() {
  background(220);
  img = capture.get()   // <<---- stop recording
  image(capture,0,0, 400, 400);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions