mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-02-06 04:32:21 +00:00
feat: continue playback with chromecast
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { SelectedOptions } from "@/components/ItemContent";
|
||||
import { BaseItemDto } from "@jellyfin/sdk/lib/generated-client";
|
||||
import { RemoteMediaClient, WebImage } from "react-native-google-cast";
|
||||
import { ticksToSeconds } from "./time";
|
||||
|
||||
export function chromecastLoadMedia({
|
||||
client,
|
||||
@@ -54,6 +55,6 @@ export function chromecastLoadMedia({
|
||||
images,
|
||||
},
|
||||
},
|
||||
startTime: 0,
|
||||
startTime: ticksToSeconds(item.UserData?.PlaybackPositionTicks) || 0,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user