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 121 of file httplivestreambuffer.cpp.
|
inline |
Definition at line 124 of file httplivestreambuffer.cpp.
|
default |
|
inline |
Definition at line 139 of file httplivestreambuffer.cpp.
|
inline |
Definition at line 144 of file httplivestreambuffer.cpp.
|
inline |
Definition at line 165 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 170 of file httplivestreambuffer.cpp.
Referenced by HLSRingBuffer::ChooseSegment(), HLSStream::DownloadSegmentData(), HLSStream::FindSegment(), HLSRingBuffer::GetSegment(), HLSRingBuffer::SafeRead(), and PlaylistWorker::UpdatePlaylist().
|
inline |
Definition at line 175 of file httplivestreambuffer.cpp.
Referenced by HLSStream::DownloadSegmentData(), HLSRingBuffer::SafeRead(), HLSRingBuffer::SeekInternal(), HLSStream::Size(), and PlaylistWorker::UpdatePlaylist().
|
inline |
Definition at line 180 of file httplivestreambuffer.cpp.
Referenced by HLSStream::DownloadSegmentData(), HLSRingBuffer::SafeRead(), HLSRingBuffer::SeekInternal(), HLSStream::Size(), and PlaylistWorker::UpdatePlaylist().
|
inline |
Definition at line 185 of file httplivestreambuffer.cpp.
Referenced by HLSStream::DownloadSegmentData().
|
inline |
Definition at line 190 of file httplivestreambuffer.cpp.
Referenced by HLSStream::DownloadSegmentData(), HLSRingBuffer::DurationForBytes(), HLSRingBuffer::SafeRead(), HLSRingBuffer::SaveToDisk(), HLSRingBuffer::SeekInternal(), and HLSStream::Size().
|
inline |
Definition at line 195 of file httplivestreambuffer.cpp.
Referenced by HLSStream::DownloadSegmentData().
|
inline |
Definition at line 210 of file httplivestreambuffer.cpp.
|
inline |
Definition at line 220 of file httplivestreambuffer.cpp.
Referenced by PlaylistWorker::UpdatePlaylist().
|
inline |
Definition at line 225 of file httplivestreambuffer.cpp.
Referenced by HLSRingBuffer::SafeRead().
|
inline |
Definition at line 230 of file httplivestreambuffer.cpp.
Referenced by HLSRingBuffer::SafeRead(), and HLSRingBuffer::SeekInternal().
|
inline |
Definition at line 247 of file httplivestreambuffer.cpp.
Referenced by HLSRingBuffer::SafeRead(), and HLSRingBuffer::SeekInternal().
|
inline |
Definition at line 252 of file httplivestreambuffer.cpp.
Referenced by HLSRingBuffer::SafeRead().
|
inline |
Definition at line 258 of file httplivestreambuffer.cpp.
|
inline |
Definition at line 262 of file httplivestreambuffer.cpp.
|
inline |
provides pointer to raw segment data
Definition at line 269 of file httplivestreambuffer.cpp.
Referenced by HLSRingBuffer::SaveToDisk().
|
private |
Definition at line 379 of file httplivestreambuffer.cpp.
Referenced by Id(), and operator=().
|
private |
Definition at line 380 of file httplivestreambuffer.cpp.
Referenced by Duration(), and operator=().
|
private |
Definition at line 381 of file httplivestreambuffer.cpp.
Referenced by operator=().
|
private |
Definition at line 382 of file httplivestreambuffer.cpp.
Referenced by operator=(), SetTitle(), and Title().
|
private |
Definition at line 384 of file httplivestreambuffer.cpp.
Referenced by CancelDownload(), Download(), operator=(), and Url().
|
private |
Definition at line 385 of file httplivestreambuffer.cpp.
Referenced by Clear(), Data(), Download(), IsEmpty(), Read(), and Size().
|
private |
Definition at line 386 of file httplivestreambuffer.cpp.
Referenced by Clear(), Read(), Reset(), and SizePlayed().
|
private |
Definition at line 387 of file httplivestreambuffer.cpp.
Referenced by CancelDownload(), Lock(), and Unlock().
Definition at line 388 of file httplivestreambuffer.cpp.
Referenced by CancelDownload(), Download(), and operator=().