Page MenuHomeFeedback Tracker

SetLooping slows down VideoWidget
Assigned, UrgentPublic

Description

When playing the video again, it freezes, here is an example:

https://youtu.be/KFMZ5mX-z4Q

The source of my video is perfect, no interruption, at the end of the video it returns to its original position as it was at the beginning.

Please fix all issues related to this widget

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10
Category
General
Steps To Reproduce
layoutRoot 					= GetGame().GetWorkspace().CreateWidgets("MDP/scriptsMidnight/gui/new_video/dialog_queue_position.layout");
m_VideoWidget_bg			= VideoWidget.Cast(layoutRoot.FindAnyWidget("Video_bg"));
m_VideoWidget_bg.Load("Your_Path/file.mp4", true);
m_VideoWidget_bg.Play();

Or

layoutRoot 					= GetGame().GetWorkspace().CreateWidgets("MDP/scriptsMidnight/gui/new_video/dialog_queue_position.layout");
m_VideoWidget_bg			= VideoWidget.Cast(layoutRoot.FindAnyWidget("Video_bg"));
m_VideoWidget_bg.Load("Your_Path/file.mp4", false);
m_VideoWidget_bg.SetLooping(true);
m_VideoWidget_bg.Play();
Additional Information

I tried to rewind time before it ended, but there were also some freezes, an example of what I did:

override void Update(float timeslice)
	{
		super.Update(timeslice);
		
		if(m_VideoWidget_bg && m_VideoWidget_bg.IsPlaying())
		{
			m_TotalTime = m_VideoWidget_bg.GetTotalTime();
			m_temp_time = m_TotalTime - 500;
			m_current_time = m_VideoWidget_bg.GetTime();
			if(m_current_time <= m_temp_time) return;
			else m_VideoWidget_bg.SetTime(0, true);
			
		}
	}

Event Timeline

DrZiLLo created this task.May 8 2024, 9:59 PM
Geez changed the task status from New to Assigned.May 9 2024, 10:13 AM