#include <dlna.h>
Public Member Functions | |
const char * | getDeviceDescription (const char *URLBase) |
void | registerProfile (DLNAProfile *Profile, int Op=-1, const char *Ps=NULL, int Ci=-1, unsigned int Flags=0) |
void | registerMainProfiles () |
const char * | getSupportedProtocols () |
const char * | getProtocolInfo (DLNAProfile *Prof) |
DLNAProfile * | getProfileOfChannel (cChannel *Channel) |
DLNAProfile * | getProfileOfRecording (cRecording *Recording) |
DLNAProfile * | getProfileOfFile (cString File) |
Static Public Member Functions | |
static cDlna * | getInstance (void) |
Friends | |
class | cUPnPServer |
This class enables media transmission with DLNA conformity. Its compliant with version 1.5 of the DLNA guidelines.
const char * cDlna::getDeviceDescription | ( | const char * | URLBase | ) |
Device description document
This will return the device description document with service type definitions as well as some DLNA specific information
URLBase | the URLBase to be set in the document |
cDlna * cDlna::getInstance | ( | void | ) | [static] |
Returns the instance of DLNA object
This will create a DLNA object instance. It will return the same instance on subsequent calls.
DLNAProfile * cDlna::getProfileOfChannel | ( | cChannel * | Channel | ) |
Profile of a channel
Returns the DLNA profile of a VDR channel. It checks the video type to determine which profile will match.
Channel | the channel of which the profile should created from |
DLNAProfile * cDlna::getProfileOfFile | ( | cString | File | ) |
Profile of a file
Returns the DLNA profile of a file. It checks the content of the file with ffmpeg to determine which profile will match.
File | the file of which the profile should be created from |
DLNAProfile * cDlna::getProfileOfRecording | ( | cRecording * | Recording | ) |
Profile of a recording
Returns the DLNA profile of a VDR recording. It checks the video file to determine which profile will match.
Recording | the recording of which the profile should be created from |
const char * cDlna::getProtocolInfo | ( | DLNAProfile * | Prof | ) |
Protocol info of a specific DLNA profile
Returns the protocol info string of a specific DLNA profile with its options and flags.
Prof | the Profile of which the protocol info shall be returned |
const char * cDlna::getSupportedProtocols | ( | ) |
CSV list of supported protocols
Returns a comma separated list with all supported protocols. This means, it returns the list of protocols of the registered profiles.
void cDlna::registerMainProfiles | ( | ) |
Registeres all known DLNA profiles
Registeres all well known DLNA profiles with its known options
void cDlna::registerProfile | ( | DLNAProfile * | Profile, | |
int | Op = -1 , |
|||
const char * | Ps = NULL , |
|||
int | Ci = -1 , |
|||
unsigned int | Flags = 0 | |||
) |
Registeres a DLNA profile
Registeres a DLNA profile with specific optional options
Profile | the DLNA profile | |
Op | operation mode | |
Ps | play speed (CSV list) | |
Ci | conversion indication flag | |
Flags | DLNA flags |