Skip to content

Commit d193ba0

Browse files
committed
Fix+Visualizer+Capture: no more use of dom.screenCanvas directly
1 parent a553ff5 commit d193ba0

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

api/capture.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $.extend( api, {
2424
sc = ( sc < 10 ? "0" : "" ) + sc.toFixed( 2 );
2525

2626
if ( file.type === "audio" ) {
27-
canvas = dom.screenCanvas[ 0 ];
27+
canvas = ui.visualizerCanvas();
2828
} else {
2929
canvas = canvasCapture;
3030
w = canvas.width = api.videoElement.videoWidth;

compressed.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
var loaded = false;
66

77
window.api = {
8-
version: "0.8.17",
8+
version: "0.8.18",
99
thumbnail: {}
1010
};
1111

ui/visualisations.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ if ( analyser ) {
2020

2121
ui.visualizerIsOn = false;
2222

23+
ui.visualizerCanvas = function() {
24+
return ui.visualizerIsOn && canvasUsed.canvas;
25+
};
26+
2327
ui.visualizerAdd = function( name, ctxType, fn ) {
2428
arrayVisu[ name ] = {
2529
ctxType: ctxType,

0 commit comments

Comments
 (0)