# Mediaplayer freezes after some time

**URL:** <https://forums.unrealengine.com/t/mediaplayer-freezes-after-some-time/470099>\
**Category:** Rendering\
**Tags:** freeze, unreal-engine, question\
**Created:** [August 21, 2020, 5:29am UTC](https://forums.unrealengine.com/t/mediaplayer-freezes-after-some-time/470099 "2020-08-21T05:29:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kabassmusic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kabassmusic](https://forums.unrealengine.com/u/Kabassmusic)\
**Post date:** [August 21, 2020, 5:29am UTC](https://forums.unrealengine.com/t/mediaplayer-freezes-after-some-time/470099/1 "2020-08-21T05:29:59Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![Kabassmusic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kabassmusic](https://forums.unrealengine.com/u/Kabassmusic)\
**Post date:** [August 23, 2020, 4:29am UTC](https://forums.unrealengine.com/t/mediaplayer-freezes-after-some-time/470099/2 "2020-08-23T04:29:02Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Kabassmusic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kabassmusic](https://forums.unrealengine.com/u/Kabassmusic)\
**Post date:** [August 23, 2020, 5:06am UTC](https://forums.unrealengine.com/t/mediaplayer-freezes-after-some-time/470099/3 "2020-08-23T05:06:35Z")

</div>

![311034-fix.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/7/e/57e1e300ff9d53f1c41c097844b6bff1e7700ae8.png)

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

---

<div class="post-metadata">

**Author:** ![Jesse\_Conti](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jesse\_Conti](https://forums.unrealengine.com/u/Jesse_Conti)\
**Post date:** [February 14, 2022, 9:41pm UTC](https://forums.unrealengine.com/t/mediaplayer-freezes-after-some-time/470099/4 "2022-02-14T21:41:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Kabassmusic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kabassmusic](https://forums.unrealengine.com/u/Kabassmusic)\
**Post date:** [February 16, 2022, 1:16am UTC](https://forums.unrealengine.com/t/mediaplayer-freezes-after-some-time/470099/5 "2022-02-16T01:16:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![arclee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@arclee](https://forums.unrealengine.com/u/arclee)\
**Post date:** [February 22, 2022, 2:20am UTC](https://forums.unrealengine.com/t/mediaplayer-freezes-after-some-time/470099/6 "2022-02-22T02:20:31Z")

</div>

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

> [@No audio from Media Player via Pixel Streaming](https://forums.unrealengine.com/t/no-audio-from-media-player-via-pixel-streaming/464735/5):
>
> Thanks for your reply. I actually solved my problem by installing VB-Audio on the instance. This adds a virtual audio device that is always running.The windows audio device seems to be just activated when I connect to the instance via RDP.

---

<div class="post-metadata">

**Author:** ![user\_d239ee372bfefc7f82cc3065a38a9fbede3a98b7207351393cd386](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@user\_d239ee372bfefc7f82cc3065a38a9fbede3a98b7207351393cd386](https://forums.unrealengine.com/u/user_d239ee372bfefc7f82cc3065a38a9fbede3a98b7207351393cd386)\
**Post date:** [October 24, 2023, 1:22pm UTC](https://forums.unrealengine.com/t/mediaplayer-freezes-after-some-time/470099/7 "2023-10-24T13:22:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![BatulDGr8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BatulDGr8](https://forums.unrealengine.com/u/BatulDGr8)\
**Post date:** [October 22, 2024, 2:16pm UTC](https://forums.unrealengine.com/t/mediaplayer-freezes-after-some-time/470099/8 "2024-10-22T14:16:40Z")

</div>

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