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

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

Версия 18:23, 29 июня 2019

Delphi

TfgCustomVideoControl = class (TfgControl)

TComponent -> TfgControl -> TfgCustomVideoControl

Прямые наследники: TfgVideoControl