- Video load indicators properly show their idle state, since...

- Video player no longer plays/stops video if video is already playing/stopped.
- Fixed default admin panel being incorrectly set to the camera panel.
This commit is contained in:
2025-09-15 19:07:15 -04:00
parent 7f93ebe6b2
commit 89f61312f0
2 changed files with 31 additions and 21 deletions
@@ -224,6 +224,8 @@ public class CaseVideoSyncPlayer : UdonSharpBehaviour
_VideoPlayer.Stop();
_UseFallback = false;
VideoIndex = -1;
SetVideoLoadStatus(IndicationStatus.Idle);
}
public override void OnVideoReady()
@@ -281,6 +283,17 @@ public class CaseVideoSyncPlayer : UdonSharpBehaviour
TryLoadURL();
}
private void SetPlaybackStatus(bool Value)
{
if (_VideoIsPlaying != Value)
{
_VideoIsPlaying = Value;
if (_VideoIsPlaying) _PlayVideo_Private();
else _StopVideo_Private();
RequestSerialization();
}
}
public override void OnVideoStart()
{
if (_VideoIsPlaying)
@@ -437,10 +450,7 @@ public class CaseVideoSyncPlayer : UdonSharpBehaviour
{
set
{
_VideoIsPlaying = value;
if (_VideoIsPlaying) _PlayVideo_Private();
else _StopVideo_Private();
RequestSerialization();
SetPlaybackStatus(value);
}
get => _VideoIsPlaying;
}