refactor: trakt/download hardening and cleanup sweep
This commit is contained in:
+1
-5
@@ -288,11 +288,7 @@ class Media {
|
||||
/// Optional start position for playback.
|
||||
final Duration? start;
|
||||
|
||||
/// Optional pre-known video frame rate (from server metadata), used to drive
|
||||
/// display refresh-rate matching before the first frame renders.
|
||||
final double? fps;
|
||||
|
||||
const Media(this.uri, {this.headers, this.start, this.fps});
|
||||
const Media(this.uri, {this.headers, this.start});
|
||||
|
||||
@override
|
||||
String toString() => 'Media($uri)';
|
||||
|
||||
@@ -487,11 +487,6 @@ abstract class PlayerBase with PlayerStreamControllersMixin implements Player {
|
||||
trackController.add(_state.track);
|
||||
}
|
||||
|
||||
/// Update the internal state.
|
||||
void updateState(PlayerState Function(PlayerState) update) {
|
||||
_state = update(_state);
|
||||
}
|
||||
|
||||
@protected
|
||||
void clearTracks() {
|
||||
const empty = Tracks();
|
||||
|
||||
Reference in New Issue
Block a user