Skip to content

Commit

Permalink
Add support for the VideoError parameter in OnVideoError
Browse files Browse the repository at this point in the history
  • Loading branch information
MerlinVR committed Sep 25, 2020
1 parent e24e339 commit a9b55f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Assets/UdonSharp/Editor/UdonSharpResolverContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ public bool ReplaceInternalEventName(ref string eventName)
{ "_onPlayerCollisionExit", new System.Tuple<System.Type, string>[] { new System.Tuple<System.Type, string>(typeof(VRC.SDKBase.VRCPlayerApi), "onPlayerCollisionExitPlayer") } },
{ "_onPlayerCollisionStay", new System.Tuple<System.Type, string>[] { new System.Tuple<System.Type, string>(typeof(VRC.SDKBase.VRCPlayerApi), "onPlayerCollisionStayPlayer") } },
{ "_onPlayerParticleCollision", new System.Tuple<System.Type, string>[] { new System.Tuple<System.Type, string>(typeof(VRC.SDKBase.VRCPlayerApi), "onPlayerParticleCollisionPlayer") } },
{ "_onVideoError", new System.Tuple<System.Type, string>[] { new System.Tuple<System.Type, string>(typeof(VRC.SDK3.Components.Video.VideoError), "onVideoErrorVideoError") } },
#endif
};

Expand Down
2 changes: 1 addition & 1 deletion Assets/UdonSharp/Scripts/UdonSharpBehaviour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public virtual void OnSpawn() { }
public virtual void OnStationEntered(VRC.SDKBase.VRCPlayerApi player) { }
public virtual void OnStationExited(VRC.SDKBase.VRCPlayerApi player) { }
public virtual void OnVideoEnd() { }
public virtual void OnVideoError() { }
public virtual void OnVideoError(VRC.SDK3.Components.Video.VideoError videoError) { }
public virtual void OnVideoLoop() { }
public virtual void OnVideoPause() { }
public virtual void OnVideoPlay() { }
Expand Down

0 comments on commit a9b55f4

Please sign in to comment.