0 Replies
      Latest reply on Jan 28, 2020 1:37 AM by Manideep D
      Manideep D Level 1 Level 1 (0 points)

        https://stackoverflow.com/questions/59944060/avplayer-seektotime-api-buffer-status-issue

         

        Working Case

         

                            Currently I'm working on player app. I have to continue playback in no network scenario by playing buffered data(Player is taking care).We have three key observers ("playbackBufferEmpty","playbackLikelyToKeepUp","playbackBufferFull")which will notify us wether there is buffer available and player can able to play further. When there is no network AVPlayer started playing locally buffered data. When we jump to particular position then also player is playing if buffer is available.

         

         

        Not working Case

         

                  Problem is in no network case even when buffer is available and if I call the API "seekToTime" then player is giving wrong value. First it is showing "bufferEmpty" and "notlikelytoKeepUp" and again it is giving buffer available and "likelytoKeepUp". We tried solve this using "loadedTimeRanges but this is working only for VOD content and for live it is giving start time is always zero.If any one faced same issue or having knowledge regarding this please help us out. Would be more helpful if I get some forum links.