mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
using expo video
This commit is contained in:
parent
8826c82d03
commit
295d7ee8a7
@ -10,9 +10,9 @@ export function VideoAsset({ topicId, asset }) {
|
||||
return (
|
||||
<>
|
||||
{ state.url && (
|
||||
<Video source={{ uri: 'https://d23dyxeqlo5psv.cloudfront.net/big_buck_bunny.mp4' }} style={{ width: 200, height: 200 }} resizeMode={'cover'}
|
||||
useNativeControls
|
||||
resizeMode="contain" />
|
||||
<Video source={{ uri: state.url }} style={{ width: state.width, height: state.height }} resizeMode={'cover'}
|
||||
onReadyForDisplay={(e) => actions.setResolution(e.naturalSize.width, e.naturalSize.height)}
|
||||
useNativeControls resizeMode="contain" />
|
||||
)}
|
||||
</>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user