Videos
FancyMenu supports playing MP4 videos as elements, menu backgrounds, and Game Intro content.
The native Video element and Video menu background use Watermedia V3. The old Video [MCEF] types are deprecated and should only remain in layouts that still need them.
There are also the following actions to control video backgrounds and elements:
- Set Video Element Volume sets the volume of a Video element.
- Set Video Element Play Time seeks a Video element to a millisecond timestamp.
- Toggle Video Element Paused State toggles a Video element's paused state.
- Set Video Background Volume sets a Video menu background's volume.
- Set Video Background Play Time seeks a Video menu background to a millisecond timestamp.
- Toggle Video Background Paused State toggles a Video menu background's paused state.
And the following placeholders to get information about video backgrounds and elements:
- Video Element Volume returns a Video element's volume.
- Video Element Duration returns a Video element's duration.
- Video Element Play Time returns a Video element's current progress.
- Video Element Paused State returns whether a Video element is paused.
- Video Background Volume returns a Video menu background's volume.
- Video Background Duration returns a Video menu background's duration.
- Video Background Play Time returns a Video menu background's current progress.
- Video Background Paused State returns whether a Video menu background is paused.
The duration and play-time placeholders return MM:SS by default. Set output_as_timestamp to true when you need millisecond timestamps. Play-time placeholders can still use show_percentage for 0-100 progress values.
Volume and paused-state values are controller metadata associated with the identifier. Duration and play-time values require the matching Video element or background to be active and ready on the current screen.
The On Video Playback Status Changed listener can react to PLAYING, PAUSED, STOPPED, and FINISHED.
Requirements
To use the new native Video element and menu background type, you need to install:
- Watermedia V3
- Watermedia Binaries V3
These are optional dependencies, so they must be added to the instance manually if you want video support.
Native video playback also requires an OpenGL renderer. Watermedia playback is unavailable while Minecraft uses Vulkan; switch to OpenGL to use Video elements, Video menu backgrounds, and video Game Intros.
The deprecated Video [MCEF] type still uses MCEF. For new layouts, use the native Watermedia-powered Video type instead.
Videos in Loading Screens
Video support does NOT work in loading screens (game/resource loading screen & world loading screen).
This also means that you should NOT add videos to the game loading screen via Drippy Loading Screen, since it will not work in most cases.
Use short, simple AFMA/FMA animations in loading screens instead.
Troubleshooting
If native video does not play, confirm that Watermedia V3 and Watermedia Binaries V3 match your Minecraft/modloader version and that Minecraft is using OpenGL instead of Vulkan.