Playing videos in UE5

Hi,
Two of us are working on a project… it has a virtual beach created in UE5, and also video content.
Actions happen on the beach that then make it cut to a full-screen video. At that end of that video the player is returned to the virtual beach to continue trucking on down it.

In the video there are controls to pause and resume and skip to its end and back to the beach.
We’ve going this working fine and nicely.

The issue is when there are two videos that are to be played back to back.
We’d like it that the player can hit a control in the first video and that makes it skip to the start of the second video and play that.
(And also the pause and resume controls in it too).

Then at the end of that second video the player is returned to the virtual beach to continue trucking on down it.
There are also controls in that second video to pause and resume and skip to its end and back to the beach.

Have tried using Blueprint nodes, and Sequencer um sequences, got really stuck with it now.
Any suggestions much appreciated.
Thanks.

It sounds like you’re trying to implement a video playback system with multiple videos and the ability to skip between them. Am I on the right track?

One approach you could take is to use a Blueprint node called “Switch on Enum” to check the current state of the video playback. You can create an Enumeration (Enum) to represent the different states of the video playback (e.g. Video1_Playing, Video2_Playing, Video1_Paused, Video2_Paused, etc.). You can then use the “Switch on Enum” node in your Blueprint to branch the logic based on the current state of the video playback.

You could also use Blueprint nodes to handle the pausing and resuming of the video playback, as well as the skipping to the next video or returning to the virtual beach.

Another approach you could take is using sequencer in order to create a cinematic sequence that handle all the video playback and transitions between videos and the virtual beach.

In any case, it would be useful to have a clear understanding of the overall flow of the video playback system and the different states that it can be in, so that you can design the Blueprint logic and Sequencer tracks accordingly.

1 Like

Hi Elias,
Thanks for your very detailed reply… will help a lot.

It sounds like you’re trying to implement a video playback system with multiple videos and the ability to skip between them. Am I on the right track?

Yes, that’s basically it.
It would be a subset of a full system like that.

  • The player leaves the virtual beach.
  • Enters into a video (full screen).
  • At the end of that video it goes straight into a second video, which plays till its end then returns back to the “MetaBeach”.
  • Needs the ability for the player/viewer to skip out of that first video into the start of the second video, and the ability to skip out of that second video back into the “MetaBeach”.

It will mostly be just two videos back to back, but could maybe be three videos at some stage.
The niche in this Metaverse that is happening that we seem to have found ourselves in, is to seamlessly transition between playing interactively and photorealistically in a virtual world and moving in and out of the video world.

It’s for artists to become personally a seamless part of their art piece.
Are in the middle of our first contract which is going well with both the UE5 work and the videography.
Have just got stumped with this technical skipping in videos thing.

So thanks for your nice detailed reply, will be a big help.