#ifndef _PLT_MEDIA_CONTROLLER_LISTENER_H_
#define _PLT_MEDIA_CONTROLLER_LISTENER_H_
typedef NPT_List<NPT_String> PLT_StringList;
struct PLT_DeviceCapabilities {
PLT_StringList play_media;
PLT_StringList rec_media;
PLT_StringList rec_quality_modes;
};
struct PLT_MediaInfo {
NPT_UInt32 num_tracks;
NPT_TimeStamp media_duration;
NPT_String cur_uri;
NPT_String cur_metadata;
NPT_String next_uri;
NPT_String next_metadata;
NPT_String play_medium;
NPT_String rec_medium;
NPT_String write_status;
};
struct PLT_PositionInfo {
NPT_UInt32 track;
NPT_TimeStamp track_duration;
NPT_String track_metadata;
NPT_String track_uri;
NPT_TimeStamp rel_time;
NPT_TimeStamp abs_time;
NPT_Int32 rel_count;
NPT_Int32 abs_count;
};
struct PLT_TransportInfo {
NPT_String cur_transport_state;
NPT_String cur_transport_status;
NPT_String cur_speed;
};
struct PLT_TransportSettings {
NPT_String play_mode;
NPT_String rec_quality_mode;
};
struct PLT_ConnectionInfo {
NPT_UInt32 rcs_id;
NPT_UInt32 avtransport_id;
NPT_String protocol_info;
NPT_String peer_connection_mgr;
NPT_UInt32 peer_connection_id;
NPT_String direction;
NPT_String status;
};
class PLT_MediaControllerListener
{
public:
virtual ~PLT_MediaControllerListener() {}
virtual void OnMRAddedRemoved(PLT_DeviceDataReference& ,
int ) {}
virtual void OnMRStateVariablesChanged(PLT_Service* ,
NPT_List<PLT_StateVariable*>* ) {}
virtual void OnGetCurrentTransportActionsResult(
NPT_Result ,
PLT_DeviceDataReference& ,
PLT_StringList* ,
void* ) {}
virtual void OnGetDeviceCapabilitiesResult(
NPT_Result ,
PLT_DeviceDataReference& ,
PLT_DeviceCapabilities* ,
void* ) {}
virtual void OnGetMediaInfoResult(
NPT_Result ,
PLT_DeviceDataReference& ,
PLT_MediaInfo* ,
void* ) {}
virtual void OnGetPositionInfoResult(
NPT_Result ,
PLT_DeviceDataReference& ,
PLT_PositionInfo* ,
void* ) {}
virtual void OnGetTransportInfoResult(
NPT_Result ,
PLT_DeviceDataReference& ,
PLT_TransportInfo* ,
void* ) {}
virtual void OnGetTransportSettingsResult(
NPT_Result ,
PLT_DeviceDataReference& ,
PLT_TransportSettings* ,
void* ) {}
virtual void OnNextResult(
NPT_Result ,
PLT_DeviceDataReference& ,
void* ) {}
virtual void OnPauseResult(
NPT_Result ,
PLT_DeviceDataReference& ,
void* ) {}
virtual void OnPlayResult(
NPT_Result ,
PLT_DeviceDataReference& ,
void* ) {}
virtual void OnPreviousResult(
NPT_Result ,
PLT_DeviceDataReference& ,
void* ) {}
virtual void OnSeekResult(
NPT_Result ,
PLT_DeviceDataReference& ,
void* ) {}
virtual void OnSetAVTransportURIResult(
NPT_Result ,
PLT_DeviceDataReference& ,
void* ) {}
virtual void OnSetPlayModeResult(
NPT_Result ,
PLT_DeviceDataReference& ,
void* ) {}
virtual void OnStopResult(
NPT_Result ,
PLT_DeviceDataReference& ,
void* ) {}
virtual void OnGetCurrentConnectionIDsResult(
NPT_Result ,
PLT_DeviceDataReference& ,
PLT_StringList* ,
void* ) {}
virtual void OnGetCurrentConnectionInfoResult(
NPT_Result ,
PLT_DeviceDataReference& ,
PLT_ConnectionInfo* ,
void* ) {}
virtual void OnGetProtocolInfoResult(
NPT_Result ,
PLT_DeviceDataReference& ,
PLT_StringList* ,
PLT_StringList* ,
void* ) {}
};
#endif