From a87fd47e87ada0729052c1845751efe4cc0d24e7 Mon Sep 17 00:00:00 2001 From: Abdul Mukheem Shaik <mukheemuddin@gmail.com> Date: Tue, 28 May 2024 23:54:18 +0200 Subject: [PATCH] Video doesnot play after pause --- Assets/SharedSpatialAnchors/Scripts/API.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/SharedSpatialAnchors/Scripts/API.cs b/Assets/SharedSpatialAnchors/Scripts/API.cs index 3e0de29..a90d2ef 100644 --- a/Assets/SharedSpatialAnchors/Scripts/API.cs +++ b/Assets/SharedSpatialAnchors/Scripts/API.cs @@ -96,7 +96,7 @@ public class API : MonoBehaviourPunCallbacks, IPunObservable } photonView = PhotonView.Get(this); photonView.RPC("RPC_VoltageUpdate", RpcTarget.All, webSocketControllerScript.voltageValue.ToString()); - videoPlayer.Play(); + } if (audioControllerScript.audioSource.isActiveAndEnabled && !audioControllerScript.audioSource.isPlaying) @@ -230,7 +230,7 @@ public void ExtractDataFromJson(string json) loc.SetText(location); windSpeedValue.SetText(windSpeed); turn_WT_on_Y_Axis = turn_WT_on_Y_Axis_val; // flag set to true so that WT can rotate on it's Y axis. - + videoPlayer.Play(); } [PunRPC] public void RPC_VoltageUpdate(String voltageGenerated)