diff options
Diffstat (limited to 'UI/ViperGui.h')
-rw-r--r-- | UI/ViperGui.h | 66 |
1 files changed, 31 insertions, 35 deletions
diff --git a/UI/ViperGui.h b/UI/ViperGui.h index 1ce8e574..6431257d 100644 --- a/UI/ViperGui.h +++ b/UI/ViperGui.h @@ -48,7 +48,7 @@ public: void setListSegmentSize(int listSegmentSize); ViperBuffer* getStreamBuffer(); QtAV::AVPlayer* getVideoPlayer(); - void setGuiFields(dash::mpd::IMPD* mpd); + void setMPDDuration(dash::mpd::IMPD* mpd); void setLifeLabel(QObject *lifeLabel); void setNowLabel(QObject *nowLabel); void setPlayButton(QObject *playButton); @@ -87,41 +87,37 @@ public: void resetGraphValues(); private: - pthread_mutex_t monitorMutex; - GraphDataSource *graphDataSource; - managers::MultimediaStream *videoStream; - int64_t offset; - int64_t durationMilliseconds; - qint64 position; - std::string durationString; - QtAV::AVPlayer *videoPlayer; - ViperBuffer *streamBuffer; - std::map<std::string, std::string> keyValues; - std::map<std::string, int> keyIndices; - std::map<std::string, std::vector<std::string>> video; - std::map<std::string, std::vector<std::string>> audio; - QObject *lifeLabel; - QObject *nowLabel; - QObject *progressBar; - QObject *playButton; - std::vector<IDASHPlayerGuiObserver *> observers; - dash::mpd::IMPD *mpd; - void setPeriodComboBox(dash::mpd::IMPD *mpd); - void setAdaptationSetComboBox(dash::mpd::IPeriod *period); - void setVideoAdaptationSetComboBox(dash::mpd::IPeriod *period); - void setAudioAdaptationSetComboBox(dash::mpd::IPeriod *period); - void setRepresentationComoboBox(dash::mpd::IAdaptationSet *adaptationSet); + pthread_mutex_t monitorMutex; + GraphDataSource *graphDataSource; + managers::MultimediaStream *videoStream; + int64_t offset; + int64_t durationMilliseconds; + qint64 position; + std::string durationString; + QtAV::AVPlayer *videoPlayer; + ViperBuffer *streamBuffer; + std::map<std::string, std::string> keyValues; + std::map<std::string, int> keyIndices; + std::map<std::string, std::vector<std::string>> video; + std::map<std::string, std::vector<std::string>> audio; + QObject *lifeLabel; + QObject *nowLabel; + QObject *progressBar; + QObject *playButton; + std::vector<IDASHPlayerGuiObserver *> observers; + dash::mpd::IMPD *mpd; + int listSegmentSize; + int segment; + int64_t bufferDuration; + int64_t segmentDuration; + int64_t lastSegmentDuration; + bool play; + bool stop; + bool pause; + bool repeat; + QObject *rootObject; + void parse8601(std::string durationISO8601); - int listSegmentSize; - int segment; - int64_t bufferDuration; - int64_t segmentDuration; - int64_t lastSegmentDuration; - bool play; - bool stop; - bool pause; - bool repeat; - QObject *rootObject; }; } |