[MediaPlayer] remove NotSupportedFormat exception (#1854)
authornam <36914158+aferin@users.noreply.github.com>
Thu, 23 Jul 2020 05:59:37 +0000 (14:59 +0900)
committerGitHub <noreply@github.com>
Thu, 23 Jul 2020 05:59:37 +0000 (14:59 +0900)
src/Tizen.Multimedia.MediaPlayer/Player/Player.cs
src/Tizen.Multimedia.MediaPlayer/Player/PlayerError.cs

index 71433a5..3b3e2c2 100644 (file)
@@ -549,7 +549,6 @@ namespace Tizen.Multimedia
         ///     It is not able to assign the source to the player.
         ///     </exception>
         /// <exception cref="UnauthorizedAccessException">Thrown when the permission is denied.</exception>
-        /// <exception cref="NotSupportedFormatException">The format is not supported. (Since tizen 6.0, C# API8)</exception>
         /// <seealso cref="PrepareAsync()"/>
         /// <seealso cref="PrepareAsync(CancellationToken)"/>
         /// <since_tizen> 3 </since_tizen>
index 15c4499..7bc6eee 100644 (file)
@@ -49,7 +49,6 @@ namespace Tizen.Multimedia
         NotSupportedAudioCodec = PlayerErrorClass | 0x0e,
         NotSupportedVideoCodec = PlayerErrorClass | 0x0f,
         NotSupportedSubtitle = PlayerErrorClass | 0x10,
-        NotSupportedFormat = PlayerErrorClass | 0x11,
         NotAvailable = PlayerErrorClass | 0x12
     }
 
@@ -132,9 +131,6 @@ namespace Tizen.Multimedia
                 case PlayerErrorCode.NotSupportedVideoCodec:
                     throw new CodecNotSupportedException(CodecKind.Video);
 
-                case PlayerErrorCode.NotSupportedFormat:
-                    throw new NotSupportedFormatException(msg);
-
                 case PlayerErrorCode.NotAvailable:
                     throw new NotAvailableException(msg);
             }
@@ -190,21 +186,5 @@ namespace Tizen.Multimedia
         {
         }
     }
-
-    /// <summary>
-    /// The exception that is thrown when it is not supported format.
-    /// </summary>
-    /// <since_tizen> 8 </since_tizen>
-    public class NotSupportedFormatException : Exception
-    {
-        /// <summary>
-        /// Initializes a new instance of the NotSupportedFormatException class with a specified error message.
-        /// </summary>
-        /// <param name="message">Error description.</param>
-        /// <since_tizen> 8 </since_tizen>
-        public NotSupportedFormatException(string message) : base(message)
-        {
-        }
-    }
 }