Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

Product Version: UE 4.18
more ▼

asked Mar 20 '18 at 02:07 PM in Using UE4

avatar image

Sephy Muspellheim
32 1 6 6

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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

more ▼

answered Mar 20 '18 at 05:49 PM

avatar image Sephy Muspellheim Mar 21 '18 at 09:32 AM

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

avatar image gmpreussner STAFF Mar 21 '18 at 03:29 PM

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.

avatar image Sephy Muspellheim Mar 21 '18 at 06:10 PM

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?

avatar image AyanMiru Mar 22 '18 at 02:09 AM

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

avatar image Sephy Muspellheim Mar 22 '18 at 10:11 AM

alt text

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

capture.png (37.6 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question