1 #ifndef HTTPLIVESTREAM_H
2 #define HTTPLIVESTREAM_H
26 uint32_t bitrate = 800000, uint32_t abitrate = 64000,
28 uint32_t aobitrate = 32000, int32_t srate = -1);
32 bool InitForWrite(
void);
33 bool LoadFromDB(
void);
43 QString GetHTMLPageName(
void)
const;
44 QString GetMetaPlaylistName(
void)
const;
45 QString GetPlaylistName(
bool audioOnly =
false)
const;
47 QString GetFilename(
uint16_t segmentNumber = 0,
bool fileOnly =
false,
48 bool audioOnly =
false,
bool encoded =
false)
const;
49 QString GetCurrentFilename(
50 bool audioOnly =
false,
bool encoded =
false)
const;
52 void SetOutputVars(
void);
57 bool AddSegment(
void);
60 bool WriteMetaPlaylist(
void);
61 bool WritePlaylist(
bool audioOnly =
false,
bool writeEndTag =
false);
63 bool SaveSegmentInfo(
void);
68 bool UpdateStatusMessage(
const QString& message);
69 bool UpdatePercentComplete(
int percent);
77 static bool RemoveStream(
int id);
83 bool m_writing {
false};
105 uint32_t m_bitrate {800000};
106 uint32_t m_audioBitrate { 64000};
107 uint32_t m_audioOnlyBitrate { 32000};
108 int32_t m_sampleRate {-1};