Ginga  0.13.6
 All Classes Namespaces Functions Variables
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
br::pucrio::telemidia::ginga::core::player::SrtPlayer Class Reference
Inheritance diagram for br::pucrio::telemidia::ginga::core::player::SrtPlayer:
Inheritance graph
[legend]
Collaboration diagram for br::pucrio::telemidia::ginga::core::player::SrtPlayer:
Collaboration graph
[legend]

Public Member Functions

 SrtPlayer (GingaScreenID screenId, string mrl)
 
void loadFile (string url)
 
void setParentVisibilityControl (bool control)
 
void setReferenceTimePlayer (IPlayer *player)
 
double getMediaTotalTime ()
 
double getMediaTime ()
 
bool play ()
 
void stop ()
 
void pause ()
 
void resume ()
 
virtual void setPropertyValue (string name, string value)
 
void busy ()
 
bool isPlayingSrt ()
 
- Public Member Functions inherited from br::pucrio::telemidia::ginga::core::player::TextPlayer
 TextPlayer (GingaScreenID screenId)
 
virtual void abort ()
 
bool setFont (string someUri)
 
void setFontSize (int size)
 
int getFontSize ()
 
int getFontHeight ()
 
void setBgColor (int red, int green, int blue, int alpha=255)
 
void setColor (int red, int green, int blue, int alpha=255)
 
void setTabSize (int size)
 
int getTabSize ()
 
void drawText (string text, short align)
 
bool drawTextLn (string text, short align)
 
void tab ()
 
bool breakLine ()
 
int getCurrentColumn ()
 
int getCurrentLine ()
 
- Public Member Functions inherited from br::pucrio::telemidia::ginga::core::player::Player
 Player (GingaScreenID screenId, string mrl)
 
virtual void flip ()
 
virtual void setMrl (string mrl, bool visible=true)
 
virtual void reset ()
 
virtual void rebase ()
 
virtual void setNotifyContentUpdate (bool notify)
 
virtual void addListener (IPlayerListener *listener)
 
void removeListener (IPlayerListener *listener)
 
void notifyPlayerListeners (short code, string parameter="", short type=TYPE_PRESENTATION, string value="")
 
virtual void setSurface (ISurface *surface)
 
virtual ISurface * getSurface ()
 
virtual void setMediaTime (double newTime)
 
virtual int64_t getVPts ()
 
virtual double getTotalMediaTime ()
 
virtual bool setKeyHandler (bool isHandler)
 
virtual void setScope (string scope, short type=TYPE_PRESENTATION, double begin=-1, double end=-1, double outTransDur=-1)
 
virtual string getPropertyValue (string name)
 
void addTimeReferPlayer (IPlayer *referPlayer)
 
void removeTimeReferPlayer (IPlayer *referPlayer)
 
void notifyReferPlayers (int transition)
 
void timebaseObjectTransitionCallback (int transition)
 
void setTimeBasePlayer (IPlayer *timeBasePlayer)
 
virtual bool hasPresented ()
 
void setPresented (bool presented)
 
bool isVisible ()
 
void setVisible (bool visible)
 
bool immediatelyStart ()
 
void setImmediatelyStart (bool immediatelyStartVal)
 
void forceNaturalEnd (bool forceIt)
 
bool isForcedNaturalEnd ()
 
virtual bool setOutWindow (GingaWindowID windowId)
 
virtual IPlayergetSelectedPlayer ()
 
virtual void setPlayerMap (map< string, IPlayer * > *objs)
 
virtual map< string, IPlayer * > * getPlayerMap ()
 
virtual IPlayergetPlayer (string objectId)
 
virtual void select (IPlayer *selObject)
 
virtual void setCurrentScope (string scopeId)
 
virtual void timeShift (string direction)
 
- Public Member Functions inherited from br::pucrio::telemidia::ginga::core::system::thread::Thread
virtual void startThread ()
 
bool sleep (long int seconds)
 
bool mSleep (long int milliseconds)
 
void wakeUp ()
 
void lock ()
 
void unlock ()
 
void waitForUnlockCondition ()
 
bool unlockConditionSatisfied ()
 

Protected Member Functions

void loadSrt ()
 
float strTimeToFloat (string time)
 
void printSrt ()
 
void run ()
 
- Protected Member Functions inherited from br::pucrio::telemidia::ginga::core::player::Player
void checkScopeTime ()
 

Protected Attributes

map< float, float > * textEvents
 
vector< string > * textLines
 
IPlayerplayer
 
bool isPlaying
 
bool controlParentVisibility
 
bool running
 
- Protected Attributes inherited from br::pucrio::telemidia::ginga::core::player::TextPlayer
int fontHeight
 
int currentLine
 
int currentColumn
 
int tabSize
 
int fontSize
 
IColorfontColor
 
IColorbgColor
 
string fontUri
 
short currentAlign
 
IFontProvider * font
 
- Protected Attributes inherited from br::pucrio::telemidia::ginga::core::player::Player
GingaScreenID myScreen
 
short status
 
string mrl
 
ISurface * surface
 
IWindow * outputWindow
 
double initTime
 
double elapsedTime
 
double elapsedPause
 
double pauseTime
 
set< IPlayer * > referredPlayers
 
IPlayertimeBasePlayer
 
bool presented
 
bool visible
 
bool immediatelyStartVar
 
bool forcedNaturalEnd
 
bool notifyContentUpdate
 
string scope
 
short scopeType
 
double scopeInitTime
 
double scopeEndTime
 
double outTransTime
 
- Protected Attributes inherited from br::pucrio::telemidia::ginga::core::system::thread::Thread
bool isDeleting
 
pthread_mutex_t threadMutex
 
bool isThreadSleeping
 
pthread_mutex_t threadFlagMutex
 
pthread_cond_t threadFlagConditionVariable
 
bool isWaiting
 
pthread_mutex_t threadFlagMutexLockUntilSignal
 
pthread_cond_t threadFlagCVLockUntilSignal
 

Additional Inherited Members

- Static Public Member Functions inherited from br::pucrio::telemidia::ginga::core::player::TextPlayer
static int write (GingaScreenID screenId, ISurface *s, string text, short textAlign, string fontUri="", int fontSize=12, IColor *fontColor=NULL)
 
- Static Public Member Functions inherited from br::pucrio::telemidia::ginga::core::system::thread::Thread
static void mutexInit (pthread_mutex_t *mutex, bool recursive=false)
 
static void mutexDestroy (pthread_mutex_t *mutex)
 
static void mutexLock (pthread_mutex_t *mutex)
 
static void mutexUnlock (pthread_mutex_t *mutex)
 
static void condInit (pthread_cond_t *cond, const pthread_condattr_t *attr)
 
static void condDestroy (pthread_cond_t *cond)
 
static void condWait (pthread_cond_t *cond, pthread_mutex_t *mutex)
 
static void condSignal (pthread_cond_t *cond)
 
static void startNewThread (void *(*funcion)(void *), void *ptr)
 
- Static Public Attributes inherited from br::pucrio::telemidia::ginga::core::player::IPlayer
static const short PL_NOTIFY_START = 1
 
static const short PL_NOTIFY_PAUSE = 2
 
static const short PL_NOTIFY_RESUME = 3
 
static const short PL_NOTIFY_STOP = 4
 
static const short PL_NOTIFY_ABORT = 5
 
static const short PL_NOTIFY_NCLEDIT = 6
 
static const short PL_NOTIFY_UPDATECONTENT = 7
 
static const short PL_NOTIFY_OUTTRANS = 8
 
static const short TYPE_PRESENTATION = 10
 
static const short TYPE_ATTRIBUTION = 11
 
static const short TYPE_SIGNAL = 12
 
static const short TYPE_PASSIVEDEVICE = 13
 
static const short TYPE_SELECTION = 14
 
- Static Protected Attributes inherited from br::pucrio::telemidia::ginga::core::player::Player
static const short NONE = 0
 
static const short PLAY = 1
 
static const short PAUSE = 2
 
static const short STOP = 3
 
static ILocalScreenManager * dm = NULL
 

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