Page MenuHomePhabricator

[web] Support encrypted media in <Multimedia>
ClosedPublic

Authored by bartek on Apr 3 2023, 3:19 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 6, 3:21 PM
Unknown Object (File)
Sat, Apr 27, 10:31 PM
Unknown Object (File)
Sat, Apr 27, 10:30 PM
Unknown Object (File)
Sat, Apr 27, 10:30 PM
Unknown Object (File)
Sat, Apr 27, 10:27 PM
Unknown Object (File)
Sat, Apr 27, 9:57 PM
Unknown Object (File)
Apr 15 2024, 6:07 PM
Unknown Object (File)
Mar 28 2024, 7:36 AM
Subscribers

Details

Summary

This diff modifies the <Multimedia> component to be able to display encrypted media.
The type and uri props are replaced by a single object representing an encrypted or non-encrypted media.

Depends on D7280

Test Plan

Both encrypted and decrypted media are displayed in the chat. Clicking on them opens a modal.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Apr 3 2023, 4:57 AM
atul requested changes to this revision.Apr 4 2023, 9:27 AM

I think the condition at web/media/multimedia.react.js:52-53 was intended to be || instead of &&?

Feel free to re-request review if I'm mistaken about something

web/media/multimedia.react.js
52–53 ↗(On Diff #24559)

Did you intend this to be || instead of &&?

I don't believe the condition here is "reachable?"

This revision now requires changes to proceed.Apr 4 2023, 9:27 AM
web/media/multimedia.react.js
52–53 ↗(On Diff #24559)

Indeed, good catch!

This revision is now accepted and ready to land.Apr 6 2023, 7:48 AM