Skip to content

Commit ccec486

Browse files
committed
Fix video recorder demo. Changing resolution now affects end webm size. fixes streamproc#24
1 parent 28a7406 commit ccec486

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

VideoStreamRecorder/WhammyRecorderHelper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
function WhammyRecorderHelper(mediaStream, root) {
55
this.record = function(timeSlice) {
6-
if (!this.width) this.width = video.offsetWidth || 320;
7-
if (!this.height) this.height = video.offsetHeight || 240;
6+
if (!this.width) this.width = video.videoWidth || 320;
7+
if (!this.height) this.height = video.videoHeight || 240;
88

99
if (!this.video) {
1010
this.video = {

0 commit comments

Comments
 (0)