Jannik
7a5f90cb82
don't initialize exoplayer, if view model exists and player is ready
...
this prevents the media being reloaded, when the app is moved to the background and to the foreground again
2020-12-28 20:45:52 +01:00
Jannik
800c2a144c
polish player episodes list ui
...
closes #16
2020-12-28 20:17:11 +01:00
Jannik
6bec0512ba
minor player fixes
...
* fix exoplayer access on wrong thread
* fix remaining time calculation sometimes failed
2020-12-27 20:41:18 +01:00
Jannik
b3ce43c614
release player in PlayerVIewModel onCleared()
...
this fixes playback after the activity has been destroyed, while being in background
2020-12-27 20:31:18 +01:00
Jannik
7845770067
Clean up PlayerActivity and PlayerViewModel
...
* use Local instead of streamURL to save selected language, this allows nextEp/ selected Eps to use previously selected language
* hide episodes button, if media is a movie
2020-12-27 20:11:01 +01:00
Jannik
94da8c6cee
player language settings [Part 2]
...
* move player object to PlayerViewModel
* minor code clean up
2020-12-26 20:09:35 +01:00
Jannik
8a43567737
rework how different streams/languages per episode are handled
...
* potentially support more than 2 streams
* part of language settings in player
2020-12-26 14:39:35 +01:00
Jannik
8f60a30d61
improve media parsing / loadStreams()
...
* fix #20 , return 0 as episode number on NumberFormatException
* don't crash if a episode can not be parsed
* update material components: 1.3.0-alpha04 -> 1.3.0-beta01
2020-12-26 11:32:09 +01:00
Jannik
00699aaec7
add language settings to player [Part 1]
2020-12-20 20:21:27 +01:00
Jannik
bba642e9e3
use a random new title, if highlights is empty
2020-12-18 17:23:04 +01:00
Jannik
04893060e4
add episodes list to player [Part 2]
2020-12-15 23:15:14 +01:00
Jannik
6fc7bb2c1e
add episodes list to player [Part 1]
2020-12-14 23:46:55 +01:00
Jannik
ab180ddd89
add new simulcasts and new titles to home screen
...
* simulcasts and new titles
* update some libraries
* don't crash if AoDPraser fails to parse mediaId
2020-12-11 10:54:40 +01:00
Jannik
98636d326e
make sure highlighted media has a valid mediaId
...
this also prevents non media from showing as highlights
2020-12-07 17:50:10 +01:00
Jannik
6775a4da2e
show AoD highlights on home fragment
2020-12-06 15:18:15 +01:00
Jannik
a390bc9686
update exoplayer to version 2.12.2
2020-12-05 22:17:54 +01:00
Jannik
82bf34e4cb
update theme colors to better reflect material design guidelines
...
* dark primary: #000000 -> #121212
2020-12-05 21:51:12 +01:00
Jannik
e34e5b2bbd
replace licenses dialog and about dialog with about fragment
2020-12-05 21:03:14 +01:00
Jannik
20407d9cac
add permanently visible next episode button & fix autoplay
...
* autoplay / play next episode could sometimes skip episodes
2020-12-02 11:14:09 +01:00
Jannik
dbd4b26a65
minor text change
2020-11-29 20:25:22 +01:00
Jannik
ac5aee20de
update material components to alpha 4
2020-11-29 18:23:02 +01:00
Jannik
32844223fc
minor episodes ui improvements
...
* show 3 lines of episode description
* episodes title: Episode xy -> Ep. xy
2020-11-28 15:09:39 +01:00
Jannik
d01e87bf14
use suspending functions for coroutines when possible
...
* fix crash, when media is selected, but MediaFragment is removed before AoDParser could load data
2020-11-27 11:06:16 +01:00
Jannik
3ed55ca3c9
fix episodes without a streaming link make AoDParser crash
2020-11-26 17:32:15 +01:00
Jannik
dfaf359952
fix poster not being scaled correctly
...
regression from 2de1419d36
2020-11-26 17:07:33 +01:00
Jannik
db5758edf9
minor code clean up
2020-11-25 23:33:06 +01:00
Jannik
2de1419d36
fix theme not applying to nav bar
...
regression from 7df99ea0cc
2020-11-25 23:26:46 +01:00
Jannik
7df99ea0cc
use view binding wherever possible
2020-11-25 22:35:55 +01:00
Jannik
8d1c3d9a3f
move some player data to PlayerViewModel
2020-11-25 16:04:04 +01:00
Jannik
c0c5cb9110
change themeSecondaryDark to #202020
2020-11-24 18:07:48 +01:00
Jannik
21b6e358e7
theme selection & gradle update
...
* it's now possible to change the app theme (light/dark)
* update gradle to version 6.7.1
* update gradle pugin to version 4.1.1
* update kotlin to 1.4.10
2020-11-23 20:11:10 +01:00
Jannik
0e5c697bce
set theme for dialogs
2020-11-23 09:53:44 +01:00
Jannik
830f7e753b
theme account fragment, new primary & accent color
2020-11-22 23:23:28 +01:00
Jannik
71079ddc92
add light and dark theme
...
* currently the theme can not be changed
2020-11-22 14:24:02 +01:00
Jannik
57897077ab
fix next episode button
2020-11-22 14:20:17 +01:00
Jannik
dcd6ebccea
theme rework preparation
2020-11-21 19:40:55 +01:00
Jannik
91c9b6d716
fix some minor player gui issues
...
* hide rwd_10 button when indicator is shown
* update remaining time more often
2020-11-21 18:05:34 +01:00
Jannik
256c32aa3c
add rwd/ffwd double tap indicator & pause/play on long press
2020-11-20 11:20:11 +01:00
Jannik
3880b3ab75
add watched callback for next episode
2020-11-18 18:58:39 +01:00
Jannik
0f0573e5bd
adjust size of rewind/fast forward button
2020-11-16 20:42:25 +01:00
Jannik
6ce263832b
use custom rewind/fast forward button with animations
2020-11-16 19:23:06 +01:00
Jannik
fd099e97e6
add visual indicator for rewind/forward gesture
2020-11-15 17:17:56 +01:00
Jannik
d4fa726f9c
improve autoplay next episode
...
* add animations to show/hide next episode button
* add option to disable/enable autoplay
2020-11-15 13:39:33 +01:00
Jannik
c8d80ddc9f
Fix my-list issues
...
* fix entries can be added multiple times to my list
* fix entries can’t be removed from my list after the app was restarted
* closes #15
2020-11-14 13:10:05 +01:00
Jannik
14377c3f18
don't show next episode, if there is no
2020-11-13 15:45:52 +01:00
Jannik
23713fc1e6
Player: add auto play next episode
2020-11-13 15:36:12 +01:00
Jannik
353ae6937a
Player: get media info by id
...
This allows us to get additional data (needed for "play next episode")
2020-11-13 11:23:09 +01:00
Jannik
2e0a114a80
player interface part 3
...
add double tap to rewind/forward
2020-11-08 18:05:46 +01:00
Jannik
0e9500e39d
Player: increase clickable area of back button
2020-11-07 18:30:12 +01:00
Jannik
27e8e1c3c2
player interface part 2
...
* replace current time position with remaining time
* show title and back button at the top
2020-11-07 18:23:09 +01:00