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

Only playing in full screen #44

Open
HardikDG opened this issue Sep 5, 2019 · 1 comment
Open

Only playing in full screen #44

HardikDG opened this issue Sep 5, 2019 · 1 comment

Comments

@HardikDG
Copy link

HardikDG commented Sep 5, 2019

I have added this much code to integrate it. I am checking in iOS 12.4 The issue I am facing is when I call this, it always open it in the full screen. I have seen the default is fullScreen = false, Still, I have added fullScreen: false to specify not open in full screen still it opens in full screen.

    FlutterYoutube.playYoutubeVideoByUrl(
      apiKey: "AIzaSyDS6Aoo-Srrs5tHVfw6fcGfTaif-kWxtnA",
      videoUrl: "https://www.youtube.com/watch?v=ZtfItHwFlZ8",
      fullScreen: false
    );

Does anyone have a solution for this?

@boylenssen
Copy link

boylenssen commented Oct 15, 2019

I checked the code and I see for Android, it starts an Activity

image

I'm not that familiar with calling native code in Flutter yet, but to be able to use it as a widget, it should at least use PlatformView. So I don't think this package will support this atm

It just opens a native activity (or whatever it is called on iOS ;) )

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