Browse Source

过滤虚拟内容功能导致 video 播放状态不正常

DGJ 1 year ago
parent
commit
c7a9a46f90
1 changed files with 6 additions and 1 deletions
  1. 6 1
      Assets/Remote/ShowRoom/RemoteVideoControl.cs

+ 6 - 1
Assets/Remote/ShowRoom/RemoteVideoControl.cs

@@ -42,12 +42,17 @@ public class RemoteVideoControl : MonoBehaviour
         }
     }
 
+    private void OnEnable()
+    {
+        StartCoroutine(VideoTimer());
+    }
+
     private void Start()
     {
         IsStart = true;
         slider.onValueChanged.AddListener(delegate { ChangeVideo(slider.value); });
 
-        StartCoroutine(VideoTimer());
+       
     }
 
     public void ChangeVideo(float value)