# Way to Prevent Android Media Player from Automatically Pausing / Unpausing Streamed Media?

**URL:** <https://forums.unrealengine.com/t/way-to-prevent-android-media-player-from-automatically-pausing-unpausing-streamed-media/523507>\
**Category:** Mobile\
**Tags:** unreal-engine, Android, UE4-27, question\
**Created:** [April 10, 2022, 8:05pm UTC](https://forums.unrealengine.com/t/way-to-prevent-android-media-player-from-automatically-pausing-unpausing-streamed-media/523507 "2022-04-10T20:05:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![christian\_htx11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@christian\_htx11](https://forums.unrealengine.com/u/christian_htx11)\
**Post date:** [April 10, 2022, 8:05pm UTC](https://forums.unrealengine.com/t/way-to-prevent-android-media-player-from-automatically-pausing-unpausing-streamed-media/523507/1 "2022-04-10T20:05:14Z")

</div>

So on Android, when I play my UStreamMediaSource, the MediaPlayer will sometimes pause the video (I can see it in the logs setting the Rate to 0.0), and then after a while, it unpauses. How can I prevent this?

I suspect that these functions below maybe be useful, but no matter how I use them, the auto-pause and restart keeps happening. Am I missing something here?

```auto
void UMediaPlayer::SetBlockOnTimeRange( const TRange< FTimespan > & TimeRange)
void FMediaPlayerFacade::SetCacheWindow(FTimespan Ahead, FTimespan Behind)

```

Or maybe I should just try to use the new Electra Media Player? It seems as if that one is specially meant for UStreamMediaSources. But it seems a little more restrictive, and I worry it won’t solve the problem.

---

<div class="post-metadata">

**Author:** ![HISPlayerUnreal](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hisplayerunreal/32/712778_2.png) [@HISPlayerUnreal](https://forums.unrealengine.com/u/HISPlayerUnreal)\
**Post date:** [April 26, 2023, 10:23am UTC](https://forums.unrealengine.com/t/way-to-prevent-android-media-player-from-automatically-pausing-unpausing-streamed-media/523507/2 "2023-04-26T10:23:32Z")

</div>

Did you try it with [HISPlayer](https://forums.unrealengine.com/t/hisplayer-http-live-streaming-hls-and-dash-video-streaming-plugin-for-unreal-engine-games-and-metaverse/1135877) media player plugin? You can stream videos in HLS and DASH formarts.
