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