File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 39
39
private var jpeg_quality: int ;
40
40
private var image_format: String ;
41
41
private var fps: int ;
42
+ private var flip_horiz: Boolean ;
42
43
43
44
public function Webcam () {
44
45
// class constructor
52
53
jpeg_quality = Math . floor ( flashvars. jpeg_quality );
53
54
image_format = flashvars. image_format;
54
55
fps = Math . floor ( flashvars. fps );
56
+ flip_horiz = flashvars. flip_horiz == "true" ;
55
57
56
58
stage . scaleMode = StageScaleMode . NO_SCALE ;
57
59
// stage.scaleMode = StageScaleMode.EXACT_FIT; // Note: This breaks HD capture
87
89
video. scaleX = video_width / dest_width;
88
90
video. scaleY = video_height / dest_height;
89
91
}
92
+
93
+ if (flip_horiz) {
94
+ video. scaleX *= - 1 ;
95
+ video. x = video. width + video. x ;
96
+ }
90
97
91
98
camera. setQuality (0 , 100 );
92
99
camera. setKeyFrameInterval (10 );
187
194
188
195
}
189
196
}
190
- }
197
+ }
You can’t perform that action at this time.
0 commit comments