Miam-Player  0.8.0
A nice music player
QtAV::PlayerSubtitle Class Reference

The PlayerSubtitle class Bind Subtitle to AVPlayer. More...

#include <PlayerSubtitle.h>

Inheritance diagram for QtAV::PlayerSubtitle:

Public Slots

void onEnabledChanged (bool value)
 

Signals

void autoLoadChanged (bool value)
 
void fileChanged ()
 

Public Member Functions

 PlayerSubtitle (QObject *parent=0)
 
void setPlayer (AVPlayer *player)
 
Subtitlesubtitle ()
 
void setFile (const QString &file)
 setFile Load user selected subtitle. More...
 
QString file () const
 
void setAutoLoad (bool value)
 autoLoad Auto find and load a suitable external subtitle if file() is not empty. More...
 
bool autoLoad () const
 

Detailed Description

The PlayerSubtitle class Bind Subtitle to AVPlayer.

Used by SubtitleFilter and QuickSubtitle. Subtitle load priority: user specified file (setFile(...)) > auto load external (autoLoad() must be true) > embedded subtitle

Constructor & Destructor Documentation

QtAV::PlayerSubtitle::PlayerSubtitle ( QObject *  parent = 0)

Member Function Documentation

bool QtAV::PlayerSubtitle::autoLoad ( ) const
void QtAV::PlayerSubtitle::autoLoadChanged ( bool  value)
signal
QString QtAV::PlayerSubtitle::file ( ) const
void QtAV::PlayerSubtitle::fileChanged ( )
signal
void QtAV::PlayerSubtitle::onEnabledChanged ( bool  value)
slot
void QtAV::PlayerSubtitle::setAutoLoad ( bool  value)

autoLoad Auto find and load a suitable external subtitle if file() is not empty.

void QtAV::PlayerSubtitle::setFile ( const QString &  file)

setFile Load user selected subtitle.

The subtitle will not change unless you manually setFile(QString()).

void QtAV::PlayerSubtitle::setPlayer ( AVPlayer player)
Subtitle* QtAV::PlayerSubtitle::subtitle ( )

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