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

773 streaming uncompressed data #778

Merged
merged 1 commit into from
Jun 2, 2024
Merged

773 streaming uncompressed data #778

merged 1 commit into from
Jun 2, 2024

Conversation

BPerlakiH
Copy link
Collaborator

@BPerlakiH BPerlakiH commented May 29, 2024

Fixes: #773

Reading the content in "chunks".
Both direct and indirect / ZIM streaming data solution is added.
Currently the ZIM streaming is not in use, until the offset issue is resolved on the libZIM side (see openzim/libzim#886).

There are still issues with syncing the urlScheme closing, and maybe it's worth to add a Task cancelation, when the user leaves the currently loading page.

Copy link
Member

@rgaudin rgaudin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are still issues with syncing the urlScheme closing, and maybe it's worth to add a Task cancelation, when the user leaves the currently loading page.

Well, better do this now because it will get more complex once you had range requests handling…

Model/Entities/Entities.swift Outdated Show resolved Hide resolved
Model/Utilities/WebKitHandler.swift Outdated Show resolved Hide resolved
rgaudin
rgaudin previously approved these changes May 30, 2024
Copy link
Member

@rgaudin rgaudin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM now. Let's discuss tomorrow about what to do regarding the libzim issue

@BPerlakiH BPerlakiH changed the title 773 streaming data 773 streaming uncompressed data Jun 1, 2024
@BPerlakiH BPerlakiH requested a review from rgaudin June 1, 2024 09:55
@BPerlakiH BPerlakiH marked this pull request as ready for review June 1, 2024 09:55
@BPerlakiH
Copy link
Collaborator Author

With the latest changes we are reading directly for media type (both audio and video),
whereas for uncompressed content we use the full range, so no reading "in chunks".

@kelson42
Copy link
Contributor

kelson42 commented Jun 1, 2024

@BPerlakiH CI does not pass, and would be better to have a git log cleaner

@kelson42
Copy link
Contributor

kelson42 commented Jun 1, 2024

@BPerlakiH Does it fix #744 too?

rgaudin
rgaudin previously approved these changes Jun 1, 2024
Copy link
Member

@rgaudin rgaudin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ; albeit the CI and the git history

@BPerlakiH BPerlakiH dismissed rgaudin’s stale review June 1, 2024 20:18

The merge-base changed after approval.

@kelson42 kelson42 removed the request for review from mgautierfr June 1, 2024 20:21
@BPerlakiH
Copy link
Collaborator Author

Yes, it is fixing #744 too.
I have update the unit tests as well, and squashed down the logs.

@BPerlakiH BPerlakiH requested a review from rgaudin June 1, 2024 23:32
@kelson42 kelson42 merged commit 4ca9552 into main Jun 2, 2024
4 checks passed
@kelson42 kelson42 deleted the 773-streaming-data branch June 2, 2024 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Streaming uncompressed data (with direct access)
3 participants