Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "app"
version = "1.1.10"
version = "1.1.11"
description = "A Tauri App"
authors = ["you"]
edition = "2021"
Expand Down
1 change: 1 addition & 0 deletions app/src-tauri/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ async fn stream_media(
return HttpResponse::Ok()
.insert_header(("Content-Type", mime))
.insert_header(("Content-Length", size.to_string()))
.insert_header(("Accept-Ranges", "bytes"))
.insert_header(("Cache-Control", "private, max-age=120"))
.streaming(stream);
} else {
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/dashboard/MediaPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function MediaPlayer({ file, onClose, onNext, onPrev, currentIndex, total

const folderIdParam = activeFolderId !== null ? activeFolderId.toString() : 'home';
const streamUrl = streamToken
? `http://localhost:14200/stream/${folderIdParam}/${file.id}?token=${streamToken}`
? `http://localhost:14201/stream/${folderIdParam}/${file.id}?token=${streamToken}`
: null;

const isVideo = isVideoFile(file.name);
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/dashboard/PdfViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function PdfViewer({ file, onClose, onNext, onPrev, currentIndex, totalIt
setNumPages(0);

const folderIdParam = activeFolderId !== null ? activeFolderId.toString() : 'home';
const streamUrl = `http://localhost:14200/stream/${folderIdParam}/${file.id}?token=${streamToken}`;
const streamUrl = `http://localhost:14201/stream/${folderIdParam}/${file.id}?token=${streamToken}`;

const loadingTask = pdfjsLib.getDocument(streamUrl);

Expand Down