{"18", MC_CONTENT_RATING_18_PLUS}, {"19", MC_CONTENT_RATING_19_PLUS}
};
+const common::PlatformEnum<mc_content_type_e> MediaControllerContentTypeEnum {
+ {"IMAGE", MC_CONTENT_TYPE_IMAGE},
+ {"MUSIC", MC_CONTENT_TYPE_MUSIC},
+ {"VIDEO", MC_CONTENT_TYPE_VIDEO},
+ {"OTHER", MC_CONTENT_TYPE_OTHER},
+ {"UNDECIDED", MC_CONTENT_TYPE_UNDECIDED}
+};
+
PlatformResult ConvertPlaybackState(mc_playback_h playback_h, std::string* state) {
ScopeLogger();
typedef std::function<void(picojson::value*)> JsonCallback;
-
namespace types {
common::PlatformResult ConvertPlaybackState(mc_playback_h playback_h, std::string* state);
common::PlatformResult ConvertContentAgeRating(mc_playback_h playback_h, std::string* state);
common::PlatformResult ConvertPlaybackPosition(mc_playback_h playback_h, double* position);
common::PlatformResult ConvertMetadata(mc_metadata_h metadata_h, picojson::object* metadata);
+common::PlatformResult ConvertContentType(mc_playback_h playback_h, std::string* contentType);
extern const common::PlatformEnum<mc_server_state_e> MediaControllerServerStateEnum;
extern const common::PlatformEnum<mc_playback_states_e> MediaControllerPlaybackStateEnum;
extern const common::PlatformEnum<mc_meta_e> MediaControllerMetadataAttributeEnum;
extern const common::PlatformEnum<mc_repeat_mode_e> MediaControllerRepeatModeEnum;
extern const common::PlatformEnum<mc_content_age_rating_e> MediaControllerContentAgeRatingEnum;
+extern const common::PlatformEnum<mc_content_type_e> MediaControllerContentTypeEnum;
} // namespace types