DocSpace-client/packages/common/components/MediaViewer
2023-02-10 16:26:12 +05:00
..
sub-components Web: Client: added error media component 2023-02-06 16:10:43 +05:00
index.js Web: Moved all clients app to packages directory 2022-07-22 22:01:25 +03:00
MediaViewer.js Revert "Fixed Bug 61102 - Web: Common: removed the window with deletion if there are no rights or the room is in the archive" 2023-02-10 16:26:12 +05:00
MediaViewer.stories.js Web: Moved all clients app to packages directory 2022-07-22 22:01:25 +03:00
README.md Web: Moved all clients app to packages directory 2022-07-22 22:01:25 +03:00

MediaViewer

Used to open media files

Usage

import MediaViewer from "@docspace/common/components/MediaViewer";
<MediaViewer
  allowConvert={allowConvert}
  canDelete={canDelete}
  visible={visible}
  playlist={playlist}
  onDelete={onDelete}
  onDownload={onDownload}
  onClose={onClose}
  extsMediaPreviewed={extsMediaPreviewed}
  extsImagePreviewed={extsImagePreviewed}
/>

Properties

Props Type Required Values Default Description
allowConvert bool true
visible bool false
canDelete function
playlist array
onDelete function
onDownload function
onClose function
extsMediaPreviewed array
extsImagePreviewed array