Arduino DLNA Server
|
MediaRenderer DLNA Device. More...
#include <MediaRenderer.h>
Public Member Functions | |
MediaRenderer () | |
MediaRenderer (AudioStream &out, AudioDecoder &decoder) | |
MediaRenderer (AudioOutput &out, AudioDecoder &decoder) | |
MediaRenderer (Print &out, AudioDecoder &decoder) | |
~MediaRenderer () | |
void | setLogin (const char *ssid, const char *password) |
Provides the optional login information. More... | |
bool | begin () |
void | end () |
bool | play (const char *urlStr) |
Defines and opens the URL to be played. More... | |
bool | stop () |
bool | pause () |
bool | resume () |
bool | setVolume (uint8_t volumePercent) |
Defines the volume in percent (0-100) More... | |
uint8_t | getVolume () |
Returns the volume in percent (0-100) More... | |
bool | setMute (bool mute) |
bool | isMuted () |
bool | isPlaying () |
bool | isPaused () |
bool | seek (unsigned long position) |
unsigned long | getPosition () |
unsigned long | getDuration () |
void | setOutput (AudioStream &out) |
void | setOutput (AudioOutput &out) |
void | setOutput (Print &out) |
void | setDecoder (AudioDecoder &decoder) |
size_t | copy () |
void | loop () |
loop called by DeviceMgr More... | |
void | setupServices (HttpServer &server, IUDPService &udp) |
![]() | |
DLNADevice (bool ok=true) | |
~DLNADevice () | |
void | print (Print &out) |
renderes the device xml More... | |
void | setDeviceType (const char *st) |
const char * | getDeviceType () |
void | setUDN (const char *id) |
Define the udn uuid. More... | |
const char * | getUDN () |
Provide the udn uuid. More... | |
void | setBaseURL (const char *url) |
Defines the base url. More... | |
const char * | getBaseURL () |
Provides the base url. More... | |
Url & | getDeviceURL () |
This method returns base url/device.xml. More... | |
void | setIPAddress (IPAddress address) |
IPAddress | getIPAddress () |
const char * | getIPStr () |
Provides the local address as string. More... | |
void | setNS (const char *ns) |
const char * | getNS () |
void | setFriendlyName (const char *name) |
const char * | getFriendlyName () |
void | setManufacturer (const char *man) |
const char * | getManufacturer () |
void | setManufacturerURL (const char *url) |
const char * | getManufacturerURL () |
void | setModelDescription (const char *descr) |
const char * | getModelDescription () |
void | setModelName (const char *name) |
const char * | getModelName () |
void | setModelNumber (const char *number) |
const char * | getModelNumber () |
void | setSerialNumber (const char *sn) |
const char * | getSerialNumber () |
void | setUniveralProductCode (const char *upc) |
const char * | getUniveralProductCode () |
void | addService (DLNAServiceInfo s) |
Adds a service defintion. More... | |
DLNAServiceInfo & | getService (const char *id) |
Finds a service definition by name. More... | |
Vector< DLNAServiceInfo > & | getServices () |
void | clear () |
void | clearIcons () |
Overwrite the default icon. More... | |
void | addIcon (Icon icon) |
Icon | getIcon (int idx=0) |
operator bool () | |
void | updateTimestamp () |
Update the timestamp. More... | |
uint32_t | getTimestamp () |
Returns the time when this object has been updated. More... | |
void | setActive (bool flag) |
Protected Member Functions | |
void | setupServicesImpl (HttpServer *server) |
![]() | |
size_t | printRoot () |
size_t | printDevice () |
size_t | printSpecVersion () |
size_t | printServiceList () |
size_t | printService (void *srv) |
size_t | printIconList () |
size_t | printIconDlnaInfo (Icon &icon) |
Static Protected Member Functions | |
static const char * | reply () |
static void | transportControlCB (HttpServer *server, const char *requestPath, HttpRequestHandlerLine *hl) |
static void | renderingControlCB (HttpServer *server, const char *requestPath, HttpRequestHandlerLine *hl) |
Protected Attributes | |
URLStream | url |
Pipeline | pipeline |
AudioDecoder * | p_decoder = nullptr |
EncodedAudioStream | dec_stream |
VolumeStream | volume |
AudioStream * | p_stream = nullptr |
AudioOutput * | p_out = nullptr |
Print * | p_print = nullptr |
StreamCopy | copier {pipeline, url} |
uint8_t | current_volume = 50 |
bool | is_muted = false |
bool | playing = false |
unsigned long | start_time = 0 |
const char * | st = "urn:schemas-upnp-org:device:MediaRenderer:1" |
const char * | usn = "uuid:09349455-2941-4cf7-9847-1dd5ab210e97" |
![]() | |
uint64_t | timestamp = 0 |
bool | is_active = true |
XMLPrinter | xml |
Url | device_url |
IPAddress | localhost |
int | version_major = 1 |
int | version_minor = 0 |
const char * | base_url = "http://localhost:9876/dlna" |
const char * | udn = "uuid:09349455-2941-4cf7-9847-0dd5ab210e97" |
const char * | ns = "xmlns=\"urn:schemas-upnp-org:device-1-0\"" |
const char * | device_type = nullptr |
const char * | friendly_name = nullptr |
const char * | manufacturer = nullptr |
const char * | manufacturer_url = nullptr |
const char * | model_description = nullptr |
const char * | model_name = nullptr |
const char * | model_url = nullptr |
const char * | model_number = nullptr |
const char * | serial_number = nullptr |
const char * | universal_product_code = nullptr |
Icon | icon |
Vector< DLNAServiceInfo > | services |
Vector< Icon > | icons |
MediaRenderer DLNA Device.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns the volume in percent (0-100)
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
loop called by DeviceMgr
Reimplemented from tiny_dlna::DLNADevice.
|
inline |
|
inline |
Defines and opens the URL to be played.
|
inlinestaticprotected |
|
inlinestaticprotected |
|
inline |
|
inline |
|
inline |
|
inline |
Provides the optional login information.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented from tiny_dlna::DLNADevice.
|
inlineprotected |
|
inline |
Defines the volume in percent (0-100)
|
inline |
|
inlinestaticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |