support iamf-opus in esplusplayer
authordi1028.wu <di1028.wu@samsung.com>
Fri, 5 Jul 2024 07:07:21 +0000 (15:07 +0800)
committerdi1028.wu <di1028.wu@samsung.com>
Fri, 5 Jul 2024 07:07:21 +0000 (15:07 +0800)
include/esplusplayer/elementary_stream.h
include/esplusplayer_capi/stream.h
src/esplusplayer/src/elementary_stream.cpp

index b3f74464c91d148e8150dcd524838e7691840bd9..9034f8bf421d154e58e0e740df51553bea492540 100755 (executable)
@@ -63,10 +63,7 @@ enum class AudioMimeType {
   kAC4,
   kMpegH,
   kFlac,
-  kIAMF_OPUS,
-  kIAMF_AAC,
-  kIAMF_FLAC,
-  kIAMF_LPCM
+  kIAMF_OPUS
 };
 /**
  * @brief   Enumerations for video mime type
index 79400a971ddf4130fa1a5b2cb1bfc7763c184ad6..e9702804d443c521f0c0746cf560a6522e961f38 100755 (executable)
@@ -76,22 +76,7 @@ typedef enum esplusplayer_audio_mime_type {
    * @description Mime type for iamf stream with Opus codec_id
    *  support since version 7.0
    */
-  ESPLUSPLAYER_AUDIO_MIME_TYPE_IAMF_OPUS,
-  /**
-   * @description Mime type for iamf stream with mp4a codec_id
-   *  support since version 7.0
-   */
-  ESPLUSPLAYER_AUDIO_MIME_TYPE_IAMF_AAC,
-  /**
-   * @description Mime type for iamf stream with fLaC codec_id
-   *  support since version 7.0
-   */
-  ESPLUSPLAYER_AUDIO_MIME_TYPE_IAMF_FLAC,
-  /**
-   * @description Mime type for iamf stream with ipcm codec_id
-   *  support since version 7.0
-   */
-  ESPLUSPLAYER_AUDIO_MIME_TYPE_IAMF_LPCM
+  ESPLUSPLAYER_AUDIO_MIME_TYPE_IAMF_OPUS
 } esplusplayer_audio_mime_type;
 
 /**
index 9f79a385f37fbb1316227335a69399450f37fae6..af33d1cfe229436e58b2534e361177de3e480dff 100755 (executable)
@@ -166,18 +166,6 @@ void AudioStream::SetMimeType_(AudioMimeType mimetype) {
       track_.mimetype = "audio/x-iamf-opus";
       break;
     }
-    case AudioMimeType::kIAMF_AAC: {
-      track_.mimetype = "audio/x-iamf-aac";
-      break;
-    }
-    case AudioMimeType::kIAMF_FLAC: {
-      track_.mimetype = "audio/x-iamf-flac";
-      break;
-    }
-    case AudioMimeType::kIAMF_LPCM: {
-      track_.mimetype = "audio/x-iamf-lpcm";
-      break;
-    }
     default:
       track_.mimetype = "unknown";
       break;