ui
ui copied to clipboard
Video can not work
I use the latest platform(1.3.3). Video component can not work in this version.
Below is my code:
render() {
const { video } = this.props;
return (
<Screen styleName="paper">
<NavigationBar
share={{
title: video.name,
link: video.url,
}}
title={video.name}
animationName="boxing"
/>
<ScrollView>
<Video
source={{ uri: 'http://vd1.bdstatic.com/mda-hjuz46kuc541icqa/mda-hjuz46kuc541icqa.mp4?playlist=%5B%22hd%22%2C%22sc%22%5D' }}
/>
</ScrollView>
</Screen>
);
}
I don't know how to fix .......
Hey Andy,
I'm assuming this was done in an Android emulator?
I've run this both on iOS and Android emulators. On iOS it runs in the emulator. On Android it fails to display the actual video, only plays the sound and will actually show captions of YouTube videos if you enable them. On an Android device, it successfully displays (tested on my own Android device).
We'll look into the issue regarding Android emulators and the <Video />
component.
Yes, this issue appears in the Android simulator.