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

Fix video streaming endpoint #8212

Merged
merged 1 commit into from
Oct 15, 2024
Merged

Conversation

egbertbouman
Copy link
Member

This PR fixes the video streaming endpoint.

Once merged you can stream MP4s directly from the browser by going to /api/downloads/<infohash>/stream/<fileindex>.

@egbertbouman egbertbouman force-pushed the fix_stream_ep branch 5 times, most recently from fc92d15 to a038361 Compare October 15, 2024 08:19
@egbertbouman
Copy link
Member Author

validate

@egbertbouman egbertbouman marked this pull request as ready for review October 15, 2024 09:17
from pathlib import Path, PurePosixPath
from typing import TYPE_CHECKING, Any, Optional, TypedDict, cast

import libtorrent as lt
from aiohttp import web
from aiohttp.web_exceptions import HTTPPartialContent, HTTPRequestRangeNotSatisfiable
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting: I never knew this existed. I guess we should start using this elsewhere, in Tribler and IPv8, too.

@egbertbouman egbertbouman merged commit bc6b02c into Tribler:main Oct 15, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants