Commit Graph

860 Commits

Author SHA1 Message Date
37beb3f9c9 Add a little padding between title/author 2022-09-16 16:29:50 +08:00
899cd406e8 Merge pull request #1204 from omnivore-app/fix/ios16-lookup-menu
Update to handle iOS16 menus
2022-09-16 16:15:46 +08:00
d3099e8611 Update to handle iOS16 menus
On iOS16 the way context menus are built is slightly changed, this
was causing "Look up" to be removed from our menu.
2022-09-16 16:10:40 +08:00
da7ec3f5d4 Remove label top padding as these are spaced now 2022-09-15 17:23:28 +08:00
1a338e8854 Reset the scrub state after seeking 2022-09-15 15:54:39 +08:00
fd2df9f926 Dont scroll the miniplayer when the user is scrubbing audio 2022-09-15 15:54:21 +08:00
e1f28ec189 Remove extra top padding on feedcards, this is applied by the HStack spacing 2022-09-15 15:46:20 +08:00
9c3b9f0523 Dont update the scrub state from the timer
This prevents the slider from jumping back during a seek operation.
2022-09-15 15:18:50 +08:00
fa9780722f Only update nowPlaying data if the timeElapsed is accurately calculated 2022-09-15 14:08:15 +08:00
de73c81345 Pause player before seeking into another player item. fireTimer if seeking within 2022-09-15 14:07:37 +08:00
fcd52cf149 Remove debug 2022-09-15 14:05:32 +08:00
460ba07e30 Update UI after seeking, dont try to detect end of stream using currentTime
This helps with two issues:
- after seeking sometimes you will see the loading spinner even
after audio has resumed.

- sometimes if we are still pulling data we might detect that
we are at the end of the stream.
2022-09-15 13:42:48 +08:00
bc0f2f1b97 Clean up memory handling in the audio controller
Ideally this wouldn't need a ref to the synthesizer either.
2022-09-14 22:10:12 +08:00
01eb7bc451 Make sure we access currentViewer on the main thread 2022-09-14 17:45:29 +08:00
eab6911bcb mask bottom of mini player safe area so list view doesn't peek through there 2022-09-13 08:39:23 -07:00
28826970fc dismiss current reader view when tapping view article from audio sheet 2022-09-13 08:10:04 -07:00
56441b5958 Download audio artwork 2022-09-13 17:06:38 +08:00
e73072e224 Updates after rebasing, implement download for offline audio 2022-09-13 16:03:34 +08:00
9b1ce21f6f remove explicit try call for decoding SpeechDocument 2022-09-13 15:27:48 +08:00
c4152a05a0 create a LinkedItemAudioProperties struct that can be passed to AudioController (instead of passing LinkedItem) 2022-09-13 15:27:48 +08:00
bc9b0b0752 Increase timer interval, better handling of seeking near the bounds of audio 2022-09-13 15:27:48 +08:00
e39888158d Better handling of end of stream detection 2022-09-13 15:27:48 +08:00
ab7d34337f Improve voice changing during playback 2022-09-13 15:27:48 +08:00
73841bc2da Implement voice switching during playback
This assumes voices are approx the same duration, which is
more accurate than rebuilding durations off of the estimates.
2022-09-13 15:27:48 +08:00
f5c5cd76ec When seeking into a new player item make sure we seek to the correct offset 2022-09-13 15:27:48 +08:00
1950e3626c Add 1.1 as a playback rate option 2022-09-13 15:27:48 +08:00
6c2333fd65 Update durations when playback rate changes. Fire timer to update UI 2022-09-13 15:27:48 +08:00
8c4c88a51a Recalculate durations when speed is changed 2022-09-13 15:27:48 +08:00
65c77a9bdf Sort voices alphabetically, add Singapore voice 2022-09-13 15:27:48 +08:00
6c0c8e8d26 Send rate as a string 2022-09-13 15:27:48 +08:00
be2d0e03dd Remove audio info alert 2022-09-13 15:27:45 +08:00
9796646742 Start preloading audio speechfiles, use new domains 2022-09-13 15:26:51 +08:00
5af9ff0e89 Remove unused CachingPlayerItem 2022-09-13 15:26:51 +08:00
8883975979 Use AppStorage for voice and playback rate 2022-09-13 15:26:51 +08:00
8db3b397d7 UI for changing playback rate 2022-09-13 15:26:51 +08:00
c4bbf4f618 Continue naming refactor. Session -> Controller 2022-09-13 15:26:48 +08:00
77e9dc7094 Remove extra spacing at top of fullscreen player 2022-09-13 15:22:09 +08:00
ae5c8269ff Fix typo in string setting secondary voice 2022-09-13 15:22:09 +08:00
1d0b19f909 Full row width tappable area 2022-09-13 15:22:09 +08:00
213cf781a0 Allow voice changing 2022-09-13 15:22:09 +08:00
f7de80f87d Comment out the notification to highlight being spoken items 2022-09-13 15:22:09 +08:00
339745a93b Rename AudioSession to Controller, we should create a smaller class that handles the state of a individual playback session 2022-09-13 15:22:09 +08:00
79ea2c06ee Rename AudioSession to Controller, we should create a smaller class that handles the state of a individual playback session 2022-09-13 15:22:09 +08:00
8a9c1f4100 Fix duration estimation based on word count 2022-09-13 15:22:09 +08:00
66ea008f05 WIP: fetch speech files, show some follow along 2022-09-13 15:22:09 +08:00
a6313f60e0 Updates to streaming audio using new utterances API 2022-09-13 15:22:09 +08:00
2f15a31851 Update to use URLRequest so we can post data 2022-09-13 15:22:09 +08:00
46cb17efb7 messing around with authed URL 2022-09-13 15:22:09 +08:00
0a5e02ec6b WIP: add CachingPlayerItem and switch to AVPlayer for streaming audio 2022-09-13 15:22:09 +08:00
ff6698c12d set linkIsActive on audio session article open 2022-09-12 22:37:03 -07:00