ponnamkarthik / FlutterYoutube

Flutter Plugin to play youtube Videos
Apache License 2.0
126 stars 56 forks source link

Only playing in full screen #44

Open HardikDG opened 4 years ago

HardikDG commented 4 years ago

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 commented 4 years ago

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 ;) )