[MediaPlayer] Add new API to set video codec type (#5359)
[platform/core/csapi/tizenfx.git] / src / Tizen.Multimedia.MediaPlayer / Player / PlayerEnums.cs
index 024f083..137fc1a 100644 (file)
@@ -14,6 +14,7 @@
  * limitations under the License.
  */
 using System;
+using System.Threading;
 using Tizen.Internals.Errors;
 
 namespace Tizen.Multimedia
@@ -114,7 +115,8 @@ namespace Tizen.Multimedia
         /// <summary>
         /// Prepared.
         /// </summary>
-        /// <seealso cref="Player.PrepareAsync"/>
+        /// <seealso cref="Player.PrepareAsync()"/>
+        /// <seealso cref="Player.PrepareAsync(CancellationToken)"/>
         Ready,
 
         /// <summary>
@@ -133,7 +135,8 @@ namespace Tizen.Multimedia
         /// Preparation in progress.
         /// </summary>
         /// <remarks>In this state, other methods and properties cannot be set.</remarks>
-        /// <seealso cref="Player.PrepareAsync"/>/>
+        /// <seealso cref="Player.PrepareAsync()"/>
+        /// <seealso cref="Player.PrepareAsync(CancellationToken)"/>
         Preparing,
     }
 
@@ -323,4 +326,22 @@ namespace Tizen.Multimedia
         /// </summary>
         NoSyncAndDeinterleave = 0x03,
     }
+
+    /// <summary>
+    /// Specifies the types of a codec for <see cref="Player"/>.
+    /// </summary>
+    /// <seealso cref="Player.AudioCodecType"/>
+    /// <since_tizen> 6 </since_tizen>
+    public enum CodecType
+    {
+        /// <summary>
+        /// An optional flag for using the H/W codec.
+        /// </summary>
+        Hardware,
+
+        /// <summary>
+        ///  An optional flag for using the S/W codec
+        /// </summary>
+        Software,
+    }
 }