FGX.VideoControl.TfgCustomVideoControl: различия между версиями

Материал из FGX Native Докуметации
Перейти к навигации Перейти к поиску
(summary)
(summary)
(Метка: замена)
Строка 1: Строка 1:
 
* [[ FGX.VideoControl | Вверх к родителю: FGX.VideoControl ]]
 
* [[ FGX.VideoControl | Вверх к родителю: FGX.VideoControl ]]
* [[ FGX.VideoControl.TfgCustomVideoControl_Methods | Методы ]]
 
* [[ FGX.VideoControl.TfgCustomVideoControl_Properties | Свойства ]]
 
  
 
Delphi
 
Delphi
  
<syntaxhighlight lang="Delphi">TfgCustomVideoControl = class (TfgControl, IFGXTapSupported, IFGXNotificationObserver, IFGXNotificationObservable)</syntaxhighlight>
+
<code lang="Delphi">TfgCustomVideoControl = class (TfgControl, IFGXTapSupported, IFGXNotificationObserver, IFGXNotificationObservable)</code>
 
 
== Конструкторы ==
 
 
 
{| class="wikitable sortable"
 
|-
 
| <code>constructor</code> || <code>Create(AOwner: TComponent)</code>
 
 
 
|}
 
 
 
== Методы ==
 
 
 
{| class="wikitable sortable"
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <syntaxhighlight lang="Delphi">Start()</syntaxhighlight>
 
Начинает воспроизведение с начала.
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <syntaxhighlight lang="Delphi">Stop()</syntaxhighlight>
 
Останавливает воспроизведение и переводит текущую временную позицию '' CurrentPosition '' в видео на начало.
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <syntaxhighlight lang="Delphi">Pause()</syntaxhighlight>
 
Приостанавливает воспроизведение. Временная позиция '' CurrentPosition '' не меняется.
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <syntaxhighlight lang="Delphi">Resume()</syntaxhighlight>
 
Продолжает воспроизведение фильма с текущей временной позиции '' CurrentPosition '' .
 
|-
 
| <syntaxhighlight lang="Delphi">procedure</syntaxhighlight> || <syntaxhighlight lang="Delphi">SeekTo(const AMSec: Integer)</syntaxhighlight>
 
Перемещает текущую временную позицию '' CurrentPosition '' в позицию '' AMsec '' .
 
|-
 
| <syntaxhighlight lang="Delphi">function</syntaxhighlight> || <syntaxhighlight lang="Delphi">IsPlaying()</syntaxhighlight>
 
Воспроизводится ли видео сейчас или нет?
 
|}
 
 
 
== Свойства ==
 
 
 
{| class="wikitable sortable"
 
|-
 
| <code>property</code> || <code>Duration: Integer</code>
 
Общая длительность видео в мсек.
 
|-
 
| <code>property</code> || <code>CurrentPosition: Integer</code>
 
Текущая позиция воспроизведения видео в мсек.
 
|-
 
| <code>property</code> || <code>Options: TfgVideoControlOptions</code>
 
Настройки проигрывателя.
 
|-
 
| <code>property</code> || <code>VideoUri: string</code>
 
URL на видео или полное имя локального видео файла.
 
|}
 
 
 
== События ==
 
 
 
{| class="wikitable sortable"
 
|-
 
| <code>event</code> || <code>OnError: TfgVideoControlErrorEvent</code>
 
Уведомляет, что в процессе загрузки/воспроизведения видео возникла ошибка.
 
|-
 
| <code>event</code> || <code>OnPrepared: TNotifyEvent</code>
 
Уведомляет о том, что видео готово к воспроизведению и сейчас будет запущено.
 
|-
 
| <code>event</code> || <code>OnCompletion: TNotifyEvent</code>
 
Уведомляет о том, что воспроизведение видео закончилось.
 
|}
 

Версия 04:12, 10 июня 2019

Delphi

TfgCustomVideoControl = class (TfgControl, IFGXTapSupported, IFGXNotificationObserver, IFGXNotificationObservable)