Quick Start Guide
Get up and running with Vulkan Media Player in under 5 minutes! This guide will walk you through playing your first video in Unreal Engine.
Prerequisites
Before starting, make sure you have:
- ✅ Vulkan Media Player plugin installed and enabled
- ✅ Vulkan RHI enabled in your project
- ✅ A video file to test (MP4 with H.264 codec recommended)
Step 1: Create Media Assets
1.1 Create a Media Player
- In the Content Browser, right-click in any folder
- Select Media → Media Player
- In the dialog:
- ✅ Check Video output Media Texture asset
- ✅ Check Audio output Sound Wave asset (optional)
- Name it
MP_MyVideoand click OK
This creates two assets:
MP_MyVideo- The Media PlayerMP_MyVideo_Video- The Media Texture
1.2 Create a File Media Source
- Right-click in the Content Browser
- Select Media → File Media Source
- Name it
MS_MyVideo - Double-click to open it
- Click the ... button next to File Path
- Browse to your video file (e.g.,
Content/Movies/MyVideo.mp4) - Click Save
Codec Requirement
Only H.264 is supported:
- Container: MP4 (recommended) or MKV
- Video Codec: H.264 (AVC) - Required
- Audio Codec: AAC (recommended)
Videos with other codecs (H.265, VP9, etc.) will not play.
Step 2: Create a Material
Now we'll create a material to display the video:
- Right-click in Content Browser
- Select Material
- Name it
M_Video - Double-click to open the Material Editor
Configure the Material
In the Details panel, set:
- Material Domain: Surface
- Blend Mode: Opaque
Drag the
MP_MyVideo_VideoMedia Texture from Content Browser into the material graphConnect the texture:
- RGB output → Emissive Color input
Click Save and close the Material Editor
Why Emissive?
Using Emissive Color ensures the video displays at full brightness without being affected by scene lighting.
Step 3: Place a Video Screen in Your Level
3.1 Add a Plane
- In the Place Actors panel, search for Plane
- Drag a Plane into your level
- In the Details panel:
- Set Scale: X=4, Y=0.1, Z=2.25 (for 16:9 aspect ratio)
- Rotate if needed to face your camera
3.2 Apply the Video Material
- Select the Plane
- In the Details panel, find Materials
- Set Element 0 to your
M_Videomaterial
Step 4: Play the Video
4.1 Blueprint Setup
We'll use Level Blueprint to control playback:
- Click Blueprints → Open Level Blueprint
- Add the following nodes:
Event BeginPlay
↓
Get Player Controller
↓
Create Media Source (File Media Source) [MS_MyVideo]
↓
Open Source (Media Player) [MP_MyVideo]Detailed Steps:
- Right-click and add Event BeginPlay
- Right-click and search for your Media Player:
MP_MyVideo - From the variable, drag out and select Open Source
- Right-click on Media Source pin and select Promote to Variable
- In the Details panel, set Default Value to
MS_MyVideo - Connect Event BeginPlay → Open Source
4.2 Test the Setup
- Click Compile and Save in the Blueprint
- Close the Blueprint Editor
- Click Play in the editor
You should see your video playing on the plane! 🎉
Step 5: Add Playback Controls (Optional)
Let's add some basic controls:
Play/Pause with Keyboard
In your Level Blueprint:
Event InputKey (Space)
↓
Branch (Is Playing?)
True → Pause [MP_MyVideo]
False → Play [MP_MyVideo]Implementation:
- Add InputKey Space event
- Add Is Playing function (from Media Player reference)
- Add Branch node
- Connect:
- Is Playing → Condition
- True → Pause node
- False → Play node
Common Use Cases
Loop Video Continuously
- Open your Media Player asset (
MP_MyVideo) - In the Details panel:
- ✅ Check Loop
- Save the asset
Auto-Play on Level Start
Already set up in Step 4.1! The video starts playing when the level begins.
Play Video on Trigger
Replace Event BeginPlay with Event Begin Overlap on a trigger volume:
- Add a Box Trigger to your level
- In the Level Blueprint:
- Add Event ActorBeginOverlap (Box Trigger)
- Connect to Open Source as before
Troubleshooting
Video Doesn't Play
- Check the Output Log (
Window→Developer Tools→Output Log) - Look for errors related to:
LogVulkanMediaPlayer: Plugin-specific messagesLogMedia: General media framework messages
Common Issues:
❌ "Failed to open media source"
- Verify file path is correct
- Check video is H.264 encoded (only supported codec)
- Ensure file is not corrupted
- Re-encode with ffmpeg if needed (see Performance guide)
❌ Video plays but screen is black
- Check material is using Emissive Color
- Verify Media Texture is connected correctly
- Ensure Media Player has Video Output texture assigned
❌ No hardware acceleration
- Run
vulkaninfo | grep -i videoto verify support - Update GPU drivers
- Check Vulkan RHI is enabled
- Run
Performance Issues
- Lower video resolution (1920x1080 or lower recommended)
- Ensure video is H.264 encoded (only supported codec)
- Ensure Vulkan RHI is active (check Project Settings)
Next Steps
Now that you have basic video playback working:
- 📚 Learn about Advanced Video Playback
- 🎵 Explore Audio Support features
- ⚡ Optimize Performance
Example Project
Want a ready-to-use example? Check out our sample project:
- Download from FAB Marketplace
- Includes example levels, materials, and blueprints
Need Help?
- 💬 Join our Discord community
- 📧 Email: business@unrealsolutions.com
- 🌐 Visit: unrealsolutions.com
Congratulations! You've successfully set up video playback with Vulkan Media Player! 🎉
