Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Fullscreen mode not working #37

Closed
federicomiralles opened this issue Jun 25, 2020 · 1 comment
Closed

[Android] Fullscreen mode not working #37

federicomiralles opened this issue Jun 25, 2020 · 1 comment

Comments

@federicomiralles
Copy link

Describe the bug
Even though I have set allowsFullscreenVideo: true within webViewProps the video is still being playing in regular mode (I think it's called inline) on Android.

Smartphone (please complete the following information):

  • Device: Pixel 3
  • OS + version: Android 9 (Pie)
  • react-native-youtube-iframe 1.2.4
  • react-native-webview 10.3.1
  • react-native 0.62.2

Additional context

<YoutubePlayer
          play={playing}
          height={75}
          width={150}
          videoId={YOUTUBE_VIDEO_ID}
          webViewProps={{
            allowsInlineMediaPlayback: false,
            allowsFullscreenVideo: true,
          }}
          onChangeState={state => {
            if (state === 'paused' || state === 'ended') {
              setPlaying(false);
            }
          }}
          initialPlayerParams={{
            modestbranding: true,
          }}
        />
@LonelyCpp
Copy link
Owner

LonelyCpp commented Jun 25, 2020

Hi, allowsInlineMediaPlayback is an iOS only flag. documentation

Android (chrome) by default plays videos inline at the moment, and there is no way to force fullscreen as of now. I am looking at ways to solve this in android. I'll keep you posted! (#19)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants