scratchfoundation / scratch-gui

Graphical User Interface for creating and running Scratch 3.0 projects.
https://scratchfoundation.github.io/scratch-gui/develop/
BSD 3-Clause "New" or "Revised" License
4.46k stars 3.55k forks source link

Record Project Video feature #5699

Open apple502j opened 4 years ago

apple502j commented 4 years ago

Record Project Video feature in Scratch 2.0 recorded the project's stage as a FLV. Using MediaRecorder it is possible to record the stage (and possibly the sound): I made one here that records the stage (without sound) as WebM.

Options:

Some forum posts:

BoomerScratch commented 4 years ago

Sounds awesome! 😃

easrng commented 3 years ago
  • Show Mouse Pointer: Not possible AFAIK

That should be possible. You'd need to ex.

let pointerPositions;
on recording start{
  startTime=new Date().valueOf()
  pointerPositions = []
  on mouse move(x, y){
    pointerPositions.push([x,y,new Date().valueOf()-startTime])
  }
}
on recording end{
  remove mouse move handler
  add pointers to video(pointerPositions)
  pointerPositions=[]
}

Hmm. It might need a library to manipulate the frames though.

easrng commented 3 years ago
  • Record Entire Editor: Not possible AFAIK

Yeah, not really possible. I mean possibly something could be hacked together with dom2image or similar, but it's not really feasible. Actually, it may be possible to use getDisplayMedia for this.