Commit graph

469 commits

Author SHA1 Message Date
litetex
1470d4d43e Merge pull request #7202 from vhouriet/vhouriet_bug_issue-6662
Fix clicking timestamp shows Toast "Playing in popup mode"
2021-10-11 21:20:26 +02:00
Robin
cf7cd4551e Fix crash on missing title when sharing livestream 2021-10-08 21:42:01 +02:00
vhouriet
fc5e090d03 Fix clicking timestamp shows Toast "Playing in popup mode"
Fixes #6662
2021-10-05 18:15:36 +02:00
litetex
bcf9ceaa83 Use the correct TAG in NavigationHelper 2021-10-03 22:04:34 +02:00
Tobi
d195c11bc5 Merge pull request #7178 from Redirion/dsblmdtnnelrealtekatv
Disable media tunneling on RealtekATV
2021-09-28 07:53:11 +02:00
Robin
d1089d6252 Disable media tunneling on RealtekATV 2021-09-27 13:21:04 +02:00
litetex
9aaa75fd3d Improved streamType check and documentation 2021-09-25 10:31:42 +02:00
Stypox
890b5b3895 Merge branch 'master' into dev 2021-09-19 22:37:00 +02:00
z3r0r4
ac3a8214b2 Add play next to long press menu & refactor enqueue methods (#6872)
* added mvp play next button in long press menu; new intent handling, new long press dialog entry, new dialog functions, new strings

* changed line length for checkstyle pass

* cleaned comments, moved strings

* Update app/src/main/res/values/strings.xml

to make long press entry more descriptive

Co-authored-by: opusforlife2 <53176348+opusforlife2@users.noreply.github.com>

* Update app/src/main/res/values/strings.xml

Co-authored-by: Stypox <stypox@pm.me>

* replace redundant nextOnVideoPlayer methods

Co-authored-by: Stypox <stypox@pm.me>

* add enqueueNextOnPlayer and enqueueOnPlayer without selectOnAppend and RESUME_PLAYBACK/ deprecate enqueueNextOn*Player and enqueueOn*Player methods
add getPlayerIntent, getPlayerEnqueueIntent and getPlayerEnqueueNextIntent without selectOnAppend and RESUME_PLAYBACK/ deprecate those with
add section comments

* removed deprecated methods
removed redundant methods

* removed deprecated methods
removed redundant methods

* replaced APPEND_ONLY, removed SELECT_ON_APPEND / replaced remaining enqueueOn*Player methods

* now works with playlists

* renamed dialog entry

* checking for >1 items in the queue using the PlayerHolder

* making enqueue*OnPlayer safe to call when no video is playing (defaulting to audio)

* corrected strings

* improve getQueueSize in PlayerHolder

* long press to enqueue only if queue isnt empty

* add Whitespace

Co-authored-by: Stypox <stypox@pm.me>

* clarify comments / add spaces

* PlayerType as parameter of the enqueueOnPlayer method
add Helper method

* using the helper function everywhere (except for the background and popup long-press actions (also on playlists, history, ...)), so basically nowhere
/ passing checkstyle

* assimilated the enqueue*OnPlayer methods

* removed redundant comment, variable

* simplify code line

Co-authored-by: Stypox <stypox@pm.me>

* move if

* replace workaround for isPlayerOpen()

Co-authored-by: Stypox <stypox@pm.me>

* replaced workarounds (getType), corrected static access with getInstance

* remove unused imports

* changed method call to original, new method doesnt exist yet.

* Use getter method instead of property access syntax.

* improve conditional for play next entry

Co-authored-by: Stypox <stypox@pm.me>

* show play next btn in feed fragment

Co-authored-by: Stypox <stypox@pm.me>

* add play next to local playlist and statistics fragment

Co-authored-by: Stypox <stypox@pm.me>

* formating

Co-authored-by: Stypox <stypox@pm.me>

* correcting logic

Co-authored-by: Stypox <stypox@pm.me>

* remove 2 year old unused string, formating

Co-authored-by: Stypox <stypox@pm.me>

* correct enqueue (next) conditionals, default to background if no player is open. Dont generally default to background play.

* remove player open checks from button long press enqueue actions

* improve log msg

* Rename next to enqueue_next

* Refactor kotlin

Co-authored-by: opusforlife2 <53176348+opusforlife2@users.noreply.github.com>
Co-authored-by: Stypox <stypox@pm.me>
2021-09-18 11:22:49 +02:00
Tobi
adca165238 Merge pull request #7068 from litetex/fix-restart
Fixed restarting not working properly
2021-09-11 12:51:38 +02:00
litetex
6f0ea582d9 Fixed the app restarting not working properly
* Using [``process-phoenix``](https://github.com/JakeWharton/ProcessPhoenix)
2021-09-06 20:47:44 +02:00
TobiGr
5a257f9ebb Fix a few SonarLint warnings 2021-09-05 19:54:28 +02:00
TobiGr
70ec9bcfc0 Fix OnErrorNotImplementedException in playOnPopup 2021-09-05 19:54:28 +02:00
Stypox
e5e654043a Open fullscreen when switching from popup to main player 2021-09-01 20:13:24 +02:00
Stypox
70e8065ea6 Fix opening directly fullscreen on tablets 2021-09-01 20:12:09 +02:00
Stypox
b2e0859e8a Extract isLandscape and isInMultiWindow to DeviceUtils 2021-09-01 20:09:08 +02:00
Stypox
28c1384391 Add option to directly open fullscreen when the main player starts 2021-09-01 20:08:37 +02:00
Tobi
0c8bd5416a Merge pull request #6986 from litetex/fix-build-problems-update-kotlin
Fix build problems and updated kotlin
2021-08-30 21:20:45 +02:00
Agnieszka C
a34805ea3a Added plural forms for download related strings (#6930)
Co-authored-by: Tobi <TobiGr@users.noreply.github.com>
2021-08-29 13:28:01 +02:00
acti0
5be652c340 Re-add sharing of the content name with the "Share" command (#6957)
The title of the content is re-added as the EXTRA_SUBJECT of the share intent.
2021-08-27 19:26:32 +02:00
litetex
9ecec58bbc Changed package as the old one is deprecated 2021-08-26 18:09:27 +02:00
Stypox
2f78a6cacb Merge pull request #6919 from ktprograms/channel-details-all-places
Add Show Channel Details where it's missing
2021-08-24 16:43:21 +02:00
ktprograms
7286bb7961 Fix checkstyle ParenPad error 2021-08-24 21:17:08 +08:00
Stypox
5fb360a36e Remove placeholder image while loading thumbnails 2021-08-24 10:56:25 +02:00
Stypox
12ad678d14 Apply review: move thumbnail loading out of Player 2021-08-24 10:56:25 +02:00
Stypox
3236b3a882 Add debug setting to enable Picasso indicators 2021-08-24 10:56:25 +02:00
Stypox
8602beed0b Replace UniversalImageLoader with Picasso 2021-08-24 10:56:25 +02:00
TobiGr
64cf6d94c8 Merge branch 'master' into dev 2021-08-22 22:22:37 +02:00
ktprograms
f677ea35e9 Add Loading Channel Details Toast 2021-08-21 09:30:40 +08:00
ktprograms
33f5a655c8 Refactor duplicated code into method 2021-08-14 17:32:38 +08:00
ktprograms
be949e34a9 Remove hardcoded string 2021-08-14 15:38:57 +08:00
ktprograms
c562bde386 Catch error from ExtractorHelper.getStreamInfo, remove blockingGet 2021-08-14 09:07:27 +08:00
ktprograms
2704d86351 Save channelUrl to Database if it doesn't exist 2021-08-13 18:02:53 +08:00
litetex
fd56a449d9 Fixed format 2021-08-06 22:12:49 +02:00
litetex
e7099b0d21 Use better pattern for matching timestamp in text and some reworks
Also extracted overhead code into ``TimestampExtractor``
2021-08-06 22:08:29 +02:00
Stypox
56edd338cb Merge pull request #6814 from Stypox/channel-grid-span-count
Fix channel item span count for SubscriptionFragment
2021-08-05 14:25:39 +02:00
Stypox
eecba60d1e Fix channel item span count for SubscriptionFragment 2021-07-31 11:02:57 +02:00
Nathan Schulzke
76dfc30f2c Change played to watched 2021-07-27 13:26:51 -06:00
Nathan Schulzke
185401a5e9 Add ability to mark an item as played 2021-07-26 20:51:41 -06:00
Stypox
12a3ac409e Fix grid span count calculation; remove duplicate methods 2021-07-19 20:47:50 +02:00
litetex
48e203bcb1 Added seekbarThumbnailPreview 2021-07-17 16:43:00 +02:00
Tobi
e5545a7dfc Merge pull request #6566 from evermind-zz/various-fixes-for-upstream
Convert PlayerHolder to Singleton; cleanup in VideoDetailFragment; Player/MainPlayer do not call onDestroy() directly
2021-07-14 09:46:04 +02:00
TobiGr
600cdc04c9 Add close() method to NewPipeDatabase 2021-07-10 14:46:51 +02:00
TobiGr
cb7f8b7904 Fix crash when refreshing feed after importing database or subscriptions
The database was not closed correctly
2021-07-10 13:09:01 +02:00
evermind
61a54d9a64 convert PlayerHolder to Singleton, handle context within, bugfix ServiceConnection leak
- bugfix: have ServiceConnection created only once!

- select the context within the PlayerHolder to start, stop, bind or unbind the service
  -> we have to make sure the Service is started AND stopped within the same context
  -> so let PlayerHolder be the one to select the context

- remove removeListener() and replace the call with setListener(null)
- Compatibility: use ContextCompat.startForegroundService instead of startService()
2021-07-06 12:31:26 +02:00
Mohammed Anas
e055b84206 Don't enable SAF on Fire TV (#6516) 2021-06-20 19:01:06 +00:00
Stypox
4a963858ba Merge pull request #6394 from TacoTheDank/androidx-fragment-134
Update AndroidX Fragment to 1.3.4
2021-06-18 13:14:30 +02:00
Stypox
742d2246d6 Merge pull request #6495 from danielmbutler/Replace-System.exit-calls
Replace the System.exit calls with getActivity.finishAffinity()
2021-06-17 21:07:48 +02:00
danielmbutler
d58e7e0cb1 Replaced System.Exit calls with FinishAffinity and Start Activity calls
Implemented "RestartApp" method defined in NavigationHelper.java.
 This method is used in ExitActivity.java and ContentSettingsFragment.java
2021-06-17 17:18:15 +01:00
TacoTheDank
c1e0b877f5 Fix some older deprecations from previous Fragment versions 2021-06-15 22:08:25 -04:00