1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2026-05-20 12:22:10 +00:00
Commit Graph

9893 Commits

Author SHA1 Message Date
Profpatsch 6c3f31a721 WIP: integrate onBackPressed flow as callback
This sets up a little JavaFlow wrapper so we can register callbacks on
the back press flow in Java-land.

Inspired by one of the answers in
https://stackoverflow.com/questions/60605176/kotlin-flows-java-interop-callback

Kotlin generates default interface instances, but only if
`-Xjvm-default=all` is set in the compiler flags. The Java IDE
would propose using a lambda, which would fail because the kotlin
compiler would not generate the right ABI without that flag.
2024-12-25 18:33:49 +01:00
Profpatsch 10163e1082 WIP: try to integrate the newplayer a little better
* Should pause the player now if back button is hit.
* Video reloads if a different item is requested.
2024-12-25 18:33:49 +01:00
Profpatsch 0911d1ce7d WIP: initial repository setup for media.ccc streams
This uses the media.ccc.de URL as item-ID and the actual extractor to
fetch the streams.

Now we have a full top-to-bottom integration going, meaning we can
work on the stream selection based on actual data, not just made up
data.
2024-12-25 18:33:49 +01:00
Profpatsch df3b56ed63 WIP: Correctly initialize NewPlayerViewModel
We need to pass the viewModel to the view after inflating our player
for the UI to render.
2024-12-25 18:33:49 +01:00
Profpatsch cf351c28b0 WIP: Comment out old player
This just does an initial commenting pass to remove all references to
the old player from the video fragment, so that it won’t interfere
with FrankenPipe.
2024-12-25 18:33:49 +01:00
Profpatsch 4409a990de WIP: Play a simple media.ccc stream from the video fragment
This barely works, if you click on any video it should start playing a
media.ccc.de stream, but it does not display anything in the video
view yet.
2024-12-25 18:33:48 +01:00
Profpatsch 16b372dece TMP: temporary local gradle changes 2024-12-25 18:13:39 +01:00
Profpatsch c02fb89359 WIP: Inject (a local) NewPlayer into the NewPipe application
This is the basic setup that allows us to inject a NewPlayer instance
into NewPipe. Frankenpipe, rise!
2024-12-25 18:12:55 +01:00
Kostas Giapis 781040efaa Remove ViewPager2 dependency 2024-12-01 22:24:39 +02:00
Stypox 3f7ef49979 NewPipe license is GPLv3-or-later, not -only, in AboutScreen 2024-11-27 22:15:23 +01:00
Stypox dab0148a78 Merge pull request #11750 from Isira-Seneviratne/Fix-image-loading
Fix image loading
2024-11-27 16:50:38 +01:00
Stypox aaf337421d Merge branch 'refactor' into pr11282 2024-11-27 16:20:49 +01:00
Stypox d56eef6ece Use content padding instead of padding on container 2024-11-27 15:59:20 +01:00
Stypox 72f054a4fa Library should not be clickable if spdx is blank 2024-11-27 15:46:39 +01:00
Jie Li 172c3c92ac gradle script to enforce dependencies order 2024-11-26 18:32:44 +00:00
Isira Seneviratne 137ef3fee4 Fix image loading 2024-11-26 10:08:27 +05:30
Jie Li de5d45849f migrated to version catalogs 2024-11-25 23:12:29 +05:30
Stypox a25034b898 Fix toolbar colors in light theme 2024-11-25 04:43:43 +01:00
Stypox ae9e82b2c1 Implement showing libraries and licenses 2024-11-25 04:43:43 +01:00
Stypox a70b38a8e5 Minor updates to some libraries 2024-11-25 03:56:13 +01:00
Stypox 0cff3a6ecd Improve AboutTab spacing 2024-11-24 16:06:21 +01:00
Isira Seneviratne 4e55f1bee6 Merge branch 'refactor' into About-Compose 2024-11-21 21:11:52 +05:30
Stypox cff3834fde Fix setEmptyStateComposable dark theme 2024-11-21 13:17:33 +01:00
Stypox c8b01a06b0 Use empty state view in compose 2024-11-21 13:14:39 +01:00
Stypox 414b1a8344 Remove unused methods in EmptyStateUtil 2024-11-21 13:14:19 +01:00
Stypox 404d9f3fac Use empty state view in a few more places 2024-11-21 12:42:58 +01:00
Stypox 55e4014036 Use custom EmptyStateSpec for bookmark fragment 2024-11-21 12:24:11 +01:00
Stypox 1cd5563b27 All empty states now have the same style 2024-11-21 12:14:40 +01:00
Stypox 1abced992b Use normal colors for empty state view 2024-11-21 12:07:03 +01:00
Stypox 46b9243661 Remove unneeded empty state changes in ChannelFragment 2024-11-21 11:53:48 +01:00
toliuweijing ad72b2cb31 boost error hint color 2024-11-21 11:52:42 +01:00
toliuweijing 8b79d0ee29 Migrate empty_state_view to Jetpack Compose 2024-11-21 11:52:42 +01:00
Stypox b584353f4d Small fixes to code style 2024-11-21 10:52:15 +01:00
Isira Seneviratne d73314b4dd Make App instance variable immutable outside class 2024-11-21 08:09:57 +05:30
Isira Seneviratne 9f4a33c7a8 Fix lint 2024-11-21 06:56:10 +05:30
Isira Seneviratne 3a9540b042 Update app/src/main/java/org/schabi/newpipe/App.kt
Co-authored-by: Tobi <TobiGr@users.noreply.github.com>
2024-11-20 16:04:39 +05:30
Isira Seneviratne ca855cbca0 Migrate to Coil 3 2024-11-20 09:28:20 +05:30
Isira Seneviratne 6a98b1dac7 Rename .java to .kt 2024-11-20 08:44:16 +05:30
Isira Seneviratne 7d4a2836fc Use existing scrollbar theme method 2024-11-16 16:45:35 +05:30
Isira Seneviratne 226b6de34f Merge branch 'refs/heads/refactor' into About-Compose
# Conflicts:
#	app/src/main/java/org/schabi/newpipe/about/AboutActivity.kt
#	build.gradle
2024-11-16 15:41:50 +05:30
Stypox 13585ca0be Avoid drawing surface background twice for comments fragment 2024-11-11 16:15:36 +01:00
Stypox fdf36cbad6 Deduplicate and improve Scrollbar theme 2024-11-11 15:20:38 +01:00
Stypox aea2b7c7f3 Show correct reply count in dialog 2024-11-11 14:58:54 +01:00
Stypox 37d1c784fa Create utilities to copy to clipboard in Compose code 2024-11-11 14:58:54 +01:00
Stypox a92a28517e Use Icons.Default.* instead of vector assets 2024-11-11 14:25:28 +01:00
Stypox 800961c3d7 Unexpand bottom sheet dialog when clicking on a channel 2024-11-11 13:51:24 +01:00
Stypox 9d8a79b0bd Slightly improve comment replies header spacing 2024-11-11 13:34:18 +01:00
Stypox ef56dea817 Fix content color in comment replies fragment 2024-11-11 00:29:29 +01:00
Stypox 23b3835af0 Fix PagingSource for comments
The previous implementation was skipping the first page of comments
2024-11-11 00:16:32 +01:00
Stypox 412e1d602a Better handle unknown values for comment & like count 2024-11-10 23:45:10 +01:00