Skip to content

Commit

Permalink
Screen recording from Icestudio
Browse files Browse the repository at this point in the history
  • Loading branch information
cavearr committed Jan 12, 2025
1 parent eb6adcd commit b2a9974
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions app/scripts/services/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -2201,7 +2201,7 @@ this.takeSnapshotPNG = function() {
isRecording=true;
try {

const videoChunks = [];
let videoChunks = [];

const displayMediaOptions = {
video: {
Expand Down Expand Up @@ -2233,7 +2233,8 @@ this.takeSnapshotPNG = function() {
};

// Inicia la grabación
mediaRecorder.start();
setTimeout(function(){ mediaRecorder.start();},750);

const wrapper = document.getElementById('main-icestudio-wrapper');
wrapper.classList.add('icestudio-taking-snapshot-video'); // Añade la clase 'new-class'
} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion app/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -450,5 +450,5 @@ button:focus {

.icestudio-taking-snapshot-video{

border:1px solid blue;
border:2px solid blue;
}

0 comments on commit b2a9974

Please sign in to comment.