We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a RSSHub route that can provide videos, but it cannot be previewed in the app like Bilibili videos.
If the video link contains "embed=1", it indicates that it can be embedded and played as an iframe.
packages/utils/src/url-for-video.ts
const u = new URL(url) const params = u.searchParams if (params.get("embed") === "1") { params.append("controls", mini ? "0" : "1") params.append("muted", mini ? "1" : "0") return `${u.origin}${u.pathname}?${params.toString()}` }
I have tested this code locally.
No response
The text was updated successfully, but these errors were encountered:
FOL-1437 General method for previewing videos in App
Sorry, something went wrong.
No branches or pull requests
Clear and concise description of the problem
I have a RSSHub route that can provide videos, but it cannot be previewed in the app like Bilibili videos.
Suggested solution
If the video link contains "embed=1", it indicates that it can be embedded and played as an iframe.
packages/utils/src/url-for-video.ts
I have tested this code locally.
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: