1 #ifndef HTTPLIVESTREAM_H
2 #define HTTPLIVESTREAM_H
24 uint32_t bitrate = 800000, uint32_t abitrate = 64000,
26 uint32_t aobitrate = 32000, int32_t srate = -1);
30 bool InitForWrite(
void);
31 bool LoadFromDB(
void);
41 QString GetHTMLPageName(
void)
const;
42 QString GetMetaPlaylistName(
void)
const;
43 QString GetPlaylistName(
bool audioOnly =
false)
const;
45 QString GetFilename(
uint16_t segmentNumber = 0,
bool fileOnly =
false,
46 bool audioOnly =
false,
bool encoded =
false)
const;
47 QString GetCurrentFilename(
48 bool audioOnly =
false,
bool encoded =
false)
const;
50 void SetOutputVars(
void);
55 bool AddSegment(
void);
58 bool WriteMetaPlaylist(
void);
59 bool WritePlaylist(
bool audioOnly =
false,
bool writeEndTag =
false);
61 bool SaveSegmentInfo(
void);
66 bool UpdateStatusMessage(
const QString& message);
67 bool UpdatePercentComplete(
int percent);
74 bool m_writing {
false};
96 uint32_t m_bitrate {800000};
97 uint32_t m_audioBitrate { 64000};
98 uint32_t m_audioOnlyBitrate { 32000};
99 int32_t m_sampleRate {-1};