mirror of
https://github.com/balzack/databag.git
synced 2025-05-04 15:35:16 +00:00
auto play video
This commit is contained in:
parent
51b44eb258
commit
383961d467
@ -46,7 +46,7 @@ export function VideoAsset({ topicId, asset }: { topicId: string, asset: MediaAs
|
|||||||
</div>
|
</div>
|
||||||
{ state.dataUrl && (
|
{ state.dataUrl && (
|
||||||
<div className={classes.video} style={{ width, height }}>
|
<div className={classes.video} style={{ width, height }}>
|
||||||
<video className={classes.image} controls width={width} height={height} src={state.dataUrl} playsInline={true} />
|
<video className={classes.image} controls width={width} height={height} src={state.dataUrl} playsInline={true} autoPlay={true} />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{ state.loading && state.loadPercent > 0 && (
|
{ state.loading && state.loadPercent > 0 && (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user