Esempio n. 1
0
    public void VideoPlay(string data)
    {
        string message = data;
        string url     = Util.VideoDicPath + data;

        if (!File.Exists(url))
        {
            return;
        }
        MediaPlayerMgr.OpenVideoFromFile(MediaPlayer.FileLocation.AbsolutePathOrURL, url, true);
    }
Esempio n. 2
0
    public void VideoPlay(VideoNode data)
    {
        string message = data.name;
        string url     = Util.VideoDicPath + data.name;

        if (!File.Exists(url))
        {
            return;
        }
        PicturePlayer.enabled = false;
        MediaPlayerMgr.OpenVideoFromFile(MediaPlayer.FileLocation.AbsolutePathOrURL, url, true);
        MediaPlayerMgr.Play();
    }
Esempio n. 3
0
    public void UpdateMessage(VideoNode data)
    {
        string message = data.name;
        string url     = Application.streamingAssetsPath + "/VideoData/" + data.name;

        if (!File.Exists(url))
        {
            return;
        }

        vPlayer._mediaPlayer  = MediaPlayerMgr;
        PicturePlayer.enabled = false;

        MediaPlayerMgr.OpenVideoFromFile(MediaPlayer.FileLocation.AbsolutePathOrURL, url, true);

        MediaPlayerMgr.Events.AddListener(FinishVideo);

        //vPlayer.url = url;
        //vPlayer.prepareCompleted += Prepared;
        //vPlayer.Prepare();
        //vPlayer.loopPointReached += EndPlayer;
    }