diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-08-27 22:15:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-27 22:15:59 +0100 |
commit | b69c40da33c584edbaff3f1112aad727a3631a77 (patch) | |
tree | 55207e6fc822cc76d284ded8813f18dac164a662 /src/view/com/util/post-embeds/VideoEmbedInner/VideoWebControls.tsx | |
parent | 9b534b968da2a87e2cfc0c8e62cda127f98edae1 (diff) | |
download | voidsky-b69c40da33c584edbaff3f1112aad727a3631a77.tar.zst |
add indicator of time remaining (#5000)
Diffstat (limited to 'src/view/com/util/post-embeds/VideoEmbedInner/VideoWebControls.tsx')
-rw-r--r-- | src/view/com/util/post-embeds/VideoEmbedInner/VideoWebControls.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/view/com/util/post-embeds/VideoEmbedInner/VideoWebControls.tsx b/src/view/com/util/post-embeds/VideoEmbedInner/VideoWebControls.tsx index 09524b91c..7a4c6e914 100644 --- a/src/view/com/util/post-embeds/VideoEmbedInner/VideoWebControls.tsx +++ b/src/view/com/util/post-embeds/VideoEmbedInner/VideoWebControls.tsx @@ -36,6 +36,7 @@ import {Play_Filled_Corner0_Rounded as PlayIcon} from '#/components/icons/Play' import {SpeakerVolumeFull_Stroke2_Corner0_Rounded as UnmuteIcon} from '#/components/icons/Speaker' import {Loader} from '#/components/Loader' import {Text} from '#/components/Typography' +import {TimeIndicator} from './TimeIndicator' export function Controls({ videoRef, @@ -252,6 +253,9 @@ export function Controls({ style={a.flex_1} onPress={onPressEmptySpace} /> + {active && !showControls && !focused && ( + <TimeIndicator time={Math.floor(duration - currentTime)} /> + )} <View style={[ a.flex_shrink_0, |