# OHOS::Media::Format ## **Overview** **Related Modules:** [MultiMedia\_MediaCommon](MultiMedia_MediaCommon.md) **Description:** Saves and sets media metadata, such as the media playback duration. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Public Member Functions
Format () |
Default constructor of the Format instance. |
PutIntValue (const std::string &key, int32_t value) |
|
PutLongValue (const std::string &key, int64_t value) |
|
PutFloatValue (const std::string &key, float value) |
|
PutDoubleValue (const std::string &key, double value) |
|
PutStringValue (const std::string &key, const std::string &value) |
|
GetIntValue (const std::string &key, int32_t &value) const |
|
GetLongValue (const std::string &key, int64_t &value) const |
|
GetFloatValue (const std::string &key, float &value) const |
Obtains the metadata value of the single-precision floating-point type. |
GetDoubleValue (const std::string &key, double &value) const |
Obtains the metadata value of the double-precision floating-point type. |
GetStringValue (const std::string &key, std::string &value) const |
|
GetFormatMap () const |
const std::map< std::string, FormatData * > & |