Open
Description
This could be similar to #26, but I'm not trying to get the video to work with a Modal button, I'm just trying to display the Youtube video on my screen.
When screen loads, thumbnail loads properly
But when trying to play video:
Here is a video from Google Pixel 2 API 27 Simulator, audio works great, and you can press all the buttons, just the video doesnt show. It also works great on iOS with same code.
Here is the code:
const DeepDiveYoutubeItem = ({ deepDiveItem, parentComponentId }) => {
const SCREEN_WIDTH = Dimensions.get('window').width;
return (
<YTPlayer
height={SCREEN_WIDTH*(9/16)}
width={SCREEN_WIDTH}
videoId={deepDiveItem.primary} // 'BHenknGIZPs'
onError={e => { console.log('e', e); }}
/>
);
};
export default DeepDiveYoutubeItem;