Skip to content

Commit f668040

Browse files
committed
Use PNG frame format by default.
Non Oracle JDKs do not support writing JPG frames that have alpha channel. See https://bugs.openjdk.java.net/browse/JDK-8211748 for details.
1 parent 07fd2ac commit f668040

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/com/github/xsavikx/androidscreencast/api/injector/ScreenCaptureRunnable.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,9 @@ public void setListener(final ScreenCaptureListener listener) {
129129
this.listener = listener;
130130
}
131131

132-
133132
public void startRecording(final File file) {
134133
try {
135-
qos = new QuickTimeOutputStream(file, QuickTimeOutputStream.VideoFormat.JPG);
134+
qos = new QuickTimeOutputStream(file, QuickTimeOutputStream.VideoFormat.PNG);
136135
qos.setVideoCompressionQuality(MOV_COMPRESSION_RATE);
137136
qos.setTimeScale(MOV_FPS);
138137
} catch (final IOException e) {

0 commit comments

Comments
 (0)