-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
WebTorrent: Certain file types do not render correctly #5326
Comments
Test Plan
|
…ext-like files Fixes: brave/brave-browser#5326 Previously, images and PDFs would not render at all. Other formats would render in a very tiny iframe which was unusable. Unsupported formats would render as gibberish text. Now, we properly support images, centered, with a black background behind them, just like for audio and video. For PDFs, we use the native built-in PDF viewer and render at 100% width and height. For text-like files, we render them in a full-screen iframe with the default white page background. For audio, we now support FLAC, M4B, M4P, and OGA formats. The browser still has to support the specific codec used within the file, but we'll render an <audio> tag and at least attempt to play it.
Verification PASSED on
Verification passed on
Verification passed on
|
@feross I noticed that the background usually goes completely black when opening files as per: All the files are opening correctly, but after ~5s or so, the background goes black. Is this expected behaviour? Why not keep the background white? Let me know if this is an issue and I can create a new GH bug 👍 |
You can open a new GH bug for this. It shouldn't take this long to make the background black. The goal was to ensure that media files have a black background. But the main torrent interface has a white background, so this is handled in the Redux state. But it seems like this can take a really long time to run in your case. That's not good. Also, the black background makes this image completely unviewable. I'd like to check in Chromium and see if this image has the same viewability problem, since they also use a black background. |
Reposting an issue mentioned in a comment:
Certain file types which the browser does not know how to open just appear as gibberish in a text box, and there is no UI option to "save as". The "save" only works with media files that the browser knows should be rendered in the media player. For example try downloading a torrent with an m4b file in it in brave on macos. I get this:
Originally posted by @Matt812 in #1436 (comment)
The text was updated successfully, but these errors were encountered: