Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add transcoded download support #290

Closed
wants to merge 8 commits into from
Closed

Add transcoded download support #290

wants to merge 8 commits into from

Conversation

zoriya
Copy link
Owner

@zoriya zoriya commented Jan 19, 2024

The length of the stream is invalid (since ffmpeg seek at the beginning of the file to set the correct headers for length, but we already sent this part of the file to the client) so this makes bugged streams on android and players can't display a valid progress bar.
This could be fixed by using another container but only mkv allow all fonts/attachment so...

The other issue is that we don't know how big the file will be so the download can't display a progress bar (on android the current implementation always display -1%)

I wonder if we could just transcode the file completly and then send it.

@zoriya zoriya added this to the v4.2.0 milestone Jan 19, 2024
@zoriya zoriya self-assigned this Jan 19, 2024
@zoriya zoriya marked this pull request as draft January 29, 2024 12:13
@zoriya zoriya modified the milestones: v4.2.0, Backlog Jan 29, 2024
@zoriya
Copy link
Owner Author

zoriya commented May 15, 2024

Potential solution: download the file in a pseudo fs (like a worker) and after this is done, download the file from the worker via the browser (since the file would then be local this is instant and does not require user consent). This is kinda what mega does

@zoriya zoriya closed this May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant