Commit Graph

35 Commits

Author SHA1 Message Date
Joe 56bd62db80
App-Wide Bitrate Limit (#1147)
* Creation of bitrate selections that mirror Jellyfin-Web. The goal is to eventually allow for these same selections to be available for usage in the Player itself to set the max bitrate per playback session. This App-Wide setting is for things like preserving data (Mobile) or for areas that have perpetually have low bandwidth (AppleTV). These settings currently default to 'Auto' which is the current limit of 360,000,000 bps / 360 mpbs. I have added a spot in BaseItemDTO+VideoPlayerViewModel to get the smaller amount between 360 Mpbs and the App Maximum Setting. This exists so I can go back and update this to get the Minumum between the Player Session max bitrate and the App Setting max bitrate.

Test on iPhone 10S, AppleTV 3rd Gen, and the iPhone 15 Pro via enumulator.

* Fix Bitrate naming (360p vs 480p) and remove the setting nested in a second section.

* Creation of a Maximum setting with 360mbps and an auto that gets the bitrate at playback.

* Remove comments for code where I want to eventually put it for better clarify

* Linting fixes

* Change the Playback Bitrate to an Int from a String since the Bitrate is valuable but the string isn't. Run the SwiftFormat on the maxBitrate function.

* Migrate the settings to their own menu with both the bitrate and the optional test size when auto is used.

* Creation of an enum filterValues function for Bitrate. This way, the selection on the Player Overlay (eventually) can be filtered to only include bitrates that are less than or equal to the App Setting for Maximum Bitrate. This should help prevent confusion / remove bandwidth conflicts.

The eventual Player Overlay setting should never conflict with the App-Wide Setting and should only offer options that are less than the App-Wide Setting.

* Change the videoPlayerViewModel to take parameters instead of defaults. Move the defaults up one level to be called there. Split the bitrate test from the getMaxBitrate to better guard against dividing against 0 and also split out the logic to be easier to read.

Change the PlaybackBitrate filter to always include Auto and, when auto, include ALL bitrates. This filter is not currently used.

* Remove the PlaybackBitrate FilterValues since this is not needed and will be created ad-hoc.

* Update the bitrateTestDuration verbage to better reflect that you're changing the size of the bitrate test and not just increasing the duration. Re-use the existing largest to smallest labels since there isn't a ton of benefit using "Longest to Shortest" so this should re-use existing localization. Comment the Labels.

No functional changes. Only an update to labels.

* Delete the Bitrate.json file but retain the Resources folder.

* Remove Resource Folder.

---------

Co-authored-by: Joe Kribs <joseph@kribs.net>
2024-07-23 06:18:28 -05:00
Dhocking 5334c57c65
Add ability to hide "Recently Added" section at home screen (#1087) 2024-06-12 11:35:01 -06:00
Ethan Pippin 8d6167c00b
Some More Cleanup, Reset User Settings (#1060) 2024-05-17 13:10:40 +09:00
Ethan Pippin 74b8b286c7
User/Server Sign In Redesign (#1045) 2024-05-14 23:42:41 -06:00
Daniel Chick 876ffba417
Enable Swift Symbol Generation for Assets Catalogs (#955) 2024-03-13 14:37:03 -06:00
Ethan Pippin a645444f25
Refactor `PosterButton` and libraries, good `UICollectionView`s, proper orientation handling, and more (#905) 2024-03-11 08:09:30 -06:00
Ethan Pippin b038f05848
Update 2024 headers (#951)
* update header

* the rest after upgrading
2024-01-13 15:13:44 -07:00
Sylvain CECCHETTO 667d48b0e9
Handle app phases (auto pause/play on enter background/active phase) (#831)
There's some leftover stuff like adding the `scenePhase` environment variable but I'll get that sometime.
2023-10-10 20:54:47 -06:00
Ethan Pippin a08a92e98a
New Year, New Video Player + Other Goodies (#593) 2023-04-20 09:33:51 -06:00
Sulabh Bista 06044e8fb5
Adds "use fmp4" experimental option (#623) 2022-11-03 13:17:47 -06:00
Ethan Pippin fb38394a43
iOS/iPadOS - User List Images (#586) 2022-09-14 20:44:28 -06:00
Ethan Pippin f92edb83fb
iOS/iPadOS - Refactor Filter Selection (#548) 2022-09-01 23:29:52 -06:00
Ethan Pippin ce38efb3ec
Proper Library Handling (#543) 2022-08-29 20:29:24 -06:00
Ethan Pippin 8181db13de
iOS/iPadOS - Landscape/Thumb Posters (#526) 2022-08-18 11:00:33 -06:00
Ethan Pippin a9f09edd81
Navigation and Item Overhaul (#492) 2022-08-05 10:54:40 -06:00
Ethan Pippin cfb3aa1faa
No Tab Characters and Before First for Argument and Parameter Wrapping (#482) 2022-07-16 07:46:25 -06:00
jhays 28e8a99729 Live TV settings header 2022-03-26 15:43:10 -05:00
jhays 4bea0ddf43 tv settings, channel item improvements 2022-03-26 00:22:26 -05:00
Min-Yih Hsu e760a586d7 Add an option to switch between flatten/grouped library view
By default, a library shows its items in a flatten view. This patch
further adds an option that allows users to show items grouped in their
own folders as well.
2022-01-28 11:04:37 +08:00
Ethan Pippin e51f4acc72 localize 2022-01-20 23:04:15 -07:00
Ethan Pippin e1763390cc tvOS version in basic app settings 2022-01-20 22:57:40 -07:00
Ethan Pippin 1a7bef0579 lint 2022-01-20 22:47:43 -07:00
Ethan Pippin efa69984ac implement about view iOS and version tvOS 2022-01-20 22:47:33 -07:00
Ethan Pippin 961f87d3c7 add back experimental native player 2022-01-19 16:11:06 -07:00
Ethan Pippin 13f457f52a allow force direct play as a temporary measure 2022-01-15 13:01:42 -07:00
Ethan Pippin 5b9521caaa begin moving things to customize settings 2022-01-13 23:26:06 -07:00
Ethan Pippin 143836a26c tvOS, fix seasons defaults, and localize 2022-01-11 23:21:03 -07:00
Ethan Pippin f02c52f20a lint 2022-01-10 15:51:24 -07:00
Ethan Pippin 057beca0ff localize 2022-01-10 15:48:29 -07:00
Ethan Pippin e12da2cf07 format merge 2022-01-10 13:34:03 -07:00
Ethan Pippin 071d07d5ff Merge branch 'main' into swiftformat-third-times-the-charm 2022-01-10 13:31:04 -07:00
Ethan Pippin 4298062ca3 swiftformat 2022-01-10 12:28:03 -07:00
koen a94ddd1d36 Added subtitle sizes in tvOS 2022-01-10 17:46:25 +01:00
Ethan Pippin d832b2b8c4 Merge branch 'main' into update-project-names 2022-01-07 11:10:20 -07:00
Ethan Pippin 73a3f2fcdc rename jellyfinplayer to swiftfin 2022-01-07 11:05:54 -07:00