react-native init webview_example
<WebView
javaScriptEnabled={true}
style={{flex: 1}}
source={{uri: `https://www.youtube.com/embed/IPV3rQtctkM`}}
/>
Run.
Video does not show (only black screen) but audio does play fine
Full source code is https://github.com/mehcode/rn-scratchpad/blob/master/index.android.js
I have no idea. I've been poking it for awhile.
Some more information. That example works 100% in Android <= 6. The bug seems to only exist in Android 7+. There must be a difference to WebView usage that we're not handling.
Another update. I've reduced this bug down to just raw android and have the same behavior.
@mehcode I have the exact same problem on Android Nexus 5 emulator. The embedded video only has audio. Do you have any solution now?
I just gave up and use react-native-video
Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally!
If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:
If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.
Did the original problem occur in the emulator and on actual device as well? (hint: maybe emulator only?, second hint, make sure you haven't disabled hardware acceleration accidentally).