ADTF Qt5
Loading...
Searching...
No Matches
adtf::javascript::scripting::cScriptPlayerClient Class Reference

#include <interface_clients.h>

Inherits QObject.

Public Member Functions

Q_INVOKABLE void open (const QString &strFileNames, bool bLoadReferencedFiles)
 
Q_INVOKABLE void close ()
 
Q_INVOKABLE void play ()
 
Q_INVOKABLE void pause ()
 
Q_INVOKABLE void reset ()
 
Q_INVOKABLE QVariantList getTimeRange ()
 
Q_INVOKABLE qint64 getCurrentTime ()
 
Q_INVOKABLE void seekToTime (qint64 tmTime)
 

Detailed Description

Interface client for adtf::services::ant::IPlayer.

Example Usage

var player = filter.createInterfaceClient("player_control", "player")
var input = filter.createInputPin("input")
var sampleCounter = 0
input.sample.connect(function(sample)
{
if (++sampleCounter % 10 == 0)
{
player.pause()
}
})

Member Function Documentation

◆ close()

Q_INVOKABLE void adtf::javascript::scripting::cScriptPlayerClient::close ( )
inline

Implements adtf::services::ant::IPlayer::Close

◆ getCurrentTime()

Q_INVOKABLE qint64 adtf::javascript::scripting::cScriptPlayerClient::getCurrentTime ( )
inline

Implements adtf::services::ant::IPlayer::GetCurrentTime

◆ getTimeRange()

Q_INVOKABLE QVariantList adtf::javascript::scripting::cScriptPlayerClient::getTimeRange ( )
inline
Returns
Returns the first and last timestamp of the currently opened files.

◆ open()

Q_INVOKABLE void adtf::javascript::scripting::cScriptPlayerClient::open ( const QString & strFileNames,
bool bLoadReferencedFiles )
inline

Implements adtf::services::ant::IPlayer::Open

◆ pause()

Q_INVOKABLE void adtf::javascript::scripting::cScriptPlayerClient::pause ( )
inline

Implements adtf::services::ant::IPlayer::Pause

◆ play()

Q_INVOKABLE void adtf::javascript::scripting::cScriptPlayerClient::play ( )
inline

Implements adtf::services::ant::IPlayer::Play

◆ reset()

Q_INVOKABLE void adtf::javascript::scripting::cScriptPlayerClient::reset ( )
inline

Implements adtf::services::ant::IPlayer::Reset

◆ seekToTime()

Q_INVOKABLE void adtf::javascript::scripting::cScriptPlayerClient::seekToTime ( qint64 tmTime)
inline

Implements adtf::services::ant::IPlayer::SeekToTime


The documentation for this class was generated from the following file: