I have a simple AVPlayer-based OS X app that plays local media. It has a skip forward and backward feature, based on -seekToTime:. On some media, there is an annoying 3-7 second delay in getting the media to continue playing (especially going forward). I have tried - seekToTime:toleranceBefore:toleranceAfter: , with variable tolerances. No luck.
AVPlayer seekToTime spinning pizza
254 Views Asked by MDF At
1
There are 1 best solutions below
Related Questions in MACOS
- How do I customize NSOutlineView to have border color?
- Force sublime text to use PATH from the shell value
- Do executable files always open a terminal window on MacOS?
- setting OpenGL version in objective-C
- C std library don't appear to be linked in object file
- Cross compile simple standard C program on Linux for Mac
- How to generate request format for WCF web service method for Mac and iPhone
- Bundle Multiple Xamarin apps in one pkg installer
- How to Handle Command Line Prompt from a Cocoa App
- AVFoundation - Process each image separately
- CMYK NSImage get pixel data
- how i get the mac of ibeacon or BLE
- Set JAVA_HOME on Mac
- Finding active IPv6 interfaces under Mac OS (using Python)
- OSX: Why is my launchd agent running my script twice?
Related Questions in PERFORMANCE
- Slow performance on ipad erasing image
- Can Apache Ant be told to cache its XML files?
- What are the pros and cons of the picture element?
- DB candidate as CouchDB/Schema replacement
- python member str performance too slow
- Split a large query (2 days) into pieces to increase the speed in Postgres
- Use GUI displayed results of SQL query vs new queries?
- fastest way to map a large number of longs
- Bash regular expression execution hangs on long expressions
- Why is calling a function so slow in Javascript?
- Performance of element-compare in java collections
- "Capture GPU Frame" in XCode -- iOS only?
- Efficiency penalty of initializing a struct/class within a loop
- Change the rotating speed of the circle when the mouse moves using javascript
- Replace foreach to make loop into queryable
Related Questions in AVPLAYER
- AVQueuePlayer crashes when I try to observe the start of the next video: AVPlayerItem was deallocated with observers
- How to achieve a playback rate of 4.0 with AVPlayer in iOS?
- AVPlayer: AirPlay button shows up in control center even though allowsExternalPlayback is set to NO
- Allow "auto lock" while video is being played
- Current time using avplayer returns wrong values and same values ios
- The application does not switch the tracks in background iOS (AVPlayer)
- How to implement trimming of video which is playing on AVPlayer?
- Swift: Keep playing sounds when the device is locked
- AVPlayerLayer resizing
- Looping video in iOS cause a small pause/flash (MPMoviePlayerController & AVPlayer)
- Creating an Apple Watch Music Remote App
- Closed Captions/Subtitles not working for AVPlayer but are in Safari: HLS
- AVPlayer seekToTime playing from beginning
- Issue with "func observeValueForKeyPath(keyPath : NSString, object : AnyObject, change : NSDictionary, context : Void)" in Swift
- AVPlayer empties buffer when app is in background
Related Questions in SEEKTOTIME
- AVQueuePlayer SeekToTime
- ExoPlayer seekto function does not seek to the specified point but starts from 0
- seekToTime is not working for Live assets in iOS 9
- How to implement the seekto functionality in ionic 4?
- How to play video at exact seek time?
- Android SDK MediaPlayer doesn't seek correctly
- I want to make a sound play starting from the 15th second
- AVPlayer smooth seekToTime
- SeekToTime in AVPlayer stops playing streaming audio, when forward
- Android Internal Storage Video play using VideoView, Can't use seekTo(int)
- AVPlayer seekToTime download an insane amount of media segment files consuming a lot of data
- VideoView SeekTo working smoothly or delay on different devices - Android
- AVPlayer Seek not accurate even with toleranceBefore: kCMTimeZero
- AVPlayer seekToTime methods stopped working on iOS 9
- SeekToTime working smoothly just for forwards, freezy on backwards
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Posting previously solved issue for the record... I noticed that the seekToTime: skipping worked fine when the playback was paused. I immediately (i.e., several weeks later) realized that it might make sense to stop the playback before seeking, then restarting. So far, problem is 100% solved, and it is blazing fast. Might be of some use to people trying to do smooth looping (but I don't know how to trigger the completion handler signaling the end of the loop). Don't know if it works with iOS. Sample code is attached: