*/
int GetHttpStreamingDownloadProgress(void) const;
+/**
+* Seeks the current playback position of the video content to the nearest key frame at the specified time if the content
+* contains key frames.
+* This method works asynchronously with the event listener, IPlayerEventListener::OnPlayerSeekCompleted().
+*
+* @since 2.2
+* @return An error code
+* @param[in] msTime The time in milliseconds to move to the current playback position
+* @c 0 indicates the starting position.
+* @exception E_SUCCESS The method is successful
+* @exception E_INVALID_STATE The given instance is in an invalid state for this method. @n
+* While playing live streaming, this operation returns @c E_INVALID_STATE. @n
+* This method returns @c E_INVALID_STATE, if this method is called again before
+* IPlayerEventListener::OnPlayerSeekCompleted) is called.
+* @exception E_OUT_OF_RANGE The specified time is out of range
+* @exception E_INVALID_DATA The media data is inappropriate for seeking.
+* @remarks
+* - This method only works for the PLAYER_STATE_PLAYING, PLAYER_STATE_PAUSED, and PLAYER_STATE_OPENED states of the player instance.
+* - This method is not guaranteed to work correctly when the content does not have key frames.
+* - This method is faster than @SeekTo() but the seeking accuracy is worse than @SeekTo().
+**/
+result SeekVideoKeyFrameCloseTo(long msTime);
+
+
private:
/**
* The implementation of this copy constructor is intentionally blank and declared as private to prohibit copying of objects.
return curPosition;
}
+result
+Player::SeekVideoKeyFrameCloseTo(long msTime)
+{
+ result r = E_SUCCESS;
+
+ ClearLastResult();
+
+ SysAssertf(__pPlayerImpl != null, "Not yet constructed! Construct() should be called before use");
+
+ r = __pPlayerImpl->SeekTo(msTime, false);
+ SysTryReturn(NID_MEDIA, r == E_SUCCESS, r, r, "[%s] SeekTo failed", GetErrorMessage(r));
+ return r;
+}
+
}} // Tizen::Media