Пример #1
0
 public PSVitaMovie Play(string moviePath)
 {
     //IL_002e: Unknown result type (might be due to invalid IL or missing references)
     //IL_0034: Invalid comparison between Unknown and I4
     _isPlaying          = false;
     _isBufferingSuccess = false;
     _isPause            = false;
     this.moviePath      = moviePath;
     if (renderTexture == null && (int)_iMode == 1)
     {
         renderTexture = new RenderTexture(1024, 1024, 0, RenderTextureFormat.ARGB32);
     }
     PSVitaVideoPlayer.Init(renderTexture);
     Observable.FromCoroutine((UniRx.IObserver <bool> observer) => PlayMovie(observer)).Subscribe(delegate(bool observer)
     {
         if (observer)
         {
             OnEvent(3);
         }
         else
         {
             OnEvent(32);
         }
     });
     return(this);
 }
    private void OnMovieEvent(int eventID)
    {
        switch (eventID)
        {
        case 1:
            this.isPlaying    = false;
            this.subtitleText = string.Empty;
            return;

        case 2:
IL_18:
            if (eventID != 16)
            {
                return;
            }
            this.subtitleText      = PSVitaVideoPlayer.get_subtitleText();
            this.subtitleTimeStamp = PSVitaVideoPlayer.get_subtitleTimeStamp();
            return;

        case 3:
            this.isPlaying = true;
            return;
        }
        goto IL_18;
    }
 private void OnPreRender()
 {
     if (this.mIsCallPlay)
     {
         PSVitaVideoPlayer.Update();
     }
 }
 public void Stop()
 {
     if (this.mIsPlaying)
     {
         this.mRenderTexture_MovieClipRendrer.Release();
         PSVitaVideoPlayer.Init(null);
         this.mIsPlaying = false;
     }
 }
Пример #5
0
 public void Stop()
 {
     if (mIsPlaying)
     {
         mRenderTexture_MovieClipRendrer.Release();
         PSVitaVideoPlayer.Init((RenderTexture)null);
         mIsPlaying = false;
     }
 }
 private void Start()
 {
     PSVitaVideoPlayer.Init(this.renderTexture);
     PSVitaVideoPlayer.PlayParams playParams = default(PSVitaVideoPlayer.PlayParams);
     playParams.volume           = this.volume;
     playParams.loopSetting      = 1;
     playParams.modeSetting      = 0;
     playParams.audioStreamIndex = this.audioStreamIndex;
     playParams.textStreamIndex  = this.textStreamIndex;
     PSVitaVideoPlayer.PlayEx(this.MoviePath, playParams);
 }
        public void Play()
        {
            TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(DOVirtual.Float(this.mWidgetThis.alpha, 1f, 0.5f, delegate(float alpha)
            {
                this.mWidgetThis.alpha = alpha;
            }), 0.3f), this);
            this.PlaySlotParamUpProduction();
            string text = UIDeckPracticeProductionMovieClip.FindPracticeMovieClipPath(this.mDeckPracticeResultModel.PracticeType);

            PSVitaVideoPlayer.Init(this.mRenderTexture_MovieClipRendrer);
            PSVitaVideoPlayer.Play(text, 1, 1);
            this.mIsCallPlay = true;
        }
Пример #8
0
        public void Play()
        {
            DOVirtual.Float(mWidgetThis.alpha, 1f, 0.5f, delegate(float alpha)
            {
                mWidgetThis.alpha = alpha;
            }).SetDelay(0.3f).SetId(this);
            PlaySlotParamUpProduction();
            string text = FindPracticeMovieClipPath(mDeckPracticeResultModel.PracticeType);

            PSVitaVideoPlayer.Init(mRenderTexture_MovieClipRendrer);
            PSVitaVideoPlayer.Play(text, PSVitaVideoPlayer.Looping.Continuous, PSVitaVideoPlayer.Mode.FullscreenVideo);
            mIsCallPlay = true;
        }
 private void OnPostRender()
 {
     PSVitaVideoPlayer.Update();
     if (this.isPlaying)
     {
         if (!this._isBufferingSuccess && this.currentTime != 0L)
         {
             this.OnEvent(5);
         }
         else if (this._isBufferingSuccess && this.currentTime == 0L && this.movieDuration == 0L && this._iLooping != 1)
         {
             this.AutoOnFinished();
         }
     }
 }
Пример #10
0
    private void Start()
    {
        //IL_000d: Unknown result type (might be due to invalid IL or missing references)
        //IL_0023: Unknown result type (might be due to invalid IL or missing references)
        //IL_002b: Unknown result type (might be due to invalid IL or missing references)
        //IL_0050: Unknown result type (might be due to invalid IL or missing references)
        PSVitaVideoPlayer.Init(renderTexture);
        var val = default(PSVitaVideoPlayer.PlayParams);

        val.volume           = volume;
        val.loopSetting      = PSVitaVideoPlayer.Looping.Continuous;
        val.modeSetting      = PSVitaVideoPlayer.Mode.FullscreenVideo;
        val.audioStreamIndex = audioStreamIndex;
        val.textStreamIndex  = textStreamIndex;
        PSVitaVideoPlayer.PlayEx(MoviePath, val);
    }
Пример #11
0
 private void OnPostRender()
 {
     //IL_0054: Unknown result type (might be due to invalid IL or missing references)
     //IL_005a: Invalid comparison between Unknown and I4
     PSVitaVideoPlayer.Update();
     if (isPlaying)
     {
         if (!_isBufferingSuccess && currentTime != 0L)
         {
             OnEvent(5);
         }
         else if (_isBufferingSuccess && currentTime == 0L && movieDuration == 0L && (int)_iLooping != 1)
         {
             AutoOnFinished();
         }
     }
 }
 private void OnGUI()
 {
     GUI.skin = skin;
     GUILayout.BeginArea(new Rect(10f, 10f, 200f, Screen.height));
     if (GUILayout.Button("Stop/Play", new GUILayoutOption[0]))
     {
         if (isPlaying)
         {
             PSVitaVideoPlayer.Stop();
         }
         else
         {
             PSVitaVideoPlayer.Play(MoviePath, PSVitaVideoPlayer.Looping.Continuous, PSVitaVideoPlayer.Mode.FullscreenVideo);
         }
     }
     GUILayout.EndArea();
 }
 private void OnGUI()
 {
     GUI.set_skin(this.skin);
     GUILayout.BeginArea(new Rect(10f, 10f, 200f, (float)Screen.get_height()));
     if (GUILayout.Button("Stop/Play", new GUILayoutOption[0]))
     {
         if (this.isPlaying)
         {
             PSVitaVideoPlayer.Stop();
         }
         else
         {
             PSVitaVideoPlayer.Play(this.MoviePath, 1, 1);
         }
     }
     GUILayout.EndArea();
 }
Пример #14
0
        #pragma warning restore 0414

        void Start()
        {
            DontDestroyOnLoad(gameObject);
            Application.targetFrameRate = 60;

            PSVitaVideoPlayer.TransferMemToMonoHeap();

            #if !UNITY_EDITOR
            Main.OnNPInitialized += OnInitializedNP;
            Main.Initialize(Main.kNpToolkitCreate_DoNotInitializeTrophies | Main.kNpToolkitCreate_NoRanking);
            Main.RegisterCommsID(NpServiceType.Trophy, npCommunicationID, npCommunicationPassphrase, npCommunicationSignature);

            StartSaveLoad();
            StartTrophy();
            StartDialog();
            #endif
        }
Пример #15
0
    public PSVitaMovie PlayEx(string moviePath)
    {
        //IL_0019: Unknown result type (might be due to invalid IL or missing references)
        this.moviePath = moviePath;
        PSVitaVideoPlayer.Init(renderTexture);

        throw new NotImplementedException("なにこれ");
        // if (PSVitaVideoPlayer.PlayEx(this.moviePath, _strPlayParams))
        if (true)
        {
            OnEvent(3);
        }
        else
        {
            OnEvent(32);
        }
        return(this);
    }
 public PSVitaMovie Play(string moviePath)
 {
     this._isPlaying          = false;
     this._isBufferingSuccess = false;
     this._isPause            = false;
     this.moviePath           = moviePath;
     if (this.renderTexture == null && this._iMode == 1)
     {
         this.renderTexture = new RenderTexture(1024, 1024, 0, 0);
     }
     PSVitaVideoPlayer.Init(this.renderTexture);
     Observable.FromCoroutine <bool>((IObserver <bool> observer) => this.PlayMovie(observer)).Subscribe(delegate(bool observer)
     {
         if (observer)
         {
             this.OnEvent(3);
         }
         else
         {
             this.OnEvent(32);
         }
     });
     return(this);
 }
Пример #17
0
 public bool Resume()
 {
     isPause = false;
     return(PSVitaVideoPlayer.Resume());
 }
 private void OnPreRender()
 {
     PSVitaVideoPlayer.Update();
 }
 private void Start()
 {
     PSVitaVideoPlayer.Init(renderTexture);
     PSVitaVideoPlayer.Play(MoviePath, PSVitaVideoPlayer.Looping.Continuous, PSVitaVideoPlayer.Mode.FullscreenVideo);
 }
 private void Start()
 {
     PSVitaVideoPlayer.Init(this.renderTexture);
     PSVitaVideoPlayer.Play(this.MoviePath, 1, 1);
 }
Пример #21
0
    //private void OnEvent(MovieEvent iEventID)
    private void OnEvent(int iEventID)
    {
        //IL_0000: Unknown result type (might be due to invalid IL or missing references)
        //IL_0001: Unknown result type (might be due to invalid IL or missing references)
        //IL_0002: Unknown result type (might be due to invalid IL or missing references)
        //IL_0004: Unknown result type (might be due to invalid IL or missing references)
        //IL_001e: Expected I4, but got Unknown
        //IL_001e: Unknown result type (might be due to invalid IL or missing references)
        //IL_0021: Invalid comparison between Unknown and I4
        //IL_0026: Unknown result type (might be due to invalid IL or missing references)
        //IL_0029: Invalid comparison between Unknown and I4
        //IL_002e: Unknown result type (might be due to invalid IL or missing references)
        //IL_0031: Invalid comparison between Unknown and I4
        switch (iEventID - 1)
        {
        case 0:
            PSVitaVideoPlayer.Stop();
            _isPlaying = false;
            if (_actOnStop != null)
            {
                _actOnStop();
            }
            _strSubTitleText = string.Empty;
            return;

        case 1:
            if (_actOnReady != null)
            {
                _actOnReady();
            }
            return;

        case 2:
            _isPlaying = true;
            if (_actOnPlay != null)
            {
                _actOnPlay();
            }
            return;

        case 3:
            if (_actOnPause != null)
            {
                _actOnPause();
            }
            return;

        case 4:
            _isBufferingSuccess = true;
            if (_actOnBuffering != null)
            {
                _actOnBuffering();
            }
            return;
        }
        if ((int)iEventID != 16)
        {
            if ((int)iEventID != 32)
            {
                if ((int)iEventID == 48 && _actOnEncryption != null)
                {
                    _actOnEncryption();
                }
                return;
            }
            if (_actOnWarningID != null)
            {
                _actOnWarningID();
            }
            ImmediateOnFinished();
        }
        else
        {
            _strSubTitleText = PSVitaVideoPlayer.subtitleText;
            if (_actOnTimedTextDelivery != null)
            {
                _actOnTimedTextDelivery();
            }
        }
    }
Пример #22
0
 public bool JumpToTime(ulong jumpTimeMsec)
 {
     return(PSVitaVideoPlayer.JumpToTime(jumpTimeMsec));
 }
Пример #23
0
 public void ImmediateOnFinished()
 {
     PSVitaVideoPlayer.Stop();
     AutoOnFinished();
 }
Пример #24
0
 public bool Pause()
 {
     OnEvent(4);
     isPause = true;
     return(PSVitaVideoPlayer.Pause());
 }