Yingwei Zheng
f9cdb8e0cf
Fix a typo
2023-08-16 22:02:12 +02:00
Yingwei Zheng
86f326bb1d
Refactor database migration test and string trimming
2023-08-16 22:02:12 +02:00
TobiGr
b7d0198743
Fix database migration and string trimming
...
Co-authored-by: Yingwei Zheng <dtcxzyw@qq.com>
2023-08-16 22:02:12 +02:00
TobiGr
8ef6481017
Trim search string and remove duplicate records from the database
...
Co-authored-by: Yingwei Zheng <dtcxzyw@qq.com>
2023-08-16 21:26:35 +02:00
TobiGr
387a42316a
Fix some sonar warnings and make some smaller improvements
2023-08-14 23:09:50 +02:00
TobiGr
2ab4c1ac68
Display "Unknown quality" if quality is unknown and not MediaFormat name
2023-08-14 23:06:32 +02:00
TobiGr
c603a5519e
Add tests for new methods retrieving MediaFormats
...
Fix failing tests
2023-08-14 23:06:32 +02:00
TobiGr
4389889698
Retrieve MediaFormat for streams that could not be extracted by the extractor
2023-08-14 23:06:32 +02:00
TobiGr
2e42298daf
Rename StreamSizeWrapper to StreamInfoWrapper
2023-08-14 22:48:39 +02:00
Stypox
e2bb7b42e8
Update app/src/main/java/org/schabi/newpipe/fragments/list/BaseListInfoFragment.java
2023-08-06 10:07:13 +02:00
TobiGr
2839babfb3
Adjust empty state message for ListInfoFragments depending on Info stream type
...
Show "no streams" for SoundClound.
Show "no live streams" for MeidaCCCLiveStreamKiosk.
Otherwise show "no videos"
2023-08-05 03:50:28 +02:00
TobiGr
d1026176bd
Fixed some Sonar warnings
2023-08-03 12:02:08 +02:00
J-Stutzmann
f624228500
Made audio-focus calls respect mute state.
2023-08-02 23:44:23 -04:00
TobiGr
ad8d153808
Ignore false positive inspection
2023-08-02 20:44:30 +02:00
TobiGr
6fe07cd708
Replace settings migration with automatic check for device blacklist version
2023-07-31 23:00:54 +02:00
TobiGr
33c1693720
Disable media tunneling by default on new devices
...
Sony BRAVIA_VH1, BRAVIA_VH2, BRAVIA_ATV2, BRAVIA_ATV3_4K
Phillips 4K (O)LED TV (PH7M_EU_5596)
Panasonic 4KTV-JUP (TX_50JXW834)
Bouygtel4K (HMB9213NW)
2023-07-29 22:08:51 +02:00
TobiGr
829b36a9cd
Ensure that imports handle disabling media tunneling correctly
...
Store in preferences whether media tunneling was disabled automatically.
Show info in ExoPlayer settings if media tunneling was disabled autmatically.
2023-07-29 22:08:51 +02:00
TobiGr
cce9e09bbc
Disable media tunneling if the device is known for not supporting it
...
Revert removing the Utils related to media tunneling.
2023-07-29 14:13:03 +02:00
TobiGr
82de412b9c
Make some constants private and annotate params
2023-07-29 14:13:03 +02:00
Tobi
4c54988503
Merge pull request #10195 from AudricV/player_refactor-renderers-activation-or-deactivation
...
Refactor Player.useVideoSource logic and improve its comments
2023-07-22 14:12:35 +02:00
Isira Seneviratne
a3021b6fbd
Merge pull request #10078 from Isira-Seneviratne/Improve_feed_notifications
...
Improve new stream notifications
2023-07-20 06:39:19 +05:30
AudricV
2fa5019a85
Refactor Player.useVideoSource logic and improve its comments
...
- don't check for isAudioOnly == !videoEnabled, as this prevents enabling again
video and text tracks renderers in some cases;
- when reloading play queue manager if that's needed, disable or enable video
and text tracks renderers, as they may need to be enabled again in some cases
like starting a video in main player, opening play queue, switching to
background player on it and switching back to main player;
- disable or enable video renderers also for streams with AUDIO_STREAM
StreamType, as doing so doesn't raise any issue and simplifies code;
- reword and move some comments to make them easier to understand.
2023-07-19 22:52:18 +02:00
Isira Seneviratne
66f6b4c9eb
Set channel icon for stream notifications
2023-07-19 05:52:59 +05:30
Tobi
47d1997e58
Merge pull request #10235 from TacoTheDank/bumpRoom
...
Update AndroidX Room library
2023-07-18 22:35:30 +02:00
Tobi
395e1ce83e
Merge pull request #9719 from Marius1501/tabs_on_bottom
...
Added bottom main-tabs feature
2023-07-18 22:03:47 +02:00
TacoTheDank
463834f6cd
Update AndroidX Room library
2023-07-17 21:09:44 -04:00
Tobi
ffef25226d
Merge pull request #10230 from TeamNewPipe/fix/offline-stream-chooser
...
[Download] Fix audio stream selection
2023-07-17 23:47:21 +02:00
TobiGr
bdfd7a7674
Replace null check with use of NotificationManagerCompat.from
2023-07-17 01:28:55 +02:00
Isira Seneviratne
ed4937743b
Show number of new streams in the collapsed summary notification.
2023-07-17 01:28:55 +02:00
Isira Seneviratne
96430f5232
Create individual stream notifications for convenience on Android 7.0 and later.
2023-07-17 01:28:55 +02:00
Stypox
fe7a7e8628
No need to manually mark fragment as destroyed for LeakCanary
...
It already does so automatically.
2023-07-14 20:48:05 +02:00
Stypox
3ef97eb29c
Fix PlayerService leakead by Binder instance
...
Also see https://stackoverflow.com/q/63787707
2023-07-14 18:34:20 +02:00
TobiGr
51a9879dd0
[Download] Fix audio stream selection
...
Closes #10180
2023-07-14 17:06:12 +02:00
Koitharu
6bf0f78c41
Fix crash after feed update
2023-07-14 11:41:52 +03:00
Stypox
d0e021a107
Merge pull request #10085 from TacoTheDank/bumpLeakCanary
...
Update LeakCanary library
2023-07-12 19:05:38 +02:00
TacoTheDank
fc320354b1
Clean up AlertDialogs
2023-07-11 21:54:10 -04:00
TacoTheDank
af978a9ba6
Update LeakCanary library
2023-07-11 20:32:29 -04:00
Stypox
3e8b074fff
Fix uploader and subchannel avatars swapped
2023-05-03 10:35:28 +02:00
AudricV
f073060d97
Add Open in browser button to audio external players dialog
...
This change makes the dialog consistent with the video one.
2023-05-02 00:18:46 +02:00
AudricV
af9b2bfdd8
Remove "default" from audio track already present message
...
We don't know if, on muxed video streams we get for all services which support
multiple audio languages, that the audio language returned is the original one
or not, even if it should be the case.
In order to avoid saying potential false information, this word has been
removed from the string resource (ID and value) and the corresponding layout ID
in the download dialog.
2023-05-02 00:11:09 +02:00
ThetaDev
e947c88483
fix: audio stream cache key, code fmt
2023-05-01 00:04:04 +02:00
ThetaDev
148c1122e6
fix docs in app/src/main/java/org/schabi/newpipe/util/Localization.java
...
Co-authored-by: Audric V. <74829229+AudricV@users.noreply.github.com>
2023-05-01 00:02:37 +02:00
ThetaDev
cba0eb35e2
Merge branch 'dev' of github.com:TeamNewPipe/NewPipe into alang-selector
2023-04-21 23:32:33 +02:00
ThetaDev
a7a0811dec
fix: small codestyle fixes
2023-04-21 23:15:37 +02:00
ThetaDev
e2bb4082bb
Merge branch 'dev' into alang-selector
2023-04-17 23:01:07 +02:00
TobiGr
7a85c08b68
Apply new itag filter only to YouTube streams
2023-04-17 13:10:29 +02:00
TobiGr
672093ad7a
Use a whitelist to filter all streams retrieved by the extractor.
...
NewPipe Extractor now extracts all YouTube Itags and therefore only those which can be handled by the player need to be retrieved from the list of all available streams.
2023-04-17 13:00:11 +02:00
Stypox
727de29bd6
Merge pull request #10021 from Isira-Seneviratne/PendingIntentCompat
...
Switch to AndroidX's PendingIntentCompat.
2023-04-14 14:20:47 +02:00
Isira Seneviratne
c91ffa4863
Use AndroidX's PendingIntentCompat class.
2023-04-13 10:53:46 +05:30
AudricV
445b0380b4
[Android 6+] Add ability to always use ExoPlayer's MediaVideoCodecRenderer setOutputSurface workaround
...
As some devices not present in ExoPlayer's list may not implement
MediaCodec.setOutputSurface(Surface) properly, this workaround could be useful
on these devices.
It forces ExoPlayer to fall back on releasing and re-instantiating video codec
instances, which is always used on Android 5 and lower due to addition of this
method in Android 6.
To do so, a CustomMediaCodecVideoRenderer, based on ExoPlayer's
MediaVideoCodecRenderer which always return true for the
codecNeedsSetOutputSurfaceWorkaround method has been added, which is used in
CustomRenderersFactory, a class based on DefaultRenderersFactory which always
returns our CustomMediaCodecVideoRenderer as the video renderers.
CustomRenderersFactory replaces DefaultRenderersFactory in the player, in the
case this setting is enabled.
2023-04-10 17:39:27 +02:00