react-native-video-processing: Problem with source, no view loaded.
I’m trying the usage example from readme, i use
<VideoPlayer
....
source={{ uri: this.props.uri }}
....
/>
and also for Trimmer
<Trimmer
....
source={{ uri: this.props.uri }}
....
/>
but, i got warning ‘Failed prop type: Invalid prop source supplied to VideoPlayer’ and no view loaded, also same for Trimmer . i got this in ios and android. did i miss something ?
then i’m trying using source={require('./video.mp4')} no error and no view loaded.
if you don’t mind, would you add an example ?
thx
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 27 (13 by maintainers)
I think when the path is like yours, @RZulfikri, you need to prepend
file://to the path.