Commit graph

806 commits

Author SHA1 Message Date
John Zhen Mo
d7c8fc6c20 -Added toggle to enable fast inexact seek in players.
-Improved player sync calls to recognize different metadata updates.
-Changed MediaSourceManager to synchronize only after timeline changes and reenabled multiple sync calls to player.
-Renamed listener and synchronization methods related to MediaSourceManager.
2018-03-03 14:24:21 -08:00
John Zhen Mo
1c38a5db8d -Added loader eviction to avoid spawning too many threads in MediaSourceManager.
-Added nonnull and final constraints to variables in MediaSourceManager.
-Added nonnull and final constraints on context related objects in BasePlayer.
-Fixed Hls livestreams crashing player when behind live window for too long.
-Fixed cache miss when InfoCache key mismatch between StreamInfo and StreamInfoItem.
2018-03-03 11:42:23 -08:00
John Zhen Mo
ca54ca85b5 -Re-added loading for items prior to current index in MediaSourceManager to allow faster access time.
-Added some null checks annotation.
2018-02-28 23:25:45 -08:00
John Zhen Mo
38554a56bc -Added serialized cache for transferring serializable objects too large for intent transactions.
-Fixed potential transaction too large exceptions for player intents.
2018-02-28 17:47:12 -08:00
John Zhen Mo
c2bae51558 -Added better assertions and documentations to new mechanism in MediaSourceManager.
-Modified LoadController to allow fast playback start and increased buffer zigzag window.
-Removed unnecessary loading on timeline changes.
-Changed select message in MediaSourceManager to cause immediate load.
-Reduced default expiration time in MediaSourceManager.
-Fixed main video player not showing end time on audio-only streams.
-Fixed live stream has player view disabled after transitioning from audio stream.
-Fixed inconsistent progress bar height between live and non-live video on main player.
2018-02-28 17:45:05 -08:00
John Zhen Mo
ac574e5e85 -Added perpetual extractor source loading on network failures.
-Fixed play queue playlist desynchronization caused by media source manager window loading expansion on sublist prior to current item.
-Fixed failed media source not treated as ready for playback.
2018-02-26 22:37:19 -08:00
John Zhen Mo
3df2c5634a -Improved player queue stability by using more aggressive synchronization policy.
-Added sync buttons on live streams to allow seeking to live edge.
-Added custom cache key for extractor sources to allow more persistent reuse.
-Refactored player data source factories into own class and separating live and non-live data sources.
2018-02-26 19:57:59 -08:00
John Zhen Mo
89d15aec5b -Fixed potential NPE when obtaining broadcast receiver.
-Extracted expiration time in media source manager.
-Re-enabled long click on live stream info items.
-Fixed dash source building to use mpd instead of extractor.
2018-02-25 20:12:30 -08:00
John Zhen Mo
a878470bc5 -Fixed failed media source not treated as ready. 2018-02-25 15:32:25 -08:00
John Zhen Mo
9ee668d7e8 -Fixed inconsistent audio focus state when audio becomes noisy (e.g. headset unplugged).
-Fixed live media sources failing when using cached data source by introducing
cacheless data sources.
-Added custom track selector to circumvent ExoPlayer's language normalization NPE.
-Updated Extractor to correctly load live streams.
-Removed deprecated deferred media source and media source manager.
-Removed Livestream exceptions.
2018-02-25 15:10:11 -08:00
John Zhen Mo
f792f0f25f -Fixed media source update index check.
-Fixed media source manager excessive loading.
-Remove unneeded fields in loaded media source.
2018-02-24 21:54:47 -08:00
John Zhen Mo
9b79ae7de3 -Updated Exoplayer to 2.7.0.
-PoC for new seamless stream loading mechanism.
2018-02-24 21:54:47 -08:00
Christian Schabesberger
0a9b21ed50 Merge branch 'dev' of github.com:teamnewpipe/NewPipe into dev 2018-02-24 22:57:34 +01:00
Christian Schabesberger
1df0d812b5 make NewPipe compatible with latest Extractor refactorings 2018-02-24 22:57:25 +01:00
wb9688
17ba6d5c9a Use OkHttp with UIL 2018-02-22 13:25:56 +01:00
Christian Schabesberger
86151786e8 Merge branch 'player_fix' of https://github.com/karyogamy/NewPipe into dev 2018-02-21 23:20:08 +01:00
Christian Schabesberger
e098cee28a Merge branch 'pfix' into dev 2018-02-21 23:00:56 +01:00
John Zhen Mo
76f921e6e6 -Changed Rx exception handling to swallow undeliverable exceptions by default. 2018-02-21 10:42:54 -08:00
Mauricio Colli
806e7c4bf5 Improve some aspects of the Downloader implementation 2018-02-21 08:08:52 -03:00
John Zhen Mo
d5b167b1b6 -Changed global Rx exception handling to no longer trigger error activity if the exception is undeliverable.
-Added debug settings to force reporting of undeliverable Rx exceptions.
-Changed back MediaSourceManager to use serial disposable for syncing.
2018-02-20 22:35:34 -08:00
John Zhen Mo
9896b3d93a -Added debug default values on settings init. 2018-02-20 21:16:53 -08:00
John Zhen Mo
8f056ee2fc -Added debug preference settings for debug and beta builds.
-Removed leak canary toggle on app menu.
-Added leak canary settings to debug preference.
-Removed/renamed leak canary related strings.
2018-02-20 21:16:53 -08:00
John Zhen Mo
dc2aa114ca -Fixed auto-generated string not translatable. 2018-02-20 21:15:23 -08:00
John Zhen Mo
7e1b21ed8d -Fixed media source manager sync identical item multiple times, causing OOM.
-Removed deprecated translated leak canary string from other languages.
2018-02-20 21:15:23 -08:00
John Zhen Mo
fc39b06712 -Fixed video player source loading for audio only streams.
-Changed "monitor leak" string to "LeakCanary" as untranslatable.
2018-02-20 21:15:23 -08:00
John Zhen Mo
0420dcf4e7 -Added view registration on repeats.
-Added drag reorder speed clamping to play queue list.
-Fixed service player activity memory leak.
-Fixed media source manager sync disposable fallthrough causing NPE.
-Fixed thread bouncing during play queue item async stream resolution.
-Updated ExoPlayer to 2.6.0.
2018-02-20 21:15:23 -08:00
Christian Schabesberger
75e1444170 Merge branch 'okhttp' of https://github.com/wb9688/NewPipe into ht 2018-02-21 00:28:03 +01:00
Christian Schabesberger
07172dd698 add link to NewPipe blog 2018-02-21 00:24:43 +01:00
wb9688
8c3f30f25a Use OkHttp 2018-02-20 16:24:43 +01:00
Christian Schabesberger
67d1afaa84 Merge pull request #1109 from TobiGr/soundcloud-kiosk
Enable SoundCloud kiosks as main page fragment for debug and beta
2018-02-20 13:38:20 +01:00
Christian Schabesberger
3fae26e3ba fix drawer header service label noch chaning, and other things 2018-02-19 21:04:13 +01:00
Christian Schabesberger
b9582059d0 add inital drawer hader layout 2018-02-16 23:56:04 +01:00
Christian Schabesberger
f3e26efee7 Merge pull request #1111 from TeamNewPipe/renav
add header/footer to drawer
2018-02-16 21:43:39 +01:00
Christian Schabesberger
40ccb4518a add header/footer to drawer 2018-02-16 14:45:52 +01:00
TobiGr
39209add8c Enable SoundCloud kiosks as main page fragment for debug and beta 2018-02-16 13:13:40 +01:00
Christian Schabesberger
53ba372b27 remove ActionBarHandler 2018-02-16 12:18:15 +01:00
Christian Schabesberger
61fdc88da3 clean DetailFragment code 2018-02-16 11:31:25 +01:00
Christian Schabesberger
9427231035 solve merge conflict 2018-02-14 21:06:20 +01:00
Christian Schabesberger
dead4de7cd Merge branch 'subtitles' of https://github.com/karyogamy/NewPipe into sub 2018-02-14 20:59:40 +01:00
Christian Schabesberger
76a9a9ee83 fixed preferred_player inconsistancy 2018-02-14 19:33:43 +01:00
Christian Schabesberger
39b429090c merge RouterActivity and RouterVideoActivity
change share title

fixed compatiblity issue

rename info_screen to show_info
2018-02-12 23:07:17 +01:00
Christian Schabesberger
51137159d2 fixed issues from prevoius merge 2018-02-12 00:43:12 +01:00
Christian Schabesberger
8917277030 move download menu item into detail controls menu 2018-02-11 21:34:32 +01:00
John Zhen Mo
d5acca2400 -Fixed preferences fetching. 2018-02-11 11:40:08 -08:00
John Zhen Mo
0ed1a101ce -Changed leak canary toggle text to "monitor leaks".
-Added toast when enabling/disabling heap dumping.
2018-02-11 11:33:17 -08:00
John Zhen Mo
cdc06439df -Added toggle for enabling leak canary heap dump. 2018-02-11 11:33:16 -08:00
John Zhen Mo
32d48057f1 -Added LeakCanary to debug build for memory detection on activities and fragments.
-Added LeakCanary no-op lib to release and beta builds.
2018-02-11 11:32:57 -08:00
John Zhen Mo
b66fb538af -Code clean up on resize switching. 2018-02-11 11:32:40 -08:00
John Zhen Mo
a06b9345de -Added settings for managing caption font size. 2018-02-11 11:32:40 -08:00
John Zhen Mo
aa3446f232 -Moved caption extraction and menu building into exoplayer track changing callback.
-Updated extractor dependency.
2018-02-11 11:32:39 -08:00