Something as simple as playing a .wmv or .mp4 file to intro into your game seems almost impossible!
I have figured out how to use flat planes with static images and use the matinee to intro the game, but I want to play an intro video, and when itās done, load a level!
Is this even possible? If not, what is the possible work around to this?
Thanks for reading Canāt wait to hear from you guys!
Iām still having trouble getting this to play in 4.8. I converted the video to 720p and mp4 format and was prompted to make a copy when I added it to the startup video with no luck. Will the startup video play if I use the stand alone game or do I need to build the game?
Ok, immediately after posting it worked. The only thing I changed was to convert the video to 60fps instead of 30. Not sure why that did anything but it works now.
I have the exact same problemā¦However suddenly it worked. But then I tried to set it up again for a different video and couldnāt make it work!!! Maybe Unreal doesnāt reconigses the video, but after saving and closing unreal it suddenly works??? Anyways I have been trying to set videos up many times with out success
Creating scene from attached video should not take you longer than 20 minutes.
create empty level
set fixed non movable camera
lock mouse so camera does not move around just focuses on the foreground widget
throw simple plane mesh into the scene, move it around so it will perfectly fit camera viewport
create desired main menu widget and add it to the viewport on begin play
add desired video to following folder //content/Movies/
in same folder right click add Media player source class
link to your video and save class
right click again and add Media player class
it will ask you if create texture and sound file out of it - select yes
save all 3 files
on media player properties select āloopā and āplay on startā attributes
select texture and sound file and drag & drop them onto your mesh
right click on the texture and create material based on that texture and save
select mesh and from right hand properties menu set material for that mesh from recently created file
enter level blueprint
probably have to add sequence to event begin play - follow node and add Open source function
from that function pick your video (will be in the drop down)
Add new variable to level blueprint
pick variable type āMedia playerā from default value drop down pick the media class created previously
save everything
drop this variable into blueprint with āgetā parameter
connect target āopen sourceā function to recently created media player
compile, save, play
on play button your widget will pop up and video will keep playing endlessly.
not sure if this is cleanest way to do it but you will achieve desired effect. Also not sure how ultrawide monitors will cope with that - probs have to make mesh just 30% wider