MythTV
master
|
Public Member Functions | |
HLSSegment (const std::chrono::seconds mduration, const int id, QString title, QString uri, [[maybe_unused]] QString current_key_path) | |
~HLSSegment ()=default | |
HLSSegment (const HLSSegment &rhs) | |
HLSSegment & | operator= (const HLSSegment &rhs) |
std::chrono::seconds | Duration (void) const |
int | Id (void) const |
void | Lock (void) |
void | Unlock (void) |
bool | IsEmpty (void) const |
int32_t | Size (void) const |
int | Download (void) |
void | CancelDownload (void) |
QString | Url (void) const |
int32_t | SizePlayed (void) const |
uint32_t | Read (uint8_t *buffer, int32_t length, FILE *fd=nullptr) |
void | Reset (void) |
void | Clear (void) |
QString | Title (void) const |
void | SetTitle (const QString &x) |
const char * | Data (void) const |
provides pointer to raw segment data More... | |
Private Attributes | |
int | m_id {0} |
std::chrono::seconds | m_duration {0s} |
uint64_t | m_bitrate {0} |
QString | m_title |
QString | m_url |
QByteArray | m_data |
int32_t | m_played {0} |
QMutex | m_lock |
bool | m_downloading {false} |
Definition at line 120 of file httplivestreambuffer.cpp.
|
inline |
Definition at line 123 of file httplivestreambuffer.cpp.
|
default |
|
inline |
Definition at line 137 of file httplivestreambuffer.cpp.
|
inline |
Definition at line 142 of file httplivestreambuffer.cpp.
|
inline |
Definition at line 163 of file httplivestreambuffer.cpp.
Referenced by HLSRingBuffer::ChooseSegment(), HLSStream::DownloadSegmentData(), HLSRingBuffer::DurationForBytes(), HLSStream::RemoveSegment(), HLSRingBuffer::SeekInternal(), HLSStream::Size(), and PlaylistWorker::UpdatePlaylist().
|
inline |
Definition at line 168 of file httplivestreambuffer.cpp.
Referenced by HLSRingBuffer::ChooseSegment(), HLSStream::DownloadSegmentData(), HLSStream::FindSegment(), HLSRingBuffer::GetSegment(), HLSRingBuffer::SafeRead(), and PlaylistWorker::UpdatePlaylist().
|
inline |
Definition at line 173 of file httplivestreambuffer.cpp.
Referenced by HLSStream::DownloadSegmentData(), HLSRingBuffer::SafeRead(), HLSRingBuffer::SeekInternal(), HLSStream::Size(), and PlaylistWorker::UpdatePlaylist().
|
inline |
Definition at line 178 of file httplivestreambuffer.cpp.
Referenced by HLSStream::DownloadSegmentData(), HLSRingBuffer::SafeRead(), HLSRingBuffer::SeekInternal(), HLSStream::Size(), and PlaylistWorker::UpdatePlaylist().
|
inline |
Definition at line 183 of file httplivestreambuffer.cpp.
Referenced by HLSStream::DownloadSegmentData().
|
inline |
Definition at line 188 of file httplivestreambuffer.cpp.
Referenced by HLSStream::DownloadSegmentData(), HLSRingBuffer::DurationForBytes(), HLSRingBuffer::SafeRead(), HLSRingBuffer::SaveToDisk(), HLSRingBuffer::SeekInternal(), and HLSStream::Size().
|
inline |
Definition at line 193 of file httplivestreambuffer.cpp.
Referenced by HLSStream::DownloadSegmentData().
|
inline |
Definition at line 208 of file httplivestreambuffer.cpp.
|
inline |
Definition at line 218 of file httplivestreambuffer.cpp.
Referenced by PlaylistWorker::UpdatePlaylist().
|
inline |
Definition at line 223 of file httplivestreambuffer.cpp.
Referenced by HLSRingBuffer::SafeRead().
|
inline |
Definition at line 228 of file httplivestreambuffer.cpp.
Referenced by HLSRingBuffer::SafeRead(), and HLSRingBuffer::SeekInternal().
|
inline |
Definition at line 248 of file httplivestreambuffer.cpp.
Referenced by HLSRingBuffer::SafeRead(), and HLSRingBuffer::SeekInternal().
|
inline |
Definition at line 253 of file httplivestreambuffer.cpp.
Referenced by HLSRingBuffer::SafeRead().
|
inline |
Definition at line 259 of file httplivestreambuffer.cpp.
|
inline |
Definition at line 263 of file httplivestreambuffer.cpp.
|
inline |
provides pointer to raw segment data
Definition at line 270 of file httplivestreambuffer.cpp.
Referenced by HLSRingBuffer::SaveToDisk().
|
private |
Definition at line 380 of file httplivestreambuffer.cpp.
Referenced by Id(), and operator=().
|
private |
Definition at line 381 of file httplivestreambuffer.cpp.
Referenced by Duration(), and operator=().
|
private |
Definition at line 382 of file httplivestreambuffer.cpp.
Referenced by operator=().
|
private |
Definition at line 383 of file httplivestreambuffer.cpp.
Referenced by operator=(), SetTitle(), and Title().
|
private |
Definition at line 385 of file httplivestreambuffer.cpp.
Referenced by CancelDownload(), Download(), operator=(), and Url().
|
private |
Definition at line 386 of file httplivestreambuffer.cpp.
Referenced by Clear(), Data(), Download(), IsEmpty(), Read(), and Size().
|
private |
Definition at line 387 of file httplivestreambuffer.cpp.
Referenced by Clear(), Read(), Reset(), and SizePlayed().
|
private |
Definition at line 388 of file httplivestreambuffer.cpp.
Referenced by CancelDownload(), Lock(), and Unlock().
Definition at line 389 of file httplivestreambuffer.cpp.
Referenced by CancelDownload(), Download(), and operator=().