示例#1
0
    void UpdateVideoInfo()
    {
        progressSlider.maxValue = (int)mVideoPlayer.GetLength();
        progressSlider.value    = (int)mVideoPlayer.GetCurrentPosition();
        progressText.text       = "进度:" + progressSlider.value + " / " + progressSlider.maxValue;
        string msg = "缓冲百分比 ==> " + mVideoPlayer.GetCurrentBufferingPercentage();

        pushMsg(msg);
    }