mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-05-27 01:06:42 +01:00
fix: offline playback using player component
This commit is contained in:
@@ -34,13 +34,10 @@ export const useDownloadedFileOpener = () => {
|
||||
const openFile = useCallback(
|
||||
async (item: BaseItemDto) => {
|
||||
try {
|
||||
const url = await getDownloadedFileUrl(item.Id!);
|
||||
|
||||
setOfflineSettings({
|
||||
item,
|
||||
});
|
||||
setPlayUrl(url);
|
||||
|
||||
console.log(
|
||||
"Go to offline movie",
|
||||
"/player?offline=true&itemId=" + item.Id
|
||||
);
|
||||
// @ts-expect-error
|
||||
router.push("/player?offline=true&itemId=" + item.Id);
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user