/// 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>
NotSupportedAudioCodec = PlayerErrorClass | 0x0e,
NotSupportedVideoCodec = PlayerErrorClass | 0x0f,
NotSupportedSubtitle = PlayerErrorClass | 0x10,
- NotSupportedFormat = PlayerErrorClass | 0x11,
NotAvailable = PlayerErrorClass | 0x12
}
case PlayerErrorCode.NotSupportedVideoCodec:
throw new CodecNotSupportedException(CodecKind.Video);
- case PlayerErrorCode.NotSupportedFormat:
- throw new NotSupportedFormatException(msg);
-
case PlayerErrorCode.NotAvailable:
throw new NotAvailableException(msg);
}
{
}
}
-
- /// <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)
- {
- }
- }
}