public static void Play(string videoGuid, string action) { if (!VideoPlayer.Init()) { return; } if (VideoPlayer.helper == null) { return; } if (!GameConstants.IsMakerVideoEnabled()) { return; } if (VideoPlayerKeepAlive.Instance.IsDisplayed()) { return; } VideoPlayer.action = action; VideoPlayer.videoId = videoGuid; VideoPlayerKeepAlive.Instance.Begin(videoGuid); EventManager eventManager = Service.Get <EventManager>(); eventManager.SendEvent(EventId.UIVideosViewBegin, null); Service.Get <VideoDataManager>().GetAllEnvironmentVideos(new VideoDataManager.DataListQueryCompleteDelegate(VideoPlayer.OnEnvironmentVideos)); }
public static void EnableAds(bool enable) { if (!VideoPlayer.Init()) { return; } VideoPlayer.helper.EnableAds(enable); }
public unsafe static long $Invoke3(long instance, long *args) { return(GCHandledObjects.ObjectToGCHandle(VideoPlayer.Init())); }