问题
I wanted to play an Ultra HD (4K) Video with JavaFX 2 MediaPlayer but do only get a black screen (run on JRE 8/Windows 7). There are no error messages.
Does anyone know if JavaFX can play Ultra HD (4K) videos or where I can find these information?
Thank you.
回答1:
I can confirm the player doesn't support anything higher than 1920 pixels wide.
I created a video this weekend with X pixels of 1980 and it couldn't play. I figured out last night to drop it down to 1920 to make the video play.
The Y pixels can be above 1080, not sure how far above you can go, but I was at around 1100 with an X of 1800 and it still played.
回答2:
I can't confirm this for the Mac (with 8u60 ea). On my MacBook Pro Retina a 4K video does play, but the screen is somehow split in the middle and the right half of the video has the wrong colors.
来源:https://stackoverflow.com/questions/26160709/javafx-ultra-hd-4k-video