Add the available state for streaming
authorEonseokLee <eonseok.lee@samsung.com>
Thu, 28 Mar 2013 01:34:20 +0000 (10:34 +0900)
committerEonseokLee <eonseok.lee@samsung.com>
Thu, 28 Mar 2013 01:34:20 +0000 (10:34 +0900)
Change-Id: I42b907ca3af2e893104f106a6b0b882f681e454b
Signed-off-by: EonseokLee <eonseok.lee@samsung.com>
inc/FMediaPlayer.h
src/FMedia_PlayerImpl.cpp

index fbc4ae2..14fea07 100755 (executable)
@@ -520,7 +520,7 @@ public:
        * Seeks the current playback position of the audio or video content to the specified time. @n
        * The %SeekTo() method works asynchronously. @n
        * Note that a method that works asynchronously must implement a listener. @n
-       * This method only works for the @c PLAYER_STATE_PLAYING, @c PLAYER_STATE_PAUSED, and @c PLAYER_STATE_OPENED(local file/buffer playback only) states of the player. @n
+       * This method only works for the @c PLAYER_STATE_PLAYING, @c PLAYER_STATE_PAUSED, and @c PLAYER_STATE_OPENED states of the player. @n
        * This method changes the playback position as well as the time value. @n
        * In video, it may not change position accurately.
        *
index 4fb0516..b918257 100644 (file)
@@ -965,7 +965,7 @@ _PlayerImpl::SeekTo(long msTime)
        SysTryCatch(NID_MEDIA, r == E_SUCCESS, , r, "[%s] Failed to perform player_get_state operation with 0x%x", GetErrorMessage(r), ret);
 
        SysTryReturn(NID_MEDIA, ((__corePlayerCurState == ::PLAYER_STATE_PLAYING ) || (__corePlayerCurState == ::PLAYER_STATE_PAUSED )
-                       || ((__isLocalData == true) && (__corePlayerCurState == ::PLAYER_STATE_READY ))),       E_INVALID_STATE, E_INVALID_STATE
+                       || (__corePlayerCurState == ::PLAYER_STATE_READY )),    E_INVALID_STATE, E_INVALID_STATE
                        , "[E_INVALID_STATE] Player state is in an invalid state. Current state is %d", __corePlayerCurState);
 
        SysTryReturn(NID_MEDIA, msTime >= 0, r = E_OUT_OF_RANGE, E_OUT_OF_RANGE, "[E_OUT_OF_RANGE] The msTime is not greater than 0");