Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screen recording can't be opened natively on Mac #1041

Open
timja opened this issue Mar 2, 2023 · 1 comment
Open

Screen recording can't be opened natively on Mac #1041

timja opened this issue Mar 2, 2023 · 1 comment
Labels

Comments

@timja
Copy link
Member

timja commented Mar 2, 2023

Jenkins and plugins versions report

What Operating System are you using (both controller, and any agents involved in the problem)?

Reproduction steps

Open a ui-recording.mov from a test result
If you're on mac it will default to quicktime player, it fails to open

Expected Results

It opens

Actual Results

It doesn't

Anything else?

I'm using VLC to open them currently which works but it's the only thing I need VLC for these days...

Code is around here:

String mimeType = FormatKeys.MIME_QUICKTIME;
String videoFormatName = VideoFormatKeys.ENCODING_QUICKTIME_ANIMATION;
String compressorName = VideoFormatKeys.COMPRESSOR_NAME_QUICKTIME_ANIMATION;
Dimension outputDimension = gc.getBounds().getSize();
int bitDepth = BIT_DEPTH;
float quality = QUALITY_RATIO;
int screenRate = FRAME_RATE_PER_SEC;
Format outputFormatForScreenCapture = getOutputFormatForScreenCapture(videoFormatName,
compressorName, outputDimension,
bitDepth, quality, screenRate);
this.screenRecorder = new JUnitScreenRecorder
(gc, gc.getBounds(), getFileFormat(mimeType),
outputFormatForScreenCapture, null, null, diagnostics);
this.screenRecorder.start();

Found a blog post that's newer than our code here which may have some updated format:
https://www.ontestautomation.com/creating-a-video-capture-of-your-selenium-tests-using-monte-screen-recorder/

@jtnord
Copy link
Member

jtnord commented May 15, 2023

You can not open it natively on Windows either and am also using VLC to view them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants