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