summaryrefslogtreecommitdiff
path: root/hlsPlayer.h
diff options
context:
space:
mode:
authorchriszero <zerov83@gmail.com>2015-01-28 21:17:18 +0100
committerchriszero <zerov83@gmail.com>2015-01-28 21:17:18 +0100
commit87eb8a9e931606da4197391b6e3a09376b1383c2 (patch)
tree9427c28a2d7e9e44d4d77dc7fe53ff91f5152e23 /hlsPlayer.h
parent1da4dbe662e75be47e046472137c6bd72daa7b4d (diff)
downloadvdr-plugin-plex-87eb8a9e931606da4197391b6e3a09376b1383c2.tar.gz
vdr-plugin-plex-87eb8a9e931606da4197391b6e3a09376b1383c2.tar.bz2
- Counting played time correctly
- Implemented switching audiostreams - Removed some compile warnings
Diffstat (limited to 'hlsPlayer.h')
-rw-r--r--hlsPlayer.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/hlsPlayer.h b/hlsPlayer.h
index a7663f5..49561d8 100644
--- a/hlsPlayer.h
+++ b/hlsPlayer.h
@@ -68,6 +68,7 @@ public:
class cHlsPlayer : public cPlayer, cThread
{
private:
+ int AudioIndexOffset;
cHlsSegmentLoader* m_pSegmentLoader;
plexclient::Video* m_pVideo;
@@ -80,12 +81,19 @@ private:
int m_actualSegment;
int m_actualTime;
long m_lastValidSTC;
+
+ unsigned long long m_tLastTime;
+ unsigned long long m_tTimeSum;
+ bool m_bFirstPlay;
enum ePlayModes { pmPlay, pmPause };
ePlayModes playMode;
virtual void Activate(bool On);
-
+ unsigned long long MsNow(void);
+ int GetPlayedSeconds(void);
+ void CountPlayedSeconds(void);
+ void ResetPlayedSeconds(void);
protected:
void Action(void);
@@ -100,12 +108,14 @@ public:
virtual bool GetIndex(int &Current, int &Total, bool SnapToIFrame = false);
virtual bool GetReplayMode(bool &Play, bool &Forward, int &Speed);
virtual double FramesPerSecond(void);
+ virtual void SetAudioTrack(eTrackType Type, const tTrackId *TrackId);
void Pause(void);
void Play(void);
void Stop(void);
bool Active(void);
void JumpTo(int seconds);
void JumpRelative(int seconds);
+ void SetAudioAndSubtitleTracks(void);
};