* @exception E_RIGHT_EXPIRED The content right has expired.
* @exception E_RIGHT_NO_LICENSE The content has no license.
* @exception E_RIGHT_FUTURE_USE The content right is for future use.
+ * @exception E_DISPLAY_RIGHT_VIOLATED The display right is not valid for the specific output device. @b Since: @b 2.1
* @see Close()
*/
result OpenFile(const Tizen::Base::String& mediaLocalPath, bool isAsync = false);
* @exception E_RIGHT_EXPIRED The content right has expired.
* @exception E_RIGHT_NO_LICENSE The content has no license.
* @exception E_RIGHT_FUTURE_USE The content right is for future use.
+ * @exception E_DISPLAY_RIGHT_VIOLATED The display right is not valid for the specific output device. @b Since: @b 2.1
* @remarks This method is not thread-safe when @c isAsync is @c false.
* @remarks Input URL should be encoded if there are non-alphanumeric characters in URL.
* @see Close()
* @exception E_RIGHT_EXPIRED The content right has expired.
* @exception E_RIGHT_NO_LICENSE The content has no license.
* @exception E_RIGHT_FUTURE_USE The content right is for future use.
+ * @exception E_DISPLAY_RIGHT_VIOLATED The display right is not valid for the specific output device. @b Since: @b 2.1
* @see Close()
*/
result OpenBuffer(const Tizen::Base::ByteBuffer& mediaBuffer, bool isAsync = false);
PLAYER_ERROR_RIGHT_EXPIRED, /**< The content right has expired */
PLAYER_ERROR_RIGHT_NO_LICENSE, /**< The content has no license */
PLAYER_ERROR_RIGHT_FUTURE_USE, /**< The content right is for future use */
+ PLAYER_ERROR_DISPLAY_RIGHT_VIOLATED, /**< The display right is not valid for the specific output device @b Since: @b 2.1*/
+
};
}} // Tizen::Media
return PLAYER_ERROR_RIGHT_FUTURE_USE;
break;
+ case ::PLAYER_ERROR_DRM_NOT_PERMITTED:
+ return PLAYER_ERROR_DISPLAY_RIGHT_VIOLATED;
+ break;
+
//Sound policy error
case ::PLAYER_ERROR_SOUND_POLICY:
//fall through
return E_RIGHT_FUTURE_USE;
break;
+ case ::PLAYER_ERROR_DRM_NOT_PERMITTED:
+ return E_DISPLAY_RIGHT_VIOLATED;
+ break;
+
default:
return E_SYSTEM;
break;
{
SysTryReturn(NID_MEDIA, pUserData, , E_SYSTEM, "[E_SYSTEM] A system error has been occurred. pUserData is null.");
_PlayerImpl *pPlayerImpl = (_PlayerImpl *)pUserData;
- if (((errorCode == ::PLAYER_ERROR_DRM_EXPIRED) ||
+ if ((((errorCode == ::PLAYER_ERROR_DRM_EXPIRED) ||
(errorCode == ::PLAYER_ERROR_DRM_NO_LICENSE) ||
(errorCode == ::PLAYER_ERROR_DRM_FUTURE_USE) ||
(errorCode == ::PLAYER_ERROR_NOT_SUPPORTED_FILE) ||
(errorCode == ::PLAYER_ERROR_INVALID_URI) ||
- (errorCode == ::PLAYER_ERROR_NO_SUCH_FILE)) &&
- (pPlayerImpl->__isAsync == true))
+ (errorCode == ::PLAYER_ERROR_NO_SUCH_FILE) ||
+ (errorCode == ::PLAYER_ERROR_CONNECTION_FAILED) ||
+ (errorCode == ::PLAYER_ERROR_DRM_NOT_PERMITTED)) &&
+ (pPlayerImpl->__isAsync == true)) && ((pPlayerImpl->__currentState == PLAYER_STATE_INITIALIZED) || pPlayerImpl->__currentState == PLAYER_STATE_CLOSED))
{
pPlayerImpl->HandlePlayerPrepared(errorCode);
}