[iOS] Displaying white box instead of video
See original GitHub issueHi,
I am using this for iOS app. I have already ran the link command. Please find details below
"dependencies": {
"react": "16.4.1",
"react-native": "0.56.0",
"react-native-youtube": "^1.1.0"
},
Below is the code
<View style={styles.container}>
<YouTube
videoId="tmIIOsO95Yw" // The YouTube video ID
play={true} // control playback of video with true/false
fullscreen={true} // control whether the video should play in fullscreen or inline
loop={true} // control whether the video should loop when ended
style={{ alignSelf: 'stretch', height: 300 }}
onReady={e => console.log('onReady has been loaded')}
onError={e => {
console.error('error occured')
}}
/>
</View>
Simulator iphone6
On double click on white screen, I see this
Please suggest how to resolve this.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:7
Top Results From Across the Web
Iphone 11 Max Pro Video only white screen…
Iphone 11 Max Pro Video only white screen with audio of recording ... Hey all, I know this question has been asked but...
Read more >[iOS] Displaying white box instead of video · Issue #309 - GitHub
Hi, I am using this for iOS app. I have already ran the link command. Please find details below "dependencies": { "react": "16.4.1", ......
Read more >How to Easily Fix the iPhone White Screen of Death - Lifewire
If an iPhone screen turns black and white, a setting has probably been changed. Go to Settings > Accessibility > Display & Text...
Read more >White Box appear on screen when keyboard is displayed
After pulling my hair out for an hour I figure out the cause: The keyboard was shrinken. In IOS, you can shrink the...
Read more >YouTube search missing results or blank on Safari for Mac users
Turn on the developer menu in Safari preferences. Then change your user agent to something like Chrime or Firefox or iPad. Chances are...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Maybe this info will be useful for any…
Manually import to Xcode (without Podfile).
1) Add library to Xcode
-Right Click on Libraries dir -> Add Files to “Your Project name”->…/node_modules/react-native-youtube/RCTYouTube.xcodeproj
2) Linking library
-Add libRCTYouTube.a to Linked Frameworks and Libraries
3) Manually import YTPlayerView-iframe-player.html
3.1 copy YTPlayerView-iframe-player.html from …/node_modules/react-native-youtube/assets/ to YOUR_APP/ios/assets/ 3.2. In Xcode Right Click on your root -> Add Files to “Your Project name” - find YTPlayerView-iframe-player.html from your ios/assets/
I do not know why it is so difficult, but these steps help me.
Player example in app:
@LeonidVeremchuk worked for me 👍