TizenRT Public API
v2.0 M2
|
Public Member Functions | |
HttpInputDataSource ()=delete | |
Constructs an empty HttpInputDataSource. More... | |
virtual | ~HttpInputDataSource () |
Deconstructs an HttpInputDataSource. More... | |
HttpInputDataSource (const std::string &url) | |
Constructs a new object provide with url. More... | |
HttpInputDataSource (const HttpInputDataSource &source) | |
Copy constructs for HttpInputDataSource. More... | |
HttpInputDataSource & | operator= (const HttpInputDataSource &source) |
Operator= for HttpInputDataSource. More... | |
bool | isPrepared () override |
Whether http source is ready to be read. More... | |
bool | open () override |
Open the http source. More... | |
bool | close () override |
Close the http source. More... | |
ssize_t | read (unsigned char *buf, size_t size) override |
Read the audio stream data. More... | |
void | onBufferOverrun () override |
void | onBufferUnderrun () override |
Called when buffer underrun. More... | |
void | onBufferUpdated (ssize_t change, size_t current) override |
Called when buffer updated. More... | |
unsigned int | getChannels () |
Gets the channel count of the stream data. More... | |
unsigned int | getSampleRate () |
Gets the sample rate of the stream data. More... | |
audio_format_type_t | getPcmFormat () |
Gets the pcm format of the stream data. More... | |
void | setChannels (unsigned int channels) |
Sets the channel count of the stream data. More... | |
void | setSampleRate (unsigned int sampleRate) |
Sets the sample rate of the stream data. More... | |
void | setPcmFormat (audio_format_type_t pcmFormat) |
Sets the pcm format of the stream data. More... | |
void | setAudioType (audio_type_t audioType) |
Sets the audio type of the stream data. More... | |
audio_type_t | getAudioType () |
Gets the audio type of the stream data. More... | |
Definition at line 56 of file HttpInputDataSource.h.
|
delete |
Constructs an empty HttpInputDataSource.
#include <media/HttpInputDataSource.h> Delete the default construct
|
virtual |
HttpInputDataSource | ( | const std::string & | url | ) |
Constructs a new object provide with url.
#include <media/HttpInputDataSource.h> param[in] url The URL of the internet audio stream
HttpInputDataSource | ( | const HttpInputDataSource & | source | ) |
|
overridevirtual |
Close the http source.
#include <media/HttpInputDataSource.h>
Implements DataSource.
|
inherited |
Gets the audio type of the stream data.
#include <media/DataSource.h>
|
inherited |
Gets the channel count of the stream data.
#include <media/DataSource.h>
|
inherited |
Gets the pcm format of the stream data.
#include <media/DataSource.h>
|
inherited |
Gets the sample rate of the stream data.
#include <media/DataSource.h>
|
overridevirtual |
Whether http source is ready to be read.
#include <media/HttpInputDataSource.h>
Implements DataSource.
|
overridevirtual |
Implements BufferObserverInterface.
|
overridevirtual |
Called when buffer underrun.
#include <media/BufferObserverInterface.h>
Implements BufferObserverInterface.
|
overridevirtual |
Called when buffer updated.
#include <media/BufferObserverInterface.h>
Implements BufferObserverInterface.
|
overridevirtual |
Open the http source.
#include <media/HttpInputDataSource.h>
Implements DataSource.
HttpInputDataSource& operator= | ( | const HttpInputDataSource & | source | ) |
|
overridevirtual |
Read the audio stream data.
#include <media/HttpInputDataSource.h> param[in] buf pointer to a buffer param[in] size size to be read
Implements InputDataSource.
|
inherited |
Sets the audio type of the stream data.
#include <media/DataSource.h>
[in] | audioType | The audioType that the audio type of stream data |
|
inherited |
Sets the channel count of the stream data.
#include <media/DataSource.h>
[in] | channels | The channels that the channel count of stream data |
|
inherited |
Sets the pcm format of the stream data.
#include <media/DataSource.h>
[in] | pcmFormat | The pcmFormat that the pcm format of stream data |
|
inherited |
Sets the sample rate of the stream data.
#include <media/DataSource.h>
[in] | sampleRate | The sampleRate that the sample rate of stream data |