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)

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.

5 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.