MediaPlayerCtrl.Stop C# (CSharp) Method

Stop() public method

public Stop ( ) : void
return void
	public void Stop()
	{
		if(m_CurrentState == MEDIAPLAYER_STATE.PLAYING)
			Call_Pause();
		
		
		m_bStop = true;
		m_CurrentState = MEDIAPLAYER_STATE.STOPPED;
		m_iCurrentSeekPosition = 0;
	}
	

Usage Example

コード例 #1
0
    IEnumerator CheckInputVideo()
    {
        if (chapterVideo.m_strFileName == "putitback.mp4")
        {
            chapterVideo.Stop();
            chapterVideo.UnLoad();
            chapterVideo.Load("Chapter04b-HD.mp4");
            pauseUI.SetActive(false);
            yield return(new WaitForSeconds(1f));

            mainUI.SetActive(true);
            enableNextBtn();
            //chapterVideo.Play();
        }
        else
        {
            chapterVideo.OnEnd -= onChapterVideoEnded;
            chapterVideo.Stop();
            chapterVideo.UnLoad();

            Resources.UnloadUnusedAssets();
            System.GC.Collect();

            SceneManager.LoadScene("Adventure1_6");
        }
    }
All Usage Examples Of MediaPlayerCtrl::Stop
MediaPlayerCtrl