Skip to content

Video not visible on android emulator #29

Open
@dmathewwws

Description

@dmathewwws

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

Screenshot_1591137105

But when trying to play video:

Screenshot_1591137111

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.

ezgif com-video-to-gif

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions