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:
@ -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)
|
||||
|
Reference in New Issue
Block a user