-
Notifications
You must be signed in to change notification settings - Fork 3.3k
feat: LEAP-1893: LEAP-1900: Add setting to toggle region looping and autoplay #7166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Default value is changed to false to not annoy users. In order to do so AudioUltra view was changed to move provider with settings higher.
✅ Deploy Preview for label-studio-docs-new-theme canceled.
|
✅ Deploy Preview for heartex-docs canceled.
|
Previously if it was after the region or just at the end of it, the cursor was moved to the end of the region, which stops playing if looping is disabled. Now it's always moved to the beginning of the region.
- uniform font size for all controls - increase modal width to fit new settings - adjust paddings for better apearance - use our common tooltips for info icon
- proper ref typing - fix issues - remove font-size from a wrong place - it was overriding sizing params
|
/git merge
|
Hook is moved from LSE to core lib.
…nSignal/label-studio into fb-leap-1893/audio-regions-settings
|
/git merge
|
|
Excellent improvements! And it's great that the hook has been moved to the core library, and now with tests. This was all sorely lacking. I only have doubts about one setting, which is now also persistent, but perhaps that was unnecessary for it. |
|
/git merge
|
|
/fm sync |
|
/fm sync |
…nSignal/label-studio into fb-leap-1893/audio-regions-settings
|
/git merge
|
|
/git merge
|
|
/fm sync |
It happens in a lot of cases, because playhead could be moved to the end of the region and in this case `updateLoop()` pauses the audio if looping is disabled. So we have to explicitly update the current time to the start of the region.
|
/git merge
|
|
/fm sync |
Two new settings:
AudioUltra
view.tsxwas changed to move provider with settings higher so they can be used by both Audio and Controls.Settings are stored in localStorage between sessions.
Improved styles for audio controls:
Fixed styles and types for uikit's toggle and label:
Added
usePersistentStateandusePersistentJSONStatehooks to core lib. Added tests for them.