VideoPlayerProps: {
    fileName?: string;
    isDeleting?: boolean;
    maxHeight?: string | number;
    onDelete?: () => void;
    showDuration?: boolean;
    url: string;
}

Props for the VideoPlayer component.

Type declaration

  • OptionalfileName?: string

    Optional filename to be shown below the video.

  • OptionalisDeleting?: boolean

    Optional flag to indicate that the item is currently being deleted. When true, the delete icon is replaced with a loading spinner.

    false
    
  • OptionalmaxHeight?: string | number

    Optional maxHeight for the video player.

  • OptionalonDelete?: () => void

    Optional onDelete callback function to handle delete action.

  • OptionalshowDuration?: boolean

    Flag to display the video's duration.

  • url: string

    URL of the video to be played.