MythTV  master
Classes | Macros | Enumerations | Functions
httplivestreambuffer.cpp File Reference
#include <QObject>
#include <QString>
#include <QStringList>
#include <QtAlgorithms>
#include <QUrl>
#include <algorithm>
#include <sys/time.h>
#include "mthread.h"
#include "mythdownloadmanager.h"
#include "mythlogging.h"
#include "httplivestreambuffer.h"
Include dependency graph for httplivestreambuffer.cpp:

Go to the source code of this file.

Classes

class  HLSSegment
 
class  HLSStream
 
class  HLSPlayback
 
class  StreamWorker
 
class  PlaylistWorker
 

Macros

#define LOC   QString("HLSBuffer: ")
 
#define PLAYBACK_MINBUFFER   2
 
#define PLAYBACK_READAHEAD   6
 
#define PLAYLIST_FAILURE   6
 

Enumerations

enum  { RET_ERROR = -1, RET_OK = 0 }
 

Functions

static QString decoded_URI (const QString &uri)
 
static QString relative_URI (const QString &surl, const QString &spath)
 
static uint64_t mdate (void)
 
static bool downloadURL (const QString &url, QByteArray *buffer)
 
static void cancelURL (const QString &url)
 
static void cancelURL (const QStringList &urls)
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("HLSBuffer: ")

Definition at line 56 of file httplivestreambuffer.cpp.

◆ PLAYBACK_MINBUFFER

#define PLAYBACK_MINBUFFER   2

Definition at line 59 of file httplivestreambuffer.cpp.

◆ PLAYBACK_READAHEAD

#define PLAYBACK_READAHEAD   6

Definition at line 60 of file httplivestreambuffer.cpp.

◆ PLAYLIST_FAILURE

#define PLAYLIST_FAILURE   6

Definition at line 61 of file httplivestreambuffer.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
RET_ERROR 
RET_OK 

Definition at line 63 of file httplivestreambuffer.cpp.

Function Documentation

◆ decoded_URI()

static QString decoded_URI ( const QString &  uri)
static

Definition at line 71 of file httplivestreambuffer.cpp.

Referenced by HLSRingBuffer::ParseKey(), and HLSRingBuffer::ParseM3U8().

◆ relative_URI()

static QString relative_URI ( const QString &  surl,
const QString &  spath 
)
static

◆ mdate()

static uint64_t mdate ( void  )
static

◆ downloadURL()

static bool downloadURL ( const QString &  url,
QByteArray *  buffer 
)
static

◆ cancelURL() [1/2]

static void cancelURL ( const QString &  url)
static

Definition at line 103 of file httplivestreambuffer.cpp.

Referenced by PlaylistWorker::Cancel(), and HLSSegment::CancelDownload().

◆ cancelURL() [2/2]

static void cancelURL ( const QStringList &  urls)
static

Definition at line 109 of file httplivestreambuffer.cpp.