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

Embedded MPV in java application opens in an external window #15543

Closed
6 tasks done
MystEr3-84 opened this issue Dec 19, 2024 · 1 comment
Closed
6 tasks done

Embedded MPV in java application opens in an external window #15543

MystEr3-84 opened this issue Dec 19, 2024 · 1 comment
Labels

Comments

@MystEr3-84
Copy link

mpv Information

mpv 0.39.0 Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
libplacebo version: v7.349.0
FFmpeg version: 7.1
FFmpeg library versions:
   libavcodec      61.19.100
   libavdevice     61.3.100
   libavfilter     10.4.100
   libavformat     61.7.100
   libavutil       59.39.100
   libswresample   5.3.100
   libswscale      8.3.100

Other Information

- macOS version: macOS 14.1 (23B2073)
- Source of mpv: homebrew
- Latest known working version: 0.34.1_2 embedded in Java 8 application
- Issue started after the following happened: after migration of the application to Java 17 and updated MPV version

Reproduction Steps

We have a Java application (Eclipse RCP/SWT) that embeds MPV.
Everything worked fine with MPV 0.34.1_2 embedded in Java 8 application.
Now with MPV 0.39 embedded in Java 17 application the MPV opens in an external window.
We found this discussion #13974 telling about MPV opening in an external window too, but the OS is not specified. We tried the solution mpv_set_option_string(mpv, "vo", "libmpv"), on MacOs it doesn't open an external window but there is only the sound and no video.
Does someone know if it is possible to embed MPV in an application on MacOs without MPV opening in an external window?

Expected Behavior

MPV embedded in the application

Actual Behavior

MPV opening in an external window

Log File

log.log

Sample Files

A little example opening an SWT window (needs Eclipse IDE to be executed), loading MPV with JNA and opening a video.
MPVEmbedSWT2.txt

Here you can see the java window on top left corner, and the MPV running to the bottom right.
2024-12-17 16 25 55

I carefully read all instruction and confirm that I did the following:

  • I tested with the latest mpv version to validate that the issue is not already fixed.
  • I provided all required information including system and mpv version.
  • I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of --log-file=output.txt.
  • I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
  • I attached the full, untruncated log file.
  • I attached the backtrace in the case of a crash.
@Akemi
Copy link
Member

Akemi commented Dec 19, 2024

wid embedding is atm not supported anymore. it was removed with the old deprecated cocoa backend #12861.

see also our macOS todos (#13608), "add wid embedding to macvk".

TLDR:

closing since it works as intended for now.

@Akemi Akemi closed this as completed Dec 19, 2024
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