public override void OnDeserialization() { Debug.Log("OnDeserialization"); if (!Networking.IsOwner(gameObject)) { if (_page != localPage) { localPage = _page; ChangeVideoPosition(localPage); } if (_syncedURL != null) { if (_syncedURL.ToString() != localURL) { Debug.Log("Local url: " + localURL); Debug.Log("Synced url: " + _syncedURL.ToString()); localURL = _syncedURL.ToString(); unityVideoPlayer.LoadURL(_syncedURL); } } } }
public void OnURLChanged() { VRCUrl url = inputField.GetUrl(); if (url != null) { Debug.Log("OnURLChanged url: " + url.ToString()); } if (!Networking.IsOwner(gameObject)) { Debug.Log("Take ownership"); Networking.SetOwner(Networking.LocalPlayer, gameObject); } _syncedURL = url; unityVideoPlayer.LoadURL(url); }