Skip to content

Commit

Permalink
[DOC]
Browse files Browse the repository at this point in the history
  • Loading branch information
Viglino committed Oct 27, 2022
1 parent 6f15a55 commit 924b3f1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions dist/ol-ext.js
Original file line number Diff line number Diff line change
Expand Up @@ -17854,8 +17854,9 @@ ol.control.VideoRecorder = class olcontrolVideoRecorder extends ol.control.Contr
var print = this._printCtrl
var stop = false
function capture(canvas) {
if (stop)
return
// Stop recording
if (stop) return
// New frame
print.fastPrint({
canvas: canvas
}, capture)
Expand Down
1 change: 1 addition & 0 deletions examples/misc/map.control.videorecorder.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ <h2>Outpt video:</h2>
// $('body').append(e.canvas);
$('#map').addClass('recording');
})
rec.on('error', console.log)

// Take a tour
function tour() {
Expand Down
5 changes: 3 additions & 2 deletions src/control/VideoRecorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ var ol_control_VideoRecorder = class olcontrolVideoRecorder extends ol_control_C
var print = this._printCtrl
var stop = false
function capture(canvas) {
if (stop)
return
// Stop recording
if (stop) return
// New frame
print.fastPrint({
canvas: canvas
}, capture)
Expand Down

0 comments on commit 924b3f1

Please sign in to comment.