Mediaplayer freezes after some time

I have a mediaplayer with “Play on Open” and Looping enabled.
It is a media texture attached to a material that is on a Box Brush.
The media file is an mp4.

I have a MIDI control that changes the video file with an Open Source.
After some time (17 - 80 seconds), the video freezes until it is looped again or when another MIDI button is pressed.

I thought it was the garbage collection but I’m unsure which settings would work best. I have made the Number of Retries to 0 as well. Asset Clustering is Enabled too. (If disabled, the game will freeze if I hit a MIDI button multiple times really fast)

1 Like

My current solution is to use a BeginPlay with a Delay of 12 and a Reopen. Not really a fix since it restarts whatever media is playing, but it does help the video play again after freezing.

I also tried Binding OnMediaClosed but that doesnt seem to be what’s happening here.

Any other way to fix this to prevent the freeze in the first place?

311034-fix.png

So I guess all I had to do was to activate these settings.

7 Likes

Whats settings? I clicked on the link, but it wasnt there. Thanks!

I don’t remember what I did to fix this. I think this thread was from the AnswerHub and Epic migrated everything so any images are gone forever.

If you all setting are good and use pixelstreaming try this post.

hello, i met the similar problem with u. the path is as following, i pause the media player, the play it. after this two step, the media player freeze.
The problem is caused by cache. call the flush() function could fix.

■■■■ bro, this literally saved me. Thank you so much.

Actually I was creating a VR experience for a client and they wanted to play a video on TV screens inside an office building. The game was launching fine first time, but if I restarted it or even quit and started again in the same session, it will keep frozen on a single frame. This simple solution just worked.

Also, earlier, when I had only one level in the game, the video loaded and worked fine, but since I added another level, it stopped working the second time.

Thank you and all the best.

1 Like