2

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.

Manjeet
  • 191
  • 1
  • 14
  • did you figure this out? Doesn't seem to matter what state the player is in. I always have this error. – Andrew Aug 29 '19 at 16:40
  • @Andrew: Which device do you use to run app? – Manjeet Oct 17 '19 at 10:22
  • 2018 Samsung Smart TV – Andrew Oct 17 '19 at 14:29
  • **@Andrew:** I think, this should work fine in real device because I am facing this issue in emulator and when I run my app in real device, it is working properly there. Emulator might not support all feature like real device that's why I am facing this issue in emulator. – Manjeet Oct 21 '19 at 08:35
  • it doesn't work on the emulator or the device for me. Same error on both saying "invalid state" even though the state is "playing". – Andrew Oct 21 '19 at 14:31
  • **@Andrew:** Have you tried given solution which mentioned in answers? If you already tried that, can you please share your sample code and error log? – Manjeet Oct 22 '19 at 04:57
  • Posted a new question here https://stackoverflow.com/questions/58548191/unable-to-change-the-playhead-location-using-samsung-avplay-api – Andrew Oct 24 '19 at 19:46

2 Answers2

2

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).

1

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.

Grabofus
  • 1,924
  • 14
  • 17