x

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"

Can mediafire be separated?

I would like to make some sort of random automatic choice between 4 - 5 videos. it is possible to separate the MediaFire

Product Version: UE 4.18
Tags:
more ▼

asked Jan 26 '18 at 10:42 PM in Using UE4

avatar image

KillfireTV
22 1 3 6

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

1 answer: sort voted first

I assume your calling to play the video through a blueprint or C++ script. Have you tried something like the switch on int node and pair it with a random int in range node. Then you could have each video linked to an output and it would randomly pick one.

more ▼

answered Jan 26 '18 at 11:19 PM

avatar image

ThompsonN13
10.1k 33 10 25

avatar image KillfireTV Jan 27 '18 at 06:32 AM

I'm using a programming through the blocks. I would like to do what you said, only that I am a beginner. I do not know much.

avatar image ThompsonN13 Jan 27 '18 at 06:57 AM

ok so your using blueprint scripting thats what i use too. Your using something like a play sequence node to play the videos right. pretty much the switch on in is a node that has one input and multiple outputs and decides which output to use based on a integer you provide. but instead of providing a static number you want to plug in a random int in range node which will select a random number between 2 numbers you give it.

in the picture below youll see the basic way of setting it up. fyi i havent worked much with video stuff so the actual playing of video might not be right but selecting of which one to play is solid. alt text

capture.png (223.0 kB)
avatar image KillfireTV Jan 27 '18 at 07:06 AM

But could you show me all the steps to insert the videos? Because when I make them, I let them all out on a mediaplayer

avatar image ThompsonN13 Jan 27 '18 at 07:28 AM

its not something i have worked with so id have to do some research but it should be something like you get a reference to what your looking to play then have it connected to a play node.

avatar image KillfireTV Jan 27 '18 at 08:56 AM

can not find anything, to split media players. Would not you have some ideas? Sure, you have more experience than me XD

avatar image ThompsonN13 Jan 27 '18 at 04:50 PM

k i just looked into how to implement it. The picture below shows how i did it and This is a link to the official documentation which shows you how to setup media step by step. basically follow the instructions in the link to create your media player and apply it to a mesh. when you get tot the part in the level blueprint do it the way they show then drag off the media source and create a select node. also note if you right click on the node where it says select you will see a option to "add option pin" which you can use to add more options. then just add a random int in range node and you should be good to go.

alt text

capture.png (111.1 kB)
avatar image KillfireTV Jan 27 '18 at 06:59 PM

which target should I put to open the Widget I want?alt text

cattura2.png (207.3 kB)
avatar image ThompsonN13 Jan 27 '18 at 07:59 PM

the target is the widget you want to add to the viewport. usually for a widget you would use a create widget node then add to viewport immediately after. so basically get a reference to the widget you create and make that the target

avatar image KillfireTV Jan 27 '18 at 08:27 PM

I know this, but how I must do it. Because all the widget targets I have month, it did not open me what I wanted :(

avatar image ThompsonN13 Jan 27 '18 at 08:58 PM

i dont understand what your trying to say could you clarify a bit

avatar image KillfireTV Jan 27 '18 at 10:44 PM

No, this is my Widget, how can I put it?alt text

1.png (35.5 kB)
avatar image ThompsonN13 Jan 27 '18 at 10:48 PM

go into your bp_actor and right click on the graph. search for create widget.

(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