When playing the video again, it freezes, here is an example:
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
When playing the video again, it freezes, here is an example:
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
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();
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); } }