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