Media Player not saving Media Texture after closing window

Hello,

I’ve looked all over and I can’t find anyone who has had the same issue with media files. I technically have a few issues, all related to the same thing, but the main issue is in bold below (Problem 1 c after the picture).

Problem 1.a. When I import video files into the Content > Movies folder, they appear as a File Media Source as expected, as long as I click and drag them directly into UE4. If I try to bring them in via File Explorer, they do not appear in UE4, however, other files, like JPGs will.

Problem 1.b When I click on the File Media Source, I am not able to see the video, but I can see that the File Media Source is linking to the file name. Not sure if this is an issue, but after watching countless tutorials, and looking into the UE4 docs, it seems like I should see the video play here. I have added a pic below to show what I mean.

Problem 1 c (The main problem): After bringing in the File Media Source, I create a Media Player, which I open. I then double click the media file in the section below the video, wait a few seconds, and then can see the video showing in the Output section next to Video Texture. That media texture will also show the video, and I can add it to a material and watch the Video display on any 3D mesh.

But, if I close out of the Media Player window, even after saving everything, the Media Texture goes black, and the Material goes black as well.

What I’ve tried:

  • AVI, MP4, MOV, WMV files. The results are always the same, no matter what file type, codec, etc.
  • Both PC and Mac computers

[Here][2] is a link to a video I uploaded showing the problem: - YouTube.

Any advice would be greatly appreciated.

Thanks in advance.

I use UE4.15 and have same problem. On close window - material cleared.

I figured out the issue, at least for my problem.The Media Textures only display when the media player is open, BUT that is intended, because you have to add a simple blueprint.

What you need to do is this:

  1. After opening the Media Player and verifying that the Media texture is showing the video (while the media player is open), save the media texture
  2. Once done, create a blueprint following this guide from Unreal Play a Video File | Unreal Engine Documentation . [Skip to the blueprint section].

As it turns out, the Media texture will only play when the Media Player is open, but the blueprint accesses the Media player and plays the video when you preview the game.

How to edit a material with a media texture (since the blueprint works on play:

  1. Open the material with the media texture (or add it if you haven’t)
  2. Open the Media Player (and select the correct video, and hit play). Also, check loop, so the video will keep looping.

You can now edit your material, as long as the Media Player window is open.

I using another way. See link How to display a VIDEO in UNREAL ENGINE 4 (Updated) - YouTube

Really Helpful! Thanks…

Thanks for sharing!

OMG…I have spent 3 days trying to figure what is happening. THANK YOU for posting a solution.