-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix issue with playlist performance when there are a lot of videos
add handling of remote media buttons (play/pause/skip etc...) add exponentially increasing fast forward / rewind if the remote is pressed rapidly or held for long fix #247 fix #257
- Loading branch information
Showing
8 changed files
with
233 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import 'package:invidious/controllers/playlistController.dart'; | ||
|
||
class TvPlaylistController extends PlaylistController { | ||
bool miniTop = false; | ||
|
||
@override | ||
onReady() { | ||
super.onReady(); | ||
scrollController.addListener(onScroll); | ||
} | ||
|
||
TvPlaylistController({required super.playlist, required super.playlistItemHeight}); | ||
void setMiniTop(bool bool) { | ||
miniTop = bool; | ||
update(); | ||
} | ||
|
||
void onScroll() { | ||
if (scrollController.offset == 0) { | ||
setMiniTop(false); | ||
} else if (!miniTop) { | ||
setMiniTop(true); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.