- 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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user