DocSpace-client/packages/common/components/MediaViewer
2023-07-05 16:38:22 +03:00
..
helpers Web:Common:Components:MediaViewer:Helpers Added a check for incorrect data 2023-03-20 14:33:44 +05:00
StyledComponents Web:Common:Components:MediaViewer:StyledComponents: Added entry point index.ts 2023-02-18 23:05:31 +05:00
sub-components Fix bug 63257 - Files.Media.Show an error when trying to open a remote media file from the Downloads panel. 2023-07-05 16:38:22 +03:00
types Web:Common:Components:MediaViewer:Types Updated type ContextMenuType 2023-02-13 18:17:12 +05:00
index.tsx web: Moved method to utils 2023-06-14 17:04:08 +04:00
MediaViewer.props.ts Web:Common:Components:MediaViewer Updated type getIcon 2023-02-13 13:46:50 +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