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 static constexpr const char VIDEO_RV30[] = "video/rv30"; 33 static constexpr const char VIDEO_RV40[] = "video/rv40"; 34 35 static constexpr const char AUDIO_AMR_NB[] = "audio/3gpp"; 36 static constexpr const char AUDIO_AMR_WB[] = "audio/amr-wb"; 37 static constexpr const char AUDIO_MPEG[] = "audio/mpeg"; 38 static constexpr const char AUDIO_AAC[] = "audio/mp4a-latm"; 39 static constexpr const char AUDIO_VORBIS[] = "audio/vorbis"; 40 static constexpr const char AUDIO_OPUS[] = "audio/opus"; 41 static constexpr const char AUDIO_FLAC[] = "audio/flac"; 42 static constexpr const char AUDIO_RAW[] = "audio/raw"; 43 static constexpr const char AUDIO_G711MU[] = "audio/g711mu"; 44 static constexpr const char AUDIO_G711A[] = "audio/g711a"; 45 static constexpr const char AUDIO_AVS3DA[] = "audio/av3a"; 46 static constexpr const char AUDIO_LBVC[] = "audio/lbvc"; 47 static constexpr const char AUDIO_APE[] = "audio/x-ape"; 48 static constexpr const char AUDIO_COOK[] = "audio/cook"; 49 static constexpr const char AUDIO_AC3[] = "audio/ac3"; 50 static constexpr const char AUDIO_MIME_L2HC[] = "audio/l2hc"; 51 52 static constexpr const char IMAGE_JPG[] = "image/jpeg"; 53 static constexpr const char IMAGE_PNG[] = "image/png"; 54 static constexpr const char IMAGE_BMP[] = "image/bmp"; 55 56 static constexpr const char MEDIA_MP4[] = "media/mp4"; 57 static constexpr const char MEDIA_M4A[] = "media/m4a"; 58 static constexpr const char MEDIA_AMR[] = "media/amr"; 59 static constexpr const char MEDIA_MP3[] = "media/mp3"; 60 static constexpr const char MEDIA_WAV[] = "media/wav"; 61 static constexpr const char MEDIA_AAC[] = "media/aac"; 62 static constexpr const char MEDIA_FLAC[] = "media/flac"; 63 64 static constexpr const char TEXT_SUBRIP[] = "application/x-subrip"; 65 static constexpr const char TEXT_WEBVTT[] = "text/vtt"; 66 static constexpr const char TEXT_LRC[] = "text/plain"; 67 static constexpr const char TEXT_SAMI[] = "application/x-sami"; 68 static constexpr const char TEXT_ASS[] = "text/x-ass"; 69 static constexpr const char TIMED_METADATA[] = "meta/timed-metadata"; 70 71 static constexpr const char INVALID_TYPE[] = "invalid"; 72 }; 73 } // namespace Plugins 74 } // namespace Media 75 } // namespace OHOS 76 #endif // MEDIA_FOUNDATION_MIME_TYPE_H 77