SetSeekCursor() публичный Метод

public SetSeekCursor ( float time ) : void
time float
Результат void
Пример #1
0
        //1フレーム毎に呼ばれる
        public void CsFrame(float time, float buffer, long bps, string vpos)
        {
            if (prevTime != (int)time)
            {
                double comp = sumBPS / 1024;

                //大きいから単位を変える
                if (comp > 1000)
                {
                    Owner.BPS = Math.Floor((comp / 1024) * 100) / 100 + "MiB/秒";
                }
                else
                {
                    Owner.BPS = Math.Floor(comp * 100) / 100 + "KiB/秒";
                }
                sumBPS = 0;
            }
            else
            {
                sumBPS += bps;
            }
            prevTime = (int)time;

            Owner.Time.BufferedTime = buffer;
            Owner.Comment.Vpos      = vpos;

            //Console.WriteLine(VideoData.ApiData.Cmsid + " time:" + time + " buffer:" + buffer + " vpos:" + vpos);

            Owner.SetSeekCursor(time);
        }