Skip to content

Commit

Permalink
Upgrade Monte library
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed Jul 31, 2024
1 parent 8b39ee8 commit a7297b2
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 17 deletions.
11 changes: 5 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
<maven.version>3.8.1</maven.version>
<maven-resolver.version>1.6.2</maven-resolver.version>
<groovy.version>3.0.22</groovy.version>
<monte.version>0.7.7.0</monte.version>
<slf4j.version>2.0.13</slf4j.version>
<jffi.version>1.3.13</jffi.version>
</properties>
Expand Down Expand Up @@ -65,6 +64,11 @@
<artifactId>args4j</artifactId>
<version>2.37</version>
</dependency>
<dependency>
<groupId>ch.randelshofer</groupId>
<artifactId>org.monte.media.screenrecorder</artifactId>
<version>17.1</version>
</dependency>
<dependency>
<groupId>com.browserup</groupId>
<artifactId>browserup-proxy-core</artifactId>
Expand Down Expand Up @@ -121,11 +125,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.github.stephenc.monte</groupId>
<artifactId>monte-screen-recorder</artifactId>
<version>${monte.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
import java.io.File;
import java.io.IOException;
import org.jenkinsci.test.acceptance.junit.FailureDiagnostics;
import org.monte.media.Format;
import org.monte.media.Registry;
import org.monte.screenrecorder.ScreenRecorder;
import org.monte.media.av.Format;
import org.monte.media.av.Registry;
import org.monte.media.screenrecorder.ScreenRecorder;

/**
* Custom Screen Recorder that allow to rename video output file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
import org.jenkinsci.test.acceptance.utils.SystemEnvironmentVariables;
import org.junit.rules.TestWatcher;
import org.junit.runner.Description;
import org.monte.media.Format;
import org.monte.media.FormatKeys;
import org.monte.media.VideoFormatKeys;
import org.monte.media.av.Format;
import org.monte.media.av.FormatKeys;
import org.monte.media.av.codec.video.VideoFormatKeys;
import org.monte.media.math.Rational;
import org.monte.screenrecorder.ScreenRecorder;
import org.monte.media.screenrecorder.ScreenRecorder;

/**
* JUnit Rule that before executing a test it starts a recording current screen
Expand Down Expand Up @@ -67,9 +67,9 @@ private void startRecording(Description des) {
.getDefaultScreenDevice()
.getDefaultConfiguration();

String mimeType = FormatKeys.MIME_QUICKTIME;
String videoFormatName = VideoFormatKeys.ENCODING_QUICKTIME_ANIMATION;
String compressorName = VideoFormatKeys.COMPRESSOR_NAME_QUICKTIME_ANIMATION;
String mimeType = FormatKeys.MIME_AVI;
String videoFormatName = VideoFormatKeys.ENCODING_AVI_TECHSMITH_SCREEN_CAPTURE;
String compressorName = VideoFormatKeys.COMPRESSOR_NAME_AVI_TECHSMITH_SCREEN_CAPTURE;
Dimension outputDimension = gc.getBounds().getSize();
int bitDepth = BIT_DEPTH;
float quality = QUALITY_RATIO;
Expand Down
10 changes: 10 additions & 0 deletions src/main/resources/META-INF/services/org.monte.media.av.CodecSpi
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
org.monte.media.av.codec.video.JPEGCodecSpi
org.monte.media.av.codec.video.PNGCodecSpi
org.monte.media.av.codec.video.TechSmithCodecSpi
org.monte.media.avi.codec.audio.AVIPCMAudioCodecSpi
org.monte.media.avi.codec.video.DIBCodecSpi
org.monte.media.avi.codec.video.RunLengthCodecSpi
org.monte.media.avi.codec.video.ZMBVCodecSpi
org.monte.media.quicktime.codec.audio.QuickTimePCMAudioCodecSpi
org.monte.media.quicktime.codec.video.AnimationCodecSpi
org.monte.media.quicktime.codec.video.RawCodecSpi
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
org.monte.media.avi.AVIReaderSpi
org.monte.media.quicktime.QuickTimeReaderSpi
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
org.monte.media.avi.AVIWriterSpi
org.monte.media.quicktime.QuickTimeWriterSpi
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private TestRecorderRule rule(Description desc) {
}

private File outputFile(Description desc) {
return new File("target/diagnostics/" +desc + "/ui-recording.mov");
return new File("target/diagnostics/" +desc + "/ui-recording.avi");
}

private String updateRecorderToDefaultOption() {
Expand Down

0 comments on commit a7297b2

Please sign in to comment.