test fix
This commit is contained in:
parent
2099d3d64d
commit
9728906556
2 changed files with 16 additions and 4 deletions
|
|
@ -23,13 +23,17 @@ void main() {
|
|||
final sessions = <RemoteSession>[];
|
||||
|
||||
PlaybackController buildController() => PlaybackController(
|
||||
// Non-null so songs count as streamable; no real player exists on the
|
||||
// test host (audio unsupported), so this URI is never opened.
|
||||
// Non-null so songs count as streamable; no real player is created
|
||||
// (audioEnabled: false), so this URI is never opened. Forcing audio off
|
||||
// keeps the test headless on any host — a macOS/iOS CI runner would
|
||||
// otherwise build a just_audio AudioPlayer against uninitialized
|
||||
// platform channels and throw.
|
||||
streamUriFor: (s) => Uri.parse('http://host.local/stream/${s.id}'),
|
||||
coverArtUriFor: (_) => null,
|
||||
serverKeyGetter: () => serverKey,
|
||||
onArt: (_) {},
|
||||
onPlay: (_) {},
|
||||
audioEnabled: false,
|
||||
);
|
||||
|
||||
RemoteSession newSession(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue