362c1f4c3b5ce9e3fce11167a51fbe4cdb2174de
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h   1) /* Blinker
Stefan Schuermans update copyright header

Stefan Schuermans authored 5 years ago

src/common/Player.h   2)    Copyright 2011-2019 Stefan Schuermans <stefan@blinkenarea.org>
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h   3)    Copyleft GNU public license - http://www.gnu.org/copyleft/gpl.html
src/noarch/Player.h   4)    a blinkenarea.org project */
src/noarch/Player.h   5) 
Stefan Schuermans namespace for preprocessor...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h   6) #ifndef BLINKER_PLAYER_H
src/noarch/Player.h   7) #define BLINKER_PLAYER_H
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h   8) 
src/noarch/Player.h   9) #include <list>
src/noarch/Player.h  10) #include <string>
src/noarch/Player.h  11) 
src/noarch/Player.h  12) #include <BlinkenLib/BlinkenMovie.h>
src/noarch/Player.h  13) 
src/noarch/Player.h  14) #include "Directory.h"
src/noarch/Player.h  15) #include "File.h"
Stefan Schuermans implemented halting player...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  16) #include "InStreamFile.h"
Stefan Schuermans implement synchronization f...

Stefan Schuermans authored 10 years ago

src/common/Player.h  17) #include "InSyncFile.h"
Stefan Schuermans converted player module to...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  18) #include "ListTracker.h"
Stefan Schuermans put all managers in one str...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  19) #include "Mgrs.h"
Stefan Schuermans implemented halting player...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  20) #include "Module.h"
Stefan Schuermans implemented specialized set...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  21) #include "OutStreamFile.h"
Stefan Schuermans implemented halting player...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  22) #include "StreamRecv.h"
Stefan Schuermans implement synchronization f...

Stefan Schuermans authored 10 years ago

src/common/Player.h  23) #include "SyncRecv.h"
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h  24) #include "Time.h"
src/noarch/Player.h  25) #include "TimeCallee.h"
src/noarch/Player.h  26) 
src/noarch/Player.h  27) namespace Blinker {
src/noarch/Player.h  28) 
src/noarch/Player.h  29) /// a movie player
Stefan Schuermans implement synchronization f...

Stefan Schuermans authored 10 years ago

src/common/Player.h  30) class Player: public Module, public StreamRecv, public SyncRecv,
src/common/Player.h  31)               public TimeCallee
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h  32) {
src/noarch/Player.h  33) protected:
Stefan Schuermans converted player module to...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  34)   /// movie in playlist
src/noarch/Player.h  35)   class Movie;
src/noarch/Player.h  36) 
src/noarch/Player.h  37)   /// playlist tracker
src/noarch/Player.h  38)   typedef ListTracker<Player, Movie, File> PlaylistTracker;
src/noarch/Player.h  39) 
src/noarch/Player.h  40)   /// playlist iterator
src/noarch/Player.h  41)   typedef PlaylistTracker::ListIt PlaylistIt;
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h  42) 
src/noarch/Player.h  43) public:
src/noarch/Player.h  44)   /**
src/noarch/Player.h  45)    * @brief constructor
Stefan Schuermans make modules know their name

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  46)    * @param[in] name module name
Stefan Schuermans put all managers in one str...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  47)    * @param[in] mgrs managers
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h  48)    * @param[in] dirBase base directory
src/noarch/Player.h  49)    */
Stefan Schuermans make modules know their name

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  50)   Player(const std::string &name, Mgrs &mgrs, const Directory &dirBase);
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h  51) 
src/noarch/Player.h  52)   /// virtual destructor
src/noarch/Player.h  53)   virtual ~Player();
src/noarch/Player.h  54) 
src/noarch/Player.h  55) private:
src/noarch/Player.h  56)   /// copy constructor disabled
Stefan Schuermans whitespace fixes

Stefan Schuermans authored 13 years ago

src/noarch/Player.h  57)   Player(const Player &that);
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h  58) 
src/noarch/Player.h  59)   /// assignment operator disabled
Stefan Schuermans implemented base class for...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h  60)   const Player & operator=(const Player &that);
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h  61) 
src/noarch/Player.h  62) public:
Stefan Schuermans implemented base class for...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h  63)   /// check for update of configuration
src/noarch/Player.h  64)   virtual void updateConfig();
src/noarch/Player.h  65) 
Stefan Schuermans implemented halting player...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  66)   /**
src/noarch/Player.h  67)    * @brief set current frame
src/noarch/Player.h  68)    * @param[in] stream stream name
src/noarch/Player.h  69)    * @param[in] pFrame current frame (NULL for none)
src/noarch/Player.h  70)    */
src/noarch/Player.h  71)   virtual void setFrame(const std::string &stream, stBlinkenFrame *pFrame);
src/noarch/Player.h  72) 
Stefan Schuermans implement synchronization f...

Stefan Schuermans authored 10 years ago

src/common/Player.h  73)   /**
src/common/Player.h  74)    * @brief send synchronization information
src/common/Player.h  75)    * @param[in] sync sync stream name
src/common/Player.h  76)    * @param[in] pInfo synchronization information
src/common/Player.h  77)    */
src/common/Player.h  78)   virtual void sendInfo(const std::string &sync, Info &info);
src/common/Player.h  79) 
Stefan Schuermans fixed comment typo

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  80)   /// callback when requested time reached
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h  81)   virtual void timeCall();
src/noarch/Player.h  82) 
src/noarch/Player.h  83) protected:
Stefan Schuermans implement synchronization f...

Stefan Schuermans authored 10 years ago

src/common/Player.h  84)   /// halt player
src/common/Player.h  85)   void halt();
src/common/Player.h  86) 
src/common/Player.h  87)   /// continue playing
src/common/Player.h  88)   void cont();
src/common/Player.h  89) 
Stefan Schuermans converted player module to...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  90)   /// check if current movie changed and react
src/noarch/Player.h  91)   void checkCurChanged();
Stefan Schuermans implemented automatic check...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h  92) 
src/noarch/Player.h  93)   /// process current frame
src/noarch/Player.h  94)   void procFrame();
src/noarch/Player.h  95) 
src/noarch/Player.h  96)   /// send current frame to output stream
src/noarch/Player.h  97)   void sendFrame();
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h  98) 
Stefan Schuermans code cleanup of synchroniza...

Stefan Schuermans authored 10 years ago

src/common/Player.h  99)   /**
src/common/Player.h 100)    * @brief seek to movie by name
src/common/Player.h 101)    * @param[in] name name of movie to seek to (name cmp according to SyncRecv)
src/common/Player.h 102)    */
Stefan Schuermans output no frame if sync pro...

Stefan Schuermans authored 10 years ago

src/common/Player.h 103)   void seekToMovie(const std::string &name);
Stefan Schuermans code cleanup of synchroniza...

Stefan Schuermans authored 10 years ago

src/common/Player.h 104) 
src/common/Player.h 105)   /**
src/common/Player.h 106)    * @brief seek to position in current movie
src/common/Player.h 107)    * @param[in] tgtPos target position in current movie to seek to
src/common/Player.h 108)    * @return true if movie position has been changed, false otherwise
src/common/Player.h 109)    */
src/common/Player.h 110)   bool seekToPos(const Time &tgtPos);
src/common/Player.h 111) 
src/common/Player.h 112)   /**
src/common/Player.h 113)    * @brief seek backwards in current movie
src/common/Player.h 114)    * @param[in] goback time to seek backwards in current movie
src/common/Player.h 115)    */
Stefan Schuermans output no frame if sync pro...

Stefan Schuermans authored 10 years ago

src/common/Player.h 116)   void seekBackwards(Time goback);
Stefan Schuermans code cleanup of synchroniza...

Stefan Schuermans authored 10 years ago

src/common/Player.h 117) 
src/common/Player.h 118)   /**
src/common/Player.h 119)    * @brief seek forwards in current movie
src/common/Player.h 120)    * @param[in] go time to seek forwards in current movie
src/common/Player.h 121)    */
Stefan Schuermans output no frame if sync pro...

Stefan Schuermans authored 10 years ago

src/common/Player.h 122)   void seekForwards(Time go);
Stefan Schuermans code cleanup of synchroniza...

Stefan Schuermans authored 10 years ago

src/common/Player.h 123) 
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h 124) protected:
Stefan Schuermans converted player module to...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h 125)   OutStreamFile   m_fileOutStream;   ///< output stream name file
Stefan Schuermans implemented halting player...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h 126)   InStreamFile    m_fileHaltStream;  /**< halt stream name file
src/noarch/Player.h 127)                                           (player halts if stream active) */
Stefan Schuermans implement synchronization f...

Stefan Schuermans authored 10 years ago

src/common/Player.h 128)   InSyncFile      m_fileInSync;      ///< input sync stream
Stefan Schuermans converted player module to...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h 129)   PlaylistTracker m_playlistTracker; ///< current playlist
src/noarch/Player.h 130)   bool            m_curValid;        ///< if there is a current frame
Stefan Schuermans output no frame if sync pro...

Stefan Schuermans authored 10 years ago

src/common/Player.h 131)   bool            m_unknownMovie;    ///< unknown movie is playing (via sync)
Stefan Schuermans converted player module to...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h 132)   PlaylistIt      m_curEntry;        ///< current playlist entry
src/noarch/Player.h 133)   int             m_curFrame;        ///< current frame in movie
Stefan Schuermans implement synchronization f...

Stefan Schuermans authored 10 years ago

src/common/Player.h 134)   Time            m_curFrameStart;   /**< start time of current frame
src/common/Player.h 135)                                           relative to start of movie */
src/common/Player.h 136)   Time            m_curFrameEnd;     /**< end time of current frame
src/common/Player.h 137)                                           relative to start of movie */
Stefan Schuermans converted player module to...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h 138)   bool            m_curChange;       ///< current movie changed
Stefan Schuermans implemented halting player...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h 139)   bool            m_halted;          ///< if player is halted
src/noarch/Player.h 140)   Time            m_remainTime;      /**< remaining time of current frame
src/noarch/Player.h 141)                                           (valid if m_curValid && m_halted) */
src/noarch/Player.h 142)   Time            m_nextTime;        /**< when to show next frame
src/noarch/Player.h 143)                                           (valid if m_curValid && !m_halted) */
Stefan Schuermans implement synchronization f...

Stefan Schuermans authored 10 years ago

src/common/Player.h 144)   Time            m_maxDeviation;    ///< max. deviation from sync stream
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h 145) }; // class Player
src/noarch/Player.h 146) 
src/noarch/Player.h 147) } // namespace Blinker
src/noarch/Player.h 148) 
Stefan Schuermans namespace for preprocessor...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h 149) #endif // #ifndef BLINKER_PLAYER_H