1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Rewrite upload media

This commit is contained in:
Zhiyuan Zheng
2020-12-30 00:56:25 +01:00
parent e841409523
commit 3473337442
23 changed files with 1136 additions and 1108 deletions

View File

@ -9,16 +9,9 @@ import { StyleConstants } from '@root/utils/styles/constants'
export interface Props {
sensitiveShown: boolean
video: Mastodon.AttachmentVideo | Mastodon.AttachmentGifv
width: number
height: number
}
const AttachmentVideo: React.FC<Props> = ({
sensitiveShown,
video,
width,
height
}) => {
const AttachmentVideo: React.FC<Props> = ({ sensitiveShown, video }) => {
const videoPlayer = useRef<Video>(null)
const [videoLoaded, setVideoLoaded] = useState(false)
const [videoPosition, setVideoPosition] = useState<number>(0)