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 would I time when mediatexture activates and a video begins playing

Greetings all! So I have a test demo thats going to be stationary, about 30 seconds from the start I would like a mediatexture (tv screen) trigger and have a video start to play. After that video ends I would like to have another screen trigger and start to play another video. I have the tv screen and the video working (seemingly only when I have it playing in the media player in editor and not on its own when I start the demo) but I'm not sure how to trigger it on a timer instead of it autoplaying or being activated by moving the camera into a trigger volume. Any help would be greatly appreciated, thanks!

Product Version: Not Selected
more ▼

asked Nov 11 '15 at 06:49 PM in Using UE4

avatar image

41 2 5 6

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

1 answer: sort voted first

We don't have an event yet that fires when a movie finished playing, so the best you can do right now is to have a timer that triggers after the duration of the movie. The MediaPlayer asset has a GetDuration function that will tell you how long the currently loaded movie is. If the movie never changes, you could also just hard-code the time in your BP for now.

more ▼

answered Nov 11 '15 at 07:50 PM

avatar image FlickNolis Nov 11 '15 at 11:40 PM

Ah ok so even just for a tv to turn on after say 10 seconds (with a stationary player, purely timed event without walking into a volume) would I set a trigger in the level, in the level BP make a custom event and use a set timer delegate and link that to the media player assett? (first time trying this stuff). I've found some tutorials that are similar to what I'm trying to do but I'm kind of piecing together info as I go. Thanks!

avatar image gmpreussner STAFF Nov 12 '15 at 05:22 PM

Yeah, that would work. You can call the MediaPlayer's Play function from a timed event or trigger, or start a timer from a trigger :)

avatar image FlickNolis Nov 24 '15 at 07:14 AM

You wouldn't be able to load up an image of how to properly set that up would you? I have the video playing fine on load but I can't seem to get the timers to do what theyre supposed to do. The video just plays on load as usual. It's set up super simple in the level blueprint. (eventBeginPlay-play target is media player-media movie) but when I try to add timers nothing seems to happen so I'm sure I'm doing it wrong. Still a beginner and getting a grip on the core concepts of this stuff. Thanks!

(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