Media player from a Webcam URL stops working on runtime

Hi all,
As you can see in the picture below, I have a Webcam live feeding into a media player → media texture → material assigned on a Plane in a level which is working fine.

Now as soon as I hit Play, the media texture goes black on runtime.
I think the reason is: In the editor, as in the picture below, it actually won’t show a Webcam captured video until I manually choose a correct stream option.

So I guess I have to do the same thing in the blueprint. After “Open Url” node, is there any blueprint node that I can use to select a stream playback option?
Please help~~
Thank you for reading :slight_smile:

Solved. My bad, it was easy and simple. All I needed was “Select Track” node to specify a track index number.

Hey man, I’m trying t do the setup

can you help me to see what’s wrong, I get the image for a millisecond then it goes black

Solve, I had to select the track and put some delays on the play and open URL for this to work

Hi, i have this problem too,but i could not solve it even following what you did,

I tell you what I did so maybe you understand where I went wrong … I created a Media Player object and like you it works only in editor if I select the correct stream option.

I created a material with and entered the mediaplayer information into a texture sample and linked to the emissive color.

then i opened the common blueprint layer and i opened 'url of the webcam and referencing a variable mediaplayer

everything works in the editor but in runtime it seems that it cannot modify the playback options of the media player. what am i doing wrong in your opinion? any help is welcome

@anonymous_user_28af98c8 Put a delay between the open url node and the select track node like in my example and see if it works

321010-capture.jpg

HAHA! Resolved! I put the delays as you did but it didn’t work, then I realized why! I realized it when I used some prints for if the media player was loaded correctly or not and this is precisely the point, going to frame it all depends on the power of the machine, and probably your pc is faster than mine so to solve any doubt or told to move to next operation only when finished :slight_smile: as in the example below …

thank you very much for your help :slight_smile: