DayZ 1.29
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ Play() [2/2]

int Widget::Play ( VideoCommand cmd)
inlineprivate

Legacy, preferably not used, left for backwards compat.

См. определение в файле EnWidgets.c строка 593

594 {
595 // Yes, some things here do not do what the name implies
596 // And it returns 0 whether successful or not
597 // But this is what the old functionality looked like
598 // So for true backwards compat, it will be left like this
599 switch (cmd)
600 {
601 case VideoCommand.PLAY:
602 Play();
603 break;
604 case VideoCommand.STOP:
605 Pause();
606 break;
607 case VideoCommand.REWIND:
608 SetTime(0, true);
609 break;
610 case VideoCommand.POSITION:
611 return GetTime();
612 case VideoCommand.REPEAT:
613 SetLooping(true);
614 break;
615 case VideoCommand.ISPLAYING:
616 return IsPlaying();
617 case VideoCommand.KILL:
618 Unload();
619 break;
620 default:
621 return 0;
622 }
623
624 return 0;
625 }
VideoCommand
Legacy, do not use.
Определения EnWidgets.c:506
proto native bool IsPlaying()
QoL direct method to check for playing state (buffering while playing will still return true)
proto native int GetTime()
Get the current time of the video.
proto native bool Play()
proto native bool Pause()
proto native void SetLooping(bool looping)
Set whether the video should loop.
proto native bool SetTime(int time, bool preload)
proto native void Unload()
Unload the video, freeing up all resources.

Перекрестные ссылки GetTime(), IsPlaying(), Pause(), Play(), SetLooping(), SetTime() и Unload().