Reputation: 191
I am using AV player in tizen TV application. When I forward/backward media then I am getting this error "PLAYER_ERROR_SEEK_FAILED" Please help me to solve this issue.
Upvotes: 2
Views: 1198
Reputation: 2034
Be cautious about this part of the docs for seekTo
, jumpForward
, and jumpBackward
:
https://developer.samsung.com/tv/develop/api-references/samsung-product-api-references/avplay-api
During this async operation, the other API would not be allowed. So, the application needs to wait for one of both callbacks( SuccessCallback, errorCallback) before any other API call.
If you execute multiple seeks you must await the previous one to call back.
Upvotes: 1
Reputation: 176
Based on https://developer.samsung.com/tv/develop/api-references/samsung-product-api-references/avplay-api
PLAYER_ERROR_SEEK_FAILED : Failed to perform seek operation, or seek operation called during an invalid state.
You should make sure the player is in a valid state.
Can be called in the following states: "IDLE","READY", "PLAYING" (buffered data is flushed and buffering starts over).
Upvotes: 2