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 get "Media Sound Component " while inside Widget?

Media sound component can be found if the said media player variable was in the "Level blueprint" however, Im trying to get Audio to play inside of a widget blueprint. In the Widget system I cant get the audio component to let the media play both Video/Sound.

Any workaround for this? It's very urgent as it's college project related. Would highly appreciate the help!

Product Version: UE 4.18
more ▼

asked Jan 07 '18 at 10:26 AM in Using UE4

avatar image

10 3 2 7

avatar image Nizoo Jan 07 '18 at 10:29 AM

alt text

alt text

doesntwork.jpg (192.1 kB)
works.jpg (125.8 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hello, I went through this issue in the last couple projects I worked on and basically the Media Source Component is a "Component" so there are a few solutions as for it to work we only need to initialize it and link it to the MediaPlayer.

1- You can add it either to your Player Controller or Player BP (Character or Pawn) as a Component (like you would a Static mesh, etc) and select your MediaPlayer in the Component's default values.

2- The first solution is better but another way is to use the AddMediaComponent function, and you can call it anywhere that is before you play your video, somewhere where it'll only be called once though, you don't want multiple components. You call the function, you set the MediaPlayer and you're good to go.

The first solution is the most optimal in the end, I think. Have a nice day mate, I hope this was helpful to you!

more ▼

answered Jan 07 '18 at 11:31 AM

avatar image

106 1 4 8

avatar image Nizoo Jan 07 '18 at 11:48 AM

Hello, I just did exactly the same solution you provided prior to your answer by a few mins hahaha! It was a fluke, I added the sound component to a static mesh box and I worked it out!

Thanks a lot for your input though, I hope people with similar issues find these answers useful! bro fist

avatar image Elea Mar 29 '18 at 04:06 AM

and how make it Unpauseable?

(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