I'm developing a video app and I want to implement a video seeker/scrubber just like in QuickTime where it displays small thumbs and I can seek by sliding my finger on the Touch Bar smoothly where it also displays the current progress in the video. I've seen NSScrubber class but it just displays a horizontal list of items. I can generate assets for specific times in video and display them but I need the exact functionality that QuickTime has. Is that bar something built in, or is it completely custom that I should build from scratch?
How to implement QuickTime-like video seeker/scrubber for Touch Bar in macOS?
203 views Asked by Can Poyrazoğlu At
1
There are 1 answers
Related Questions in MACOS
- Error installing Nativescript on Mac M2 Sonoma 14.4.1
- macOS - Most secure way of a GUI SUDO_ASKPASS
- When using onDrag in SwiftUI on Mac how can I detect when the dragged object has been released anywhere?
- Why does Hugo generate different taxonomy-related HTML on different OS's?
- ZSH function parameters conundrum
- how to make read only file/directory in Mac writable
- macOS BigSur - Unable to run bundled php version or brew php 8
- 9 Digit Addresses in Hexadecimal System in MacOS
- MacOS Bash-Script: while read p and echo
- How to make a range for tail rows on a categorized table in Numbers with JXA scripts?
- Cannot build a basic project with curl on Mac (M2) for Raspberry Pi Pico
- How to recover deleted files from create vite react project
- Can't run built SFML project from Xcode template
- React Native - RealmJS - Linker command failed with exit code 1
- How can I manually add a keyboard shortcut to a Shortcut Action Service directly via the system files, without going through the System Prefs GUI?
Related Questions in COCOA
- In what context can we use an unqualified #selector() expression in Swift?
- How can I trigger macOS system gamepad API based on a value received from iOS app through core bluetooth
- Using sort descriptors in Outline View
- NSTableView to NSOutlineView Drag & Drop not accepting drop
- How to remove horizontal line in bottom of section NSTableView?
- CGSRegionRef: How is an arbitrary region represented as union of rects?
- Listen for Touch Events on MacOS (Trackpad)
- Window "yanks" when moving
- Writing NSFilePromiseProviders to pasteboard blocks app on quit
- Basic ImGui program doesn't render, leaks memory and crashes
- NSTokenField suggestion using context menu in swift
- How to link multiple text views to a single text storage in TextKit 2
- I would like to know why I’m not getting IBOutlets connected in an App’s window
- How to make a custom event loop in Cocoa?
- Why is restoreWindow(withIdentifier:state:) called after applicationDidFinishLaunching(_:)?
Related Questions in MACOS-HIGH-SIERRA
- How can I use VS Code on versions of macOS that are not supported by the latest version of VS Code?
- Unable to serve Jekyll website locally on macOS High Sierra with Ruby 3.2.2: SASS error
- "No matching distribution found for mediapipe." on macOS High Sierra python3.11.4 pip 23.2.1
- How to Fix 'mvn: command not found' Error When Installing Apache Maven 3.0.5?
- reVC Compiling fails under OS X 10.13.6, refers to system's OpenGL.framework
- Segmentation fault 11 when using Anaconda with all IDEs Jupyter Notebook, Spyder etc. Mac OSX 10.13.6
- dyld: Symbol not found
- Is it possible to install Node.js on macOS High Sierra Version 10.13.6? This is the latest version my mid 2014 Macbook Pro can support
- dyld: lazy symbol binding failed: Symbol not found: ____chkstk_darwin macOS High sierra 10.13.6
- XDebug and macOS High Sierra
- Why can't safari open the browser version of Jupyter notebook? (JupyterLite)
- MongoDB is not working on Mac High Sierra
- FakeSMTP crashed unexpectedly
- AppleScript code works on High Sierra, but not on Monterey
- How do I fix this error in the algorithm header file?
Related Questions in NSTOUCHBAR
- Conversion from Swift 3.0 to 4
- NSTouchBar not releasing last touched view
- How to open .nib file?
- SwiftUI equivalent of popoverTouchBar and pressAndHoldTouchBar
- Knowing when NSPopoverTouchBarItem will show its collapsed view
- How can I use NSTouchBar in SwiftUI MacOS App?
- Is it possible to add a scrollable list of buttons to the Touchbar using the Catalyst API?
- Change touch bar settings programmatically via Terminal in MacOS High Sierra
- Allow user customization of Touch Bar in macCatalyst
- How to simulate a key press in NSTouchBar with NSButton?
- Hide NSTouchBar button
- NSTouchBar integration not calling
- Is it possible to display Extension information on Google Chrome Mac TouchBar? if not, what about network calls on the touchbar?
- NSScrubber pan animation end notification
- Unable to update NSTouchBar programmatically
Related Questions in MACBOOKPRO-TOUCH-BAR
- Mac touchBar in vscode doesn't have a toggle breakpoint key
- PyVelest.py Compilation on MacBook Pro M2 Running Python 2.7: _GEOSArea issue
- Handle Touch-bar volume and brightness slider
- Flutter Hive throws TypeAdapter Error typeID: 0
- Macbook M1 error with Python Azure function
- kishankumar@KISHANs-MBP ~ % ionic -v zsh: command not found: ionic kishankumar@KISHANs-MBP ~ %
- How to show tkinter buttons in mac touch bar 2020
- Conversion from Swift 3.0 to 4
- I am trying to run postman collection with newman on Macbook but getting error
- .Net Dockerizing excluding build stage in the dockerfile
- Eclipse 2022-09 Icon in the dock has an error in it on MacBook M1
- How to change directory in my terminal using python
- Java UnsatisfiedLinkError: Unable to open file
- I want to use vba to insert photo into cell in excel for macbook
- How do we detect the "keyDown/keyPress" events for Macbook Pro touch bar keys?
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?
Popular Tags
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)
I was approaching it the wrong way. I've had an
AVPlayerthat I was controlling myself with its layer added manually into the hierarchy. I've switched to usingAVPlayerView, which provided the seek/scrub functionality out of the box. The only culprit was that it was replacing the entire touch bar (where I had some other buttons too).I've overridden view controller's
makeTouchBarmethod (every resource pointed out to using window controller's method instead of view controller's, which, in my case, wasn't working and the method wasn't even called on window controller even though the touch bar was tied to window controller, but it was called and worked perfectly on view controller) and added an other items proxy:And voila! It works perfectly now, with both my custom touch bar buttons and video player's seek/scrub bar.