mirror of
https://github.com/Mukheem/TwinTurbine.git
synced 2025-04-20 18:10:32 +02:00
Video doesnot play after pause
This commit is contained in:
parent
40dd326849
commit
a87fd47e87
@ -96,7 +96,7 @@ public class API : MonoBehaviourPunCallbacks, IPunObservable
|
|||||||
}
|
}
|
||||||
photonView = PhotonView.Get(this);
|
photonView = PhotonView.Get(this);
|
||||||
photonView.RPC("RPC_VoltageUpdate", RpcTarget.All, webSocketControllerScript.voltageValue.ToString());
|
photonView.RPC("RPC_VoltageUpdate", RpcTarget.All, webSocketControllerScript.voltageValue.ToString());
|
||||||
videoPlayer.Play();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (audioControllerScript.audioSource.isActiveAndEnabled && !audioControllerScript.audioSource.isPlaying)
|
if (audioControllerScript.audioSource.isActiveAndEnabled && !audioControllerScript.audioSource.isPlaying)
|
||||||
@ -230,7 +230,7 @@ public void ExtractDataFromJson(string json)
|
|||||||
loc.SetText(location);
|
loc.SetText(location);
|
||||||
windSpeedValue.SetText(windSpeed);
|
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.
|
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]
|
[PunRPC]
|
||||||
public void RPC_VoltageUpdate(String voltageGenerated)
|
public void RPC_VoltageUpdate(String voltageGenerated)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user