Commit Graph

378 Commits

Author SHA1 Message Date
Arkadiusz Fal
815d0b3ae8 Cancel loading assets on switching backend 2022-12-04 13:32:26 +01:00
Arkadiusz Fal
61d235780d Various minor fixes 2022-12-04 13:32:25 +01:00
Arkadiusz Fal
ccded28468 Improve bookmarks loading 2022-12-04 13:32:25 +01:00
Arkadiusz Fal
2c004b81fe Close item if could not be opened 2022-12-04 13:32:25 +01:00
Arkadiusz Fal
ef1f95a3ad Fix ignoring loaded video details 2022-12-04 13:32:25 +01:00
Arkadiusz Fal
80d8d66986 Local videos fixes 2022-12-04 13:32:24 +01:00
Arkadiusz Fal
c821285664 Fix crashes when using mpv 2022-12-04 13:32:23 +01:00
Arkadiusz Fal
01d8e28d7c Add more playback rates for MPV 2022-12-04 13:32:23 +01:00
Arkadiusz Fal
a44cce462a Preserve playback rate between restarts 2022-12-04 13:32:23 +01:00
Arkadiusz Fal
cb81a687bc Improve EOF handling with MPV 2022-12-04 13:32:22 +01:00
Arkadiusz Fal
6be5342183 Fix possible crash 2022-12-04 13:32:22 +01:00
Arkadiusz Fal
402d1a2f79 Opening videos by URL and local files 2022-12-04 13:32:22 +01:00
Arkadiusz Fal
1fe01808a4 Add demo instance, remove public manifest 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
a086a0f440 Use Swift 5.7 if-let style 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
3273032ffb Fix #305 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
a7a3e0827d Revert "Improve setting audio session"
This reverts commit eedc8f32d1.

Fix #307
2022-10-27 18:03:57 +02:00
Arkadiusz Fal
01601176dd Add option "Keep last played video in the queue after restart" 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
14b0316724 Add back Shuffle All and fix Play All 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
1744210615 Fix optional use 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
4f8ac1eadb Minor fixes 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
5b72ad931b Improve rotation 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
f607e6e276 Model improvements 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
df96c2dba0 Fix updating playing status 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
db98124de5 Model improvements 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
6643208579 Change aspect ratio handling with MPV 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
b8380b2528 Minor fixes 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
f5016cc961 Model improvements 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
0d3ccc00ce Model improvements 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
b220f212df Revert "Fix drawing state issues"
This reverts commit 97149df71c.
2022-10-27 18:03:57 +02:00
Arkadiusz Fal
ba07c410f5 Fix respecting restart playing videos setting 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
3a05462965 Music mode controls layout improvements 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
14cb1958d8 Fix drawing state issues 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
d5ffc6554b Fix presenting player default value 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
9419d504dc Add gesture sensitivity setting 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
e444dc3c79 Improve seek gesture 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
d5f8ad4eec Fix updating now playing info with mpv on tvOS
Other minor tvOS fixes
2022-10-27 18:03:57 +02:00
Arkadiusz Fal
0f7d826a3e Controls layouts, gestures and settings 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
5b785cc9c2 Fix timeline view time padding 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
1cf37e5a00 Improve setting audio session 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
60f38a80aa Improve PiP
Fix #186
Fix #196
2022-10-27 18:03:57 +02:00
Arkadiusz Fal
fc7052a7fa Fix orientation on iOS 16 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
5c038b2aa7 Add playback mode menu in AVPlayer on tvOS 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
08ed810b9e Animations improvements 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
5f50797b54 Controls updates fixes 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
9ca905e5c7 Performance improvements 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
868883dc45 Add "Always use AVPlayer for live videos" option 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
a22d953a6c Fix updating UI on main thread 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
256bbd52a7 Extend available streams formats list to AVPlayer 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
d5b4b6baac Force seek only on HLS 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
ae9b23b9e7 Bring AVPlayer back to tvOS 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
48e616b301 AVPlayer background music mode 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
b5f8a0fba2 Minor performance improvement 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
c3e2e5c258 Fix updating system controls playback status on macOS 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
6c6ba19df4 PiP improvements 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
eeda7a5c6e Don't switch to MPV after closing PiP 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
fa76f726c5 Show asset loading error from AVPlayer 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
a222c722c3 Fix applying video player size on iOS 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
3a508b98ab Fix player instance setting (fix #260) 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
2edab536a6 Minor PiP improvement 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
dcfd24e376 Minor changes 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
a776b06fc6 Clear system controls after closing item 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
ac9abaec5a Quality profiles 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
60a52bc12e tvOS layout improvements 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
9a958113c4 Minor performance improvements 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
c51b9dd8e8 Code style change 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
cf14ff51c5 Fix managing screen saver on macOS
Fix #245
2022-10-27 18:03:57 +02:00
Arkadiusz Fal
e609e90165 Improve AVPlayer performance
Fix updating aspect ratio

Fix #170
2022-10-27 18:03:57 +02:00
Arkadiusz Fal
a347474437 Hide keyboard on navigation 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
bcc1d5aeaa Improve player transitions 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
bc4b5fefe8 Lower network state update frequency 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
0365369dcd Add setting "Rotate to portrait when exiting fullscreen" 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
8e2c30bf00 Add setting "Close player when closing video" 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
5f5bd37bd4 Improve fullscreen animation 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
152a79d44f Improve PiP close animation 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
a0088e5404 Add server error message details (fix #221) 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
e6baaa519a Live streams fix (fix #174, #175) 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
827c64719c Add option to disable proxying video streams for Invidious 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
6ce9ed3063 Fix replaying item 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
2de6df9899 Better UI for autoplay 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
0716602e3f Minor fixes 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
1329bef2f9 Aspect ratio fixes 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
b6c65f2325 Add setting for controls center buttons 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
fc175be76b Lock orientation button 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
ebe3ba9ed5 Playback modes 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
f0b8e7f655 Details panels in controls 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
1e21c50b5d Aspect ratio improvements 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
6c71cd72b1 Player layout fixes 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
36363628d4 Add MPV logs export 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
d8a699a4eb Enable mpv drawing in simulator 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
e56ab3804e CC support with Invidious and MPV 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
11ef8c4dfc Fix handling EOF with MPV (#201) 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
41fb021b64 Add MPV cache advanced settings 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
f10aa1abd9 Add "Pause when entering background" option (#198) 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
8358dd50aa Video loading errors reporting 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
dc346f6c25 Replace repeating timer implementation 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
283d89b5a9 Fix another crash 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
029f19ba0b Fix crash 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
a02eb2b168 Fix crash on unloadable history items 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
97e9889682 Minor tvOS controls and remote improvements 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
f2c79a941e Update artwork of AVPlayer using URLSession 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
ba57ecb965 Disable hardware decoding on Intel 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
8d3bbb34d6 Update artwork using URLSession 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
539869cdbb Fix toggling player view 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
bc0ed93e87 Fix updating controls buttons status 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
abdb6d6512 Fix showing restore segment button 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
d330771fef Minor tvOS layout fixes 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
fe94d35af0 Improve queue details loading 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
17787fa69c Add setting for closing player after playing last item (fix #98) 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
c940fb3198 Minor UI changes 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
7b09805b81 Improve network state updates 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
321c265a11 Player controls UI changes
WIP on controls

Chapters

working

Add previews variable

Add lists ids

WIP
2022-10-27 18:03:57 +02:00
Arkadiusz Fal
9c98cf9558 Disable MPV drawing in simulator 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
f367fe8728 Improve data parsers 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
b88adca781 Add buffering and cache length to stats 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
15cdde17a6 Improve performance and add statistics for MPV 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
81b8cbd5f1 Add dropped frames counter 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
0c6ddc3dae Improve MPV performance 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
7a6698897a Minor controls improvements 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
cb89c4d53d Fix orientation lock when closing player 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
574df016f3 Fix #163 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
c2301862f2 Fix #162 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
d659063897 Update watch history using background context 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
dbffa4ae08 Fix setting video mode on MPV 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
0ecc271e70 Minor layout fixes 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
1855a57946 Fix mpv initialization on macOS 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
35fd392307 Add initial version of music mode 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
ef26f96f66 Minor SponsorBlock fix 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
208ba623e5 Improve MPV loading commands 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
c0c9967bfd Don't draw player when in background 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
ba79a3b664 Improve animations 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
48ba498183 Load audio and video together with one command with MPV 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
4f1520a6ce Minor fixes 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
ab8549e103 Minor improvements 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
0ad350a6b5 New channel navigation 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
c5af865ffe Add buttons to next video and restart video (fix #106)
Previous video requires rebuilding queue a little, maybe in the future
2022-10-27 18:03:57 +02:00
Arkadiusz Fal
d07b82a21b Don't push MPV to play HLS on changing backends
It takes longer to load than WEBM
2022-10-27 18:03:57 +02:00
Arkadiusz Fal
9abba2d19c Add Open in PiP option (fix #137) 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
d4a5545db6 Minor improvements 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
71de78113d Fix orientation (#121) 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
c48d478f64 Minor improvements 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
78d7693128 Player overlaying other views and swipe gesture (fix #44, #130) 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
3d015f2298 More controls improvements 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
e3cf77e928 Minor player controls improvements (fix #94) 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
613f874c42 PiP improvements 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
bf46c36eca Don't skip segments that start before 4 seconds
To minimize buffering
2022-10-27 18:03:57 +02:00
Arkadiusz Fal
bdc83a7e7c Fix #126 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
0b274f92bd Prefer VP9/WEBM over H.264/MP4 (fix #128) 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
acf9af936a Add PiP for iOS 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
3e029f631c Fix rate button 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
52df6bf76e Fix using Watch history in player queue 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
51b5c5709a Throttle SponsorBlock seek 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
c4fd6aca24 Add rate change selector 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
d58ec0684c Restore last played item into queue only if it's not in there yet 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
0e1192bb03 Improve subscriptions count
Piped API now includes it in the streams response, no need for separate
query
2022-10-27 18:03:57 +02:00
Arkadiusz Fal
f29ef8907f Fix #86 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
57d00053d8 Improve EOF handling 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
9fc4638298 Limit formats available to AVPlayer 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
9edcf66557 Fullscreen handling changes 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
fadffca69f Fix optional 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
cf3fa3871b Controls fixes 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
fa91367b3d tvOS fixes 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
2e7cbda5dc Close fullscreen and restore portrait on closing player 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
61054862d2 Improve streams quality settings 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
67723f4624 Minor improvements 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
180bace38c Add toggle for dislikes 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
bd8966735f Minor fixes 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
b22d75742e Add ReturnYoutubeDislike API 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
79118ff7e2 Fixes for MPV in macOS 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
d32b38c352 Fix EOF handler 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
4081c65c34 Minor improvements 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
ae861bce65 Prevent multiple seeks 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
70ea098378 Add Now Playing info center updates 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
31a28a7cbd Hello, mpv! 🎉 2022-10-27 18:03:57 +02:00
Arkadiusz Fal
b70697e1be Improve subscriptions count
Piped API now includes it in the streams response, no need for separate
query
2022-04-16 20:05:20 +02:00
Arkadiusz Fal
c8fa972a61 Hide player on video end only on tvOS 2022-03-26 15:12:06 +01:00
Arkadiusz Fal
a98b4eac83 Fix selecting best quality stream (fix #54) 2022-01-24 22:23:10 +01:00
Arkadiusz Fal
a04827cc56 Fix restoring queue 2022-01-09 16:38:05 +01:00
Arkadiusz Fal
f29dc792c2 Fix player controls progress bar warning 2022-01-06 17:47:07 +01:00
Arkadiusz Fal
e159bb772c Improve macOS Big Sur blur effect 2022-01-06 17:00:58 +01:00
Arkadiusz Fal
8a74938b98 Improve windows handling on macOS 2022-01-06 16:35:45 +01:00
Arkadiusz Fal
00778b585f Add iOS options for handling landscape fullscreen (fixes #38) 2022-01-02 22:38:56 +01:00
Arkadiusz Fal
04df9551ba Add Play/Shuffle All for playlists (fixes #39)
Add Remove All from queue button on tvOS
2022-01-02 20:46:02 +01:00
Arkadiusz Fal
149607efbc Fix reporting player item duration to Now Playing 2021-12-29 20:20:09 +01:00
Arkadiusz Fal
89957e3b56 Better UI handling for loading video details (fixes #46) 2021-12-29 19:55:41 +01:00
Arkadiusz Fal
ab174c73fd Extract progress view, show video details loading 2021-12-29 19:39:38 +01:00
Arkadiusz Fal
ac1c6685a1 Improve history, resume videos, mark watched videos (fixes #42) 2021-12-26 23:35:44 +01:00
Arkadiusz Fal
18d6000976 Fix skipping intro (should not happen when changing stream) 2021-12-20 00:39:45 +01:00
Arkadiusz Fal
ea90f650d8 Remove unused code, minor style changes 2021-12-20 00:36:12 +01:00
Arkadiusz Fal
61a4951831 Layout and PiP improvements, new settings
- player is now a separate window on macOS
- add setting to disable pause when player is closed (fixes #40)
- add PiP settings:
  * Close PiP when starting playing other video
  * Close PiP when player is opened
  * Close PiP and open player when application
    enters foreground (iOS/tvOS) (fixes #37)
- new player placeholder when in PiP, context menu with exit option
2021-12-19 18:17:04 +01:00
Arkadiusz Fal
cef0b2594a Better loading and handling streams 2021-12-19 17:56:47 +01:00
Arkadiusz Fal
23e2e216db Start playing after video intro instead of seeking from beginning 2021-12-17 21:02:15 +01:00
Arkadiusz Fal
d7058b46d3 Fix updating player item duration for live streams 2021-12-17 21:01:18 +01:00
Arkadiusz Fal
c4ca5eb4c7 Show channel thumbnail in player 2021-12-17 21:01:05 +01:00
Arkadiusz Fal
de09f9dd52 SponsorBlock segments loading improvement 2021-12-17 20:55:52 +01:00
Arkadiusz Fal
62bff9283c Faster replacing player item 2021-12-06 19:12:02 +01:00
Arkadiusz Fal
82ea8733ec Fix crash when video thumbnail cannot be loaded (fixes #28) 2021-12-05 18:31:35 +01:00
Arkadiusz Fal
1f495562fc Comments improvements
* Show text when there is no comments or comments are disabled
* Show progress indicator for loading comments/replies
* Improve layout of icons and text spacing
2021-12-05 18:31:33 +01:00
Arkadiusz Fal
19a3f08336 Comments (fixes #4) 2021-12-04 20:57:09 +01:00
Arkadiusz Fal
19b146c6ad Close current video (fixes #15) 2021-12-02 21:19:10 +01:00
Arkadiusz Fal
5ef89ac9f4 iOS 14/macOS Big Sur Support 2021-11-30 19:01:08 +01:00