How to play a specific video in a playlist and then stop it when it's finished

Hi all.

I am trying to Get a media player working, which is going well so far.

However I have an issue, where it will keep playing through the playlist, and disabled play on open in the the media player, just disables any playback, even if i use the play command from a media player reference in blueprint, how can i stop the playlist playing continuously?

I have also tried on end reached, but that appears to apply to the WHOLE playlist, not that specific index.

Kind Regards.

mostly, I do that, it was just, at a point, I created a game instance for when the level is changed, that the game identified what video or model the user was opening using an integer, based on a colleagues advice, so I was merely attempting to utilise the array functionality, for when a level is changed.

I’m guessing, store a media source reference instead of an integer and it should work as intended?

I just assumed a playlist would have a little more control to play around with, thanks

A playlist is meant to be treated as a single playable unit. If I was you, I would maintain a BP array of media sources, then pick the desired item by index, then call MediaPlayer.OpenSource with that item.

Yeah That’s what I did after I replied, I realised i’d gone the wrong way about it, and now i’m opting for that method of specifying the media source specifically, not as a playlist, thank you.

How do I close this question? or could you submit your previous comment as an answer for me to confirm?

You can convert a comment into an answer, check the arrow-down button near comments :slight_smile:

234627-capture.png

The drop down arrow only applies to your own posts :slight_smile:

Can’t you just open that specific video by itself? Why have a playlist if you want to play only one item from it?

Old post, but i want to share my answare because i had the same problem…

Just add a delay node after play, and put the time you want to last, then after that just add a reopen node, or a stop, pause node…etc…and thats it… now you have your custom video…

Of course that time will be the same for all your videos of the playlist…so if your videos have different durations, that will be a problem… ideally all your videos should last the same…

But for me this works great…