Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
fixed an issue where URL's sent directly to the videoplayer don't respect the MasterOnly toggle
  • Loading branch information
ChildoftheBeast authored Dec 21, 2020
1 parent f3e5942 commit 4356ffa
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions UdonSyncVideoPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,18 @@ public void RetrySyncedVideo()
}



public void TakeOwner()
{
if (Networking.IsMaster)
{
DoTakeOwner();
}
else if (MasterOnlyScript.syncedMasterOnly == false)
{
DoTakeOwner();
}
}
private void DoTakeOwner()
{
//Debug.Log("[UdonSyncVideoPlayer] TakeOWner Called!");
if (!Networking.IsOwner(gameObject))
Expand Down Expand Up @@ -604,4 +614,4 @@ public void PauseVideo()
}
}
}
}
}

0 comments on commit 4356ffa

Please sign in to comment.