if (MEDIA_CONTROLLER_ERROR_NONE != ret) {
return LogAndCreateResult(
ErrorCode::UNKNOWN_ERR, "Error sending command reply",
- ("mc_server_send_command_reply() error: %d, message: %s", ret, get_error_message(ret)));
+ ("mc_server_send_cmd_reply() error: %d, message: %s", ret, get_error_message(ret)));
}
return PlatformResult(ErrorCode::NO_ERROR);
{{"PLAY", MC_PLAYBACK_STATE_PLAYING},
{"PAUSE", MC_PLAYBACK_STATE_PAUSED},
{"STOP", MC_PLAYBACK_STATE_STOPPED},
- // Deprecated values of MC_PLAYBACK_STATE enum
- // still have to be supported, because native
- // applications/API might still use them.
- {"NEXT", MC_PLAYBACK_STATE_NEXT_FILE},
{"NEXT", MC_PLAYBACK_STATE_MOVING_TO_NEXT},
- {"PREV", MC_PLAYBACK_STATE_PREV_FILE},
{"PREV", MC_PLAYBACK_STATE_MOVING_TO_PREVIOUS},
- {"FORWARD", MC_PLAYBACK_STATE_FAST_FORWARD},
{"FORWARD", MC_PLAYBACK_STATE_FAST_FORWARDING},
- {"REWIND", MC_PLAYBACK_STATE_REWIND},
{"REWIND", MC_PLAYBACK_STATE_REWINDING}}},
{kMediaControllerPlaybackAction,
{{"PLAY", MC_PLAYBACK_ACTION_PLAY},
PlatformEnumReverseMap Types::platform_enum_reverse_map_ = {};
PlatformResult Types::GetPlatformEnumMap(const std::string& type,
- std::multimap<std::string, int> const** enum_map) {
+ std::map<std::string, int> const** enum_map) {
ScopeLogger();
auto iter = platform_enum_map_.find(type);
int* platform_enum) {
ScopeLogger();
- std::multimap<std::string, int> const* def = nullptr;
+ std::map<std::string, int> const* def = nullptr;
PlatformResult result = GetPlatformEnumMap(type, &def);
if (!result) {
return result;
PlatformResult Types::ConvertMetadata(mc_metadata_h metadata_h, picojson::object* metadata) {
ScopeLogger();
- std::multimap<std::string, int> const* metadata_fields = nullptr;
+ std::map<std::string, int> const* metadata_fields = nullptr;
PlatformResult result =
GetPlatformEnumMap(Types::kMediaControllerMetadataAttribute, &metadata_fields);
if (!result) {
namespace extension {
namespace mediacontroller {
-typedef std::map<std::string, std::multimap<std::string, int>> PlatformEnumMap;
+typedef std::map<std::string, std::map<std::string, int>> PlatformEnumMap;
typedef std::map<std::string, std::map<int, std::string>> PlatformEnumReverseMap;
typedef std::function<void(picojson::value*)> JsonCallback;
static const std::string kMediaControllerMetadataAttribute;
static common::PlatformResult GetPlatformEnumMap(
- const std::string& type, std::multimap<std::string, int> const** platform_str);
+ const std::string& type, std::map<std::string, int> const** platform_str);
static common::PlatformResult StringToPlatformEnum(const std::string& type,
const std::string& value, int* platform_enum);