1 /* 2 * Copyright (C) 2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef MEDIA_FOUNDATION_MIME_TYPE_H 17 #define MEDIA_FOUNDATION_MIME_TYPE_H 18 19 namespace OHOS { 20 namespace Media { 21 namespace Plugins { 22 class MimeType { 23 public: 24 static constexpr const char VIDEO_H263[] = "video/h263"; 25 static constexpr const char VIDEO_AVC[] = "video/avc"; 26 static constexpr const char VIDEO_MPEG2[] = "video/mpeg2"; 27 static constexpr const char VIDEO_HEVC[] = "video/hevc"; 28 static constexpr const char VIDEO_MPEG4[] = "video/mp4v-es"; 29 static constexpr const char VIDEO_VP8[] = "video/x-vnd.on2.vp8"; 30 static constexpr const char VIDEO_VP9[] = "video/x-vnd.on2.vp9"; 31 static constexpr const char VIDEO_VVC[] = "video/vvc"; 32 33 static constexpr const char AUDIO_AMR_NB[] = "audio/3gpp"; 34 static constexpr const char AUDIO_AMR_WB[] = "audio/amr-wb"; 35 static constexpr const char AUDIO_MPEG[] = "audio/mpeg"; 36 static constexpr const char AUDIO_AAC[] = "audio/mp4a-latm"; 37 static constexpr const char AUDIO_VORBIS[] = "audio/vorbis"; 38 static constexpr const char AUDIO_OPUS[] = "audio/opus"; 39 static constexpr const char AUDIO_FLAC[] = "audio/flac"; 40 static constexpr const char AUDIO_RAW[] = "audio/raw"; 41 static constexpr const char AUDIO_G711MU[] = "audio/g711mu"; 42 static constexpr const char AUDIO_AVS3DA[] = "audio/av3a"; 43 static constexpr const char AUDIO_LBVC[] = "audio/lbvc"; 44 static constexpr const char AUDIO_APE[] = "audio/x-ape"; 45 46 static constexpr const char IMAGE_JPG[] = "image/jpeg"; 47 static constexpr const char IMAGE_PNG[] = "image/png"; 48 static constexpr const char IMAGE_BMP[] = "image/bmp"; 49 50 static constexpr const char MEDIA_MP4[] = "media/mp4"; 51 static constexpr const char MEDIA_M4A[] = "media/m4a"; 52 static constexpr const char MEDIA_AMR[] = "media/amr"; 53 static constexpr const char MEDIA_MP3[] = "media/mp3"; 54 static constexpr const char MEDIA_WAV[] = "media/wav"; 55 56 static constexpr const char TEXT_SUBRIP[] = "application/x-subrip"; 57 static constexpr const char TEXT_WEBVTT[] = "text/vtt"; 58 static constexpr const char TIMED_METADATA[] = "meta/timed-metadata"; 59 static constexpr const char INVALID_TYPE[] = "invalid"; 60 }; 61 } // namespace Plugins 62 } // namespace Media 63 } // namespace OHOS 64 #endif // MEDIA_FOUNDATION_MIME_TYPE_H 65