From 1edf0e1add29f7f342d38b595a7a563a75414d0c Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 21 May 2026 08:38:29 +0300 Subject: Implement MediaDetailScreen with metadata, favorite toggle, player routing (ya) Co-Authored-By: Claude Sonnet 4.6 --- player-android/lib/api/player_api_client.dart | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'player-android/lib/api') diff --git a/player-android/lib/api/player_api_client.dart b/player-android/lib/api/player_api_client.dart index 9e67d9e..e9d99a0 100644 --- a/player-android/lib/api/player_api_client.dart +++ b/player-android/lib/api/player_api_client.dart @@ -144,6 +144,15 @@ class PlayerApiClient { String thumbnailUrl(int mediaId) => '${rawDio.options.baseUrl}/api/v1/media/$mediaId/thumbnail'; + /// Returns the URL used to stream a media item. + /// + /// Mirrors [thumbnailUrl]: the API path `/api/v1/media/{id}/stream` is kept + /// in one place and Dio internals are never leaked into the UI layer. + /// The base URL is derived from the underlying Dio instance so it stays + /// consistent with every other API call. + String streamUrl(int mediaId) => + '${rawDio.options.baseUrl}/api/v1/media/$mediaId/stream'; + Future regenerateThumbnail(int mediaId) => throw UnimplementedError(); Future toggleFavorite(int mediaId) => throw UnimplementedError(); -- cgit v1.2.3