35 #ifndef _PLT_MEDIA_RENDERER_H_
36 #define _PLT_MEDIA_RENDERER_H_
46 class PLT_MediaRendererDelegate
49 virtual ~PLT_MediaRendererDelegate() {}
52 virtual NPT_Result OnGetCurrentConnectionInfo(PLT_ActionReference& action) = 0;
55 virtual NPT_Result OnNext(PLT_ActionReference& action) = 0;
56 virtual NPT_Result OnPause(PLT_ActionReference& action) = 0;
57 virtual NPT_Result OnPlay(PLT_ActionReference& action) = 0;
58 virtual NPT_Result OnPrevious(PLT_ActionReference& action) = 0;
59 virtual NPT_Result OnSeek(PLT_ActionReference& action) = 0;
60 virtual NPT_Result OnStop(PLT_ActionReference& action) = 0;
61 virtual NPT_Result OnSetAVTransportURI(PLT_ActionReference& action) = 0;
62 virtual NPT_Result OnSetPlayMode(PLT_ActionReference& action) = 0;
65 virtual NPT_Result OnSetVolume(PLT_ActionReference& action) = 0;
66 virtual NPT_Result OnSetVolumeDB(PLT_ActionReference& action) = 0;
67 virtual NPT_Result OnGetVolumeDBRange(PLT_ActionReference& action) = 0;
68 virtual NPT_Result OnSetMute(PLT_ActionReference& action) = 0;
77 PLT_MediaRenderer(
const char* friendly_name,
79 const char* uuid = NULL,
80 unsigned int port = 0,
81 bool port_rebind =
false);
83 virtual void SetDelegate(PLT_MediaRendererDelegate* delegate) { m_Delegate = delegate; }
87 virtual NPT_Result
OnAction(PLT_ActionReference& action,
91 virtual ~PLT_MediaRenderer();
95 virtual NPT_Result OnGetCurrentConnectionInfo(PLT_ActionReference& action);
98 virtual NPT_Result OnNext(PLT_ActionReference& action);
99 virtual NPT_Result OnPause(PLT_ActionReference& action);
100 virtual NPT_Result OnPlay(PLT_ActionReference& action);
101 virtual NPT_Result OnPrevious(PLT_ActionReference& action);
102 virtual NPT_Result OnSeek(PLT_ActionReference& action);
103 virtual NPT_Result OnStop(PLT_ActionReference& action);
104 virtual NPT_Result OnSetAVTransportURI(PLT_ActionReference& action);
105 virtual NPT_Result OnSetPlayMode(PLT_ActionReference& action);
108 virtual NPT_Result OnSetVolume(PLT_ActionReference& action);
109 virtual NPT_Result OnSetVolumeDB(PLT_ActionReference &action);
110 virtual NPT_Result OnGetVolumeDBRange(PLT_ActionReference &action);
111 virtual NPT_Result OnSetMute(PLT_ActionReference& action);
114 PLT_MediaRendererDelegate* m_Delegate;
virtual NPT_Result SetupServices()=0
Required method for setting up UPnP services of device host (and any embedded).
virtual NPT_Result OnAction(PLT_ActionReference &action, const PLT_HttpRequestContext &context)
This mehod is called when an action performed by a control point has been received and needs to be an...
UPnP Device Host.
Definition: PltDeviceHost.h:69
The PLT_HttpRequestContext class holds information about the request sent, the local & remote ip addr...
Definition: PltHttp.h:115