Example #1
0
        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));
        }
Example #2
0
 public static void EnableAds(bool enable)
 {
     if (!VideoPlayer.Init())
     {
         return;
     }
     VideoPlayer.helper.EnableAds(enable);
 }
Example #3
0
 public unsafe static long $Invoke3(long instance, long *args)
 {
     return(GCHandledObjects.ObjectToGCHandle(VideoPlayer.Init()));
 }