How to Setup a URL or Embedded Video Player
Last updated
Last updated
Add a BPM_VideoPlayer
to your level.
Add a BPM_VideoPlayerControl
to your level.
In Editor, select the VideoPlayer. A Web URL can be selected to play on start up by adding the desired URL to M2Video
-> Src
in the details section.
While in game, open the control panel by clicking on it (assuming use of a role with permissions to use control panels such as director). The Web URL can be updated in here by editing the Video URL
section.
Note: Video quality & performance are expected to degrade when streaming more than 1 video via URL at a time
Ensure your video is the correct format (as required by Unreal's Electra media player)
We test video assets encoded with ffmpeg. To install ffmpeg, you can run a powershell terminal (as Administrator) as run choco install ffmpeg
(or download from their website).
Then, for a given video called in.mp4
you can run:
ffmpeg.exe -i in.mp4 -crf 28 -preset slow out.mp4
Place the encoded out.mp4
video into your Content/Movies
folder in your project (create the Movies
folder yourself if you need to)
Create an M2 File Media Source
by right-clicking in your Content Browser and selecting:
Name your asset whatever you like, e.g. TestVideo
, then double-click to open it
In the right-hand panel, select your video asset from the Content/Movies
folder you put it in:
This should result in:
Lastly, either in PiE or after uploading your content, launching a world, and connecting in:
Ensure you are Director
mode in order to be able to manage the video player control
Right-click to display your cursor and click video player control
Select your video asset from the Embedded Video
drop-down list