Media Player fast forwards video on lag/minimizing

I use looping video widget as a background in Main Menu. The issue is that when I minimize the game and then maximize it, the video fast forwards until it reaches the time where it would be without the lag/minimizing/etc.

How can I solve this issue? So that the video always plays with constant speed without trying to catch up for the lost time when the game was minimized.

On which platform are facing this issue?HISPlayer media player plugin supports HLS and DASH streaming formarts. You can try a demo.

When the app is minimized, it’s necessary to cache the media playback time and adjust the media accordingly when it’s maximized like this.

OnAppEnterBackground and OnAppEnterForeground are custom event and called when

	FCoreDelegates::ApplicationHasEnteredForegroundDelegate.AddWeakLambda(this, [this]()
	{
		OnAppEnterForeground();
	});
	FCoreDelegates::ApplicationWillEnterBackgroundDelegate.AddWeakLambda(this, [this]()
	{
		OnAppEnterBackground();
	});

I hope this example is helpful to you.