Commit graph

498 commits

Author SHA1 Message Date
mhmdanas
308eac4e13 Use SubtitlesStream#getUrl instead of getURL 2020-08-26 23:04:18 +03:00
Avently
a83a4d1275 Disable starting player service via media button when there is nothing to play (no active play queue) 2020-07-28 21:36:06 +03:00
Avently
d1ef6ed4e1 Renamed files 2020-07-25 09:45:33 +03:00
Avently
c868f7e5ed Removed unused files, translations, styles, settings key 2020-07-25 09:39:42 +03:00
Avently
4764b5c7ad Another part of UI improvements for Android TV
- focus will be hidden right after start of a video; fullscreen works like this too
- back button will not needed to be pressed one more time like before
- prev & next buttons for playqueue will be hidden with play/pause button before video be ready to play
2020-07-25 07:00:53 +03:00
Avently
39de879c32 Android TV: ability to select all buttons in the main player, as well as in the main fragment 2020-07-25 04:14:29 +03:00
Avently
45ed6ec7a5 Quality selector for external playback and better fullscreen mode for old devices 2020-07-24 00:43:09 +03:00
Avently
6f506f17e0 Fixes for Android API <21 2020-07-22 17:19:32 +03:00
Avently
44d21d677b Fixed a situation when background playback could use a video stream instead of an audio stream 2020-07-22 02:20:58 +03:00
Avently
eda6641e3f Better TV support, icons, activity_main refactoring
- on Android TV you'll be able to navigate with D-pad in main fragment and in the player. But not between them for now
- play/pause/next/previous buttons are smaller now
- replaced ic_list with previous version of it
- activity_main looks better which helps with Android TV support
2020-07-22 01:20:30 +03:00
Avently
d6ff15d609 Removed unused line 2020-07-21 01:53:59 +03:00
Avently
5cd7ca5dab AndroidTvUtils -> DeviceUtils 2020-07-21 01:43:49 +03:00
Avently
d0cb338abc Merged the latest changes 2020-07-21 01:37:36 +03:00
Tobias Groza
1f775bbfc7 Merge pull request #3689 from wb9688/next-stream
Remove calls to getNextStream()
2020-07-18 11:59:04 +02:00
wb9688
04ccd2e7f5 Use relatedItems instead of info.getRelatedStreams() 2020-07-15 18:52:36 +02:00
wb9688
158b91e2ec Remove calls to getNextStream() 2020-07-14 21:27:59 +02:00
wb9688
863b8242b7 Use androidx.annotation.NonNull instead of io.reactivex.annotations.NonNull 2020-07-14 21:15:29 +02:00
Avently
b68c655151 Mini player slide to botom fix, buttons size fix 2020-07-14 21:52:55 +03:00
Avently
a6894644d1 Made checkStyle happy 2020-07-14 20:21:32 +03:00
Avently
4aeb2cd795 Small fixes of issues 2020-07-13 23:28:39 +03:00
Avently
aef78ace88 Merged the latest changes 2020-07-13 04:17:21 +03:00
Avently
b99b756435 Marked many (too many) variables as final 2020-07-12 03:59:47 +03:00
wb9688
69431ef0ab Use getNextPage() instead of getNextPageUrl() 2020-07-07 21:03:24 +02:00
Stypox
6db881fc17 Fix audio/video desync caused by floating point cumulative errors 2020-06-30 22:41:09 +02:00
Tobias Groza
38af616e7a Merge pull request #3787 from budde25/fix-popup-queue
Fixes enqueue resuming paused videos
2020-06-27 11:56:08 +02:00
Avently
60fd42dfa3 Changes for review 2020-06-27 06:25:50 +03:00
Tobias Groza
b292c9893d Merge pull request #3752 from Redirion/exoupdate
Update to ExoPlayer 2.11.6
2020-06-26 18:33:53 +02:00
Ethan Budd
561053b46d fixes enqueue resuming paused videos 2020-06-17 22:15:50 -05:00
wb9688
f2d4e462b8 Merge pull request #3704 from Stypox/keep-failed-streams
Do not remove items generating errors form queue
2020-06-15 15:16:26 +02:00
wb9688
7444772ca0 Merge pull request #3437 from TheLastGimbus/fast-rewind-forward-in-background-activity
Fast rewind forward in background activity
2020-06-15 15:06:58 +02:00
TheLastGimbus
26eaffe169 Change to final 2020-06-14 19:52:58 +02:00
TheLastGimbus
9b8a227c41 Add speed button to top bar 2020-06-14 15:16:04 +02:00
TheLastGimbus
528bbb3969 Remove speed buttons from bottom menu 2020-06-14 15:15:38 +02:00
Robin
0f2cd29733 Update to ExoPlayer 2.11.5 2020-06-06 15:29:52 +02:00
Stypox
bc914d4932 Do not remove items generating errors form queue 2020-05-31 14:06:22 +02:00
Stypox
d63b091ec0 Fix checkstyle issues
Also replace all tabs with 4 spaces
2020-05-21 15:39:36 +02:00
Stypox
0c29ab7b6d Use AppCompatResources instead of ContextCompat 2020-05-21 15:39:36 +02:00
Stypox
e16cb7c4d6 Fix pause used instead of play in paused popup player when seeking
Also use `setBackgroundResource` to automatically obtain PNG drawables (from exoplayer)
2020-05-21 15:39:36 +02:00
Stypox
6f29813ebd Readd ic_close and ic_replay PNGs: needed in notifications
The other icons used in notifications are taken from exoplayer's ones: `@drawable/exo_controls_*`
2020-05-21 15:39:36 +02:00
Stypox
c80aba9a88 Use vector drawables instead of PNGs for material icons
For all manually-created images PNG have been kept.
- rename all icon attrs to have a `ic_` prefix
- always use `_24dp` icons, because there is no real difference, since they are vector drawables
- always use the original name found on material.io for icon drawables, as to not create confusion and possibly duplicates. Icon names can still be different from real drawable names, though I have made some of them compliant to this or maybe more meaningul.
- remove duplicate `getIconByAttr()` in ThemeHelper (use `resolveResourceIdFromAttr()`
- use standard icons for `expand_more` and `expand_less` instead of triangles
- use `play_button_outline` instead of custom PNG as play button in VideoDetailFragment (questionable, as there is no shadow anymore)
2020-05-21 15:39:35 +02:00
Stypox
5ede571a12 Merge pull request #3513 from Stypox/exoplayer
Update to ExoPlayer 2.11.4
2020-05-17 22:02:19 +02:00
Tobias Groza
cf1425bb96 Merge pull request #3337 from AioiLight/blocking-gesture-when-touch-from-navbar
Block the gesture when touch it from NavigationBar or StatusBar.
2020-05-09 10:43:15 +02:00
AioiLight
5245ac250d Clean up code
Follow Checkstyle

Move to PlayerGestureListener from VideoPlayerImpl

Update app/src/main/java/org/schabi/newpipe/player/MainVideoPlayer.java

Co-authored-by: wb9688 <46277131+wb9688@users.noreply.github.com>
2020-05-09 10:11:46 +02:00
wb9688
4585c92fbe Merge pull request #3545 from Stypox/kore
Fix Kodi button showing up with unsupported services
2020-05-07 21:44:09 +02:00
Stypox
5ae0ffca23 In player hide kodi button if service unsupported 2020-05-07 21:11:34 +02:00
wb9688
205c5ff2ca Optimize imports 2020-05-01 20:13:01 +02:00
Stypox
f67aef64f7 Update to ExoPlayer 2.11.4 2020-05-01 15:03:54 +02:00
TheLastGimbus
9ae51c0a2b Update progress bar on fast forward/rewind 2020-04-25 15:46:56 +02:00
bopol
1e4e731a6a Better detection of TV devices
Some devices were not detected as TV even though they are
2020-04-25 12:04:44 +02:00
Stypox
6d5f24c360 Fix pause button is not focused on player control activation 2020-04-21 09:25:09 +02:00