Commit graph

1288 commits

Author SHA1 Message Date
Stypox
e1fefacf64 Customize "start here" actions in playlist item views
Now those actions start playing the whole playlist from the chosen stream, instead of playing only the chosen stream.
2019-08-14 14:17:05 +02:00
TobiGr
2f5c1f5732 Do not save playback position when watch history is disabled 2019-08-13 14:39:57 +02:00
TobiGr
e3fc3cdcdd Fix typo in HistorySettinsFragment
Rename viewsHistroyClearKey to viewsHistoryClearKey
2019-08-13 14:25:47 +02:00
Tobias Groza
345c64e4a8 Merge branch 'dev' into buttons-hiding-fix-on-screen-off 2019-08-12 13:57:02 +02:00
Stypox
845c0a0098 Fix player resume 2019-08-11 22:10:05 +02:00
yausername
fd32020186 fix item addition to list 2019-08-07 22:27:58 +05:30
yausername
87c2171898 remove controls animation/flicker 2019-08-07 22:27:58 +05:30
TobiGr
1ab22b66c9 Fix playback position not being deleted on clearing watch history 2019-08-07 14:34:49 +02:00
Christian Schabesberger
5c97131362 fix import settings not working 2019-08-04 17:27:56 +02:00
kapodamy
f6c9087c4c clean-up: remove unused method 2019-08-03 12:28:58 -03:00
kapodamy
1ea852df1f drop unused popup storage permission request 2019-08-02 01:07:37 -03:00
kapodamy
ac266548fa socket leak fix
* fix socket leak in "DownloadRunnable"
* in "DownloadInitializer" close the HTTP body after doing range-request checks
* in "DownloadRunnableFallback" fix typo in comment
* in "DownloadDialog" fix regression, using one thread for audios instead of subtitles
2019-08-01 22:41:09 -03:00
Stypox
382c943917 Fix crash when closing a not-yet-loaded popup. 2019-07-25 12:32:56 +02:00
Stypox
9c65773196 Optimize imports in edited files 2019-07-25 11:47:38 +02:00
Stypox
67263a5ae4 Rename action to defaultAction in StreamDialogEntry
To improve readability
2019-07-25 01:07:51 +02:00
Stypox
bc0ce4c21f Ensure default actions cannot be overwritten permanently in StreamDialogEntry 2019-07-25 00:53:13 +02:00
Stypox
bd18d38e5c Remove ugly if-else-cascade in
Common actions and labels are now in a unique enum: StreamDialogEntry
If an action is not common to every long-press menu (e.g. delete) a custom action has to be provided using e.g. delete.setAction(...)
2019-07-25 00:44:12 +02:00
Stypox
6c24e1cc39 Merge branch 'dev' into menu-consistency 2019-07-24 17:21:45 +02:00
Christian Schabesberger
0716fff448 Merge branch 'dev' into defaultTrending 2019-07-22 22:39:47 +02:00
Stypox
a1a0c7af83 Fix showing popup options with audio-only streams 2019-07-22 11:58:01 +02:00
Stypox
e380db0610 Complete merge after #2288: add resumePlayback to player calls.
`resumePlayback`'s value is `false` when the video is enqueued, `true` otherwise.
Also make the use of getContext() and getActivity() more consistant.
2019-07-22 10:28:53 +02:00
Stypox
5a7fcc0442 Merge branch 'dev' into menu-consistency 2019-07-22 09:10:25 +02:00
Christian Schabesberger
7164d85479 Merge branch 'dev' into issue-2240 2019-07-21 16:07:32 +02:00
Christian Schabesberger
dfed3645e8 Merge branch 'dev' into rotate 2019-07-21 15:12:41 +02:00
Stypox
4827f719fc Merge branch 'dev' into menu-consistency 2019-07-21 11:11:06 +02:00
Alan Nelson
c5b7f59514 Add title to additional metadata object 2019-07-11 00:48:28 -05:00
Alan Nelson
98eeae4bf5 Add current and total track numbers to metadata 2019-07-09 22:37:03 -05:00
Alan Nelson
d96e371ad2 Fix Bluetooth AVRCP duration metadata 2019-07-09 22:34:18 -05:00
Tobias Groza
b96c603da5 Merge branch 'dev' into patch-2 2019-07-07 20:39:26 +02:00
Marcel Dopita
299933b178 Handle (auto)rotation changes during activity lifecycle
Fixes #1156
2019-07-04 07:30:01 +02:00
Redirion
7f6f306e25 Update CheckForNewAppVersionTask.java 2019-06-26 18:37:04 +02:00
Christian Schabesberger
1833580102 Merge branch 'dev' into removeextra 2019-06-26 15:42:47 +02:00
Redirion
094681a90c Update CheckForNewAppVersionTask.java 2019-06-25 13:53:23 +02:00
Redirion
4d7bc2584f Update CheckForNewAppVersionTask.java 2019-06-25 13:47:16 +02:00
Redirion
0a11d0d823 Removed tabs 2019-06-25 13:41:08 +02:00
Redirion
1640ca6381 Update CheckForNewAppVersionTask.java 2019-06-25 13:39:47 +02:00
Redirion
19dd8bae1f Update CheckForNewAppVersionTask.java 2019-06-25 13:31:26 +02:00
Redirion
672e2a099e Update CheckForNewAppVersionTask.java 2019-06-25 13:22:40 +02:00
Redirion
0b2c9e8c76 Silence CheckForNewAppVersionTask
Closes #2421
2019-06-25 11:49:59 +02:00
Vasily
ea8bdd8835 Merge branch 'dev' into playback_state_list 2019-06-23 20:23:29 +03:00
kapodamy
db76d1e179 Merge branch 'dev' into ps-branch 2019-06-14 12:55:49 -03:00
kapodamy
1f2a60de9b bugs fixes
* fix storage warning dialogs created on invalid contexts
* implement mkdirs in StoredDirectoryHelper
2019-06-14 12:19:50 -03:00
Stypox
a0e7a89cbb Merge branch 'dev' into menu-consistency 2019-06-14 09:40:40 +02:00
Redirion
c259eaeeeb Fixed selected subtitle stream not being shown
closes #2393
this ammends my obviously incomplete fix in PR #2311.

This is just an UI issue. Subtitle track selection works, it just shows "No Captions" unfortunately.
2019-06-12 14:44:36 +02:00
kapodamy
bec31e8768 Space reserving tweaks for huge video resolutions
* improve space reserving, allows write better 4K/8K video data
* do not use cache dirs in the muxers, Android can force close NewPipe if the device is running out of storage. Is a aggressive cache cleaning >:/
* (for devs) webm & mkv are the same thing
* calculate the final file size inside of the mission, instead getting from the UI
* simplify ps algorithms constructors
* [missing old commit message] simplify the loading of pending downloads
2019-06-03 18:26:26 -03:00
kapodamy
b92b434e2c Simplify the storage APIs use
* use Java I/O (classic way) on older android versions
* use Storage Access Framework on newer android versions (Android Lollipop or later)
* both changes have the external SD Card write permission
* add option to ask the save path on each download
* warn the user if the save paths are not defined, this only happens on the first NewPipe run (Android Lollipop or later)
2019-06-03 18:26:24 -03:00
kapodamy
9656f0486b Webm muxer fixes and strings.xml changes
* replace "In queue" to "Pending" in the downloads header to avoid confusions (all languages)
* use 29bits Clusters size to support huge video resolutions (fixes #2291) (WebmWriter.java)
* add missing changes to WebmMuxer.java (i forget select the audio track)
2019-06-03 18:24:49 -03:00
kapodamy
ca05af9570 Forget the download save path if the storage API is changed 2019-06-03 18:19:20 -03:00
kapodamy
64626a7709 more SAF implementation
* full support for Directory API (Android Lollipop or later)
* best effort to handle any kind errors (missing file, revoked permissions, etc) and recover the download
* implemented directory choosing
* fix download database version upgrading
* misc. cleanup
* do not release permission on the old save path (if the user change the download directory) under SAF api
2019-06-03 18:18:20 -03:00
kapodamy
7ca7952790 Implement Storage Access Framework
* re-work finished mission database
* re-work DownloadMission and bump it Serializable version
* keep the classic Java IO API
* SAF Tree API support on Android Lollipop or higher
* add wrapper for SAF stream opening
* implement Closeable in SharpStream to replace the dispose() method

* do required changes for this API:
** remove any file creation logic from DownloadInitializer
** make PostProcessing Serializable and reduce the number of iterations
** update all strings.xml files
** storage helpers: StoredDirectoryHelper & StoredFileHelper
** best effort to handle any kind of SAF errors/exceptions
2019-06-03 18:16:41 -03:00