Published a new package youtube_player_iframe. This package will be migrated to use it as dependency.
The new package is one-to-one mapping of Youtube Iframe Player API.
The current package have some issues like:
How the new package try to solve this?
The current package will be refactored to use the new package as dependency. It will provide the same custom skin as it is providing today and I'll try not to add any large breaking changes.
But the package will only be optimsed to use single player per page. It won't support list of player as it's very complex to handle fullscreen switch, with multiple players that too with existing limitations of platform views. The new package should be used for the purpose.
After the current package is refactored. It will be almost similar in terms of features with the new one, with all the added refactors and optimizations, with a custom skin on top of it.
धन्यवाद। 감사합니다. Thank you!
Thanks @sarbagyastha! To confirm, when the refactoring is complete for using this new iframe library, then ads will start to show up?
Also, is there a guesstimate as to how long it will take to complete the refactoring? We're worried that we're breaching Youtube's policies since ads aren't showing up with the current player.
To confirm, when the refactoring is complete for using this new iframe library, then ads will start to show up?
You can read Requirements for ads in embedded player. The new library compiles with all the requirements. But ads are not showing up, so it could be issue with iFrame Player API itself.
Also, is there a guesstimate as to how long it will take to complete the refactoring?
It shouldn't take long, have been slightly busy lately so it's being delayed.
We're worried that we're breaching Youtube's policies since ads aren't showing up with the current player.
We're not explicitly blocking the ads, it's not showing up by itself. Also, this package is not using any third party APIs or hacks. So, it doesn't breach YouTube's Policies.
iOS is always black screen (Android is good)
Waiting for the update so that the ads show up. Good work @sarbagyastha
Wishing you all the luck.
You'll need to enable desktopMode, for the ads to show up in youtube_player_iframe.
Is there a way to disable long press ( because options appear) ?
Is there a way to disable share button at top?
Is there a way to disable long press ( because options appear) ?
You can try absorbing long press gesture.
Is there a way to disable share button at top?
You can use hideTopMenu() to do that, as below.
https://github.com/sarbagyastha/youtube_player_flutter/blob/605ac8e223603792e0921ddb72651e92d71def24/packages/youtube_player_iframe/example/lib/main.dart#L70-L76
@sarbagyastha how is the refactoring coming to include the new youtube_player_iframe package in the player? We're launching our app next month but can't include the player until the ads issue is resolved, thank you!
@sarbagyastha does this package support Google Ad Manager tags/ ads in general? and how would enable ads on the player
Hello,
When to add the video quality parameter, we are looking forward to this :)
Can we do full screen with auto rotate ?
This plugin works much better then youtube flutter player , however , quality is not very clear - is there an option to control the quality and whether we can get HD quality . I have a 1000MB connection and quality is poor.
@sarbagyastha Even with desktopMode active, I don't see the ads showing up. Can you check and confirm?
youtube_player_iframe support live streams ?
somehow for me when using youtube_player_iframe on flutter web, hideTopMenu() and hidePauseOverlay() doesn't work
@sarbagyastha How do we force the PlatformView to show up within the flutter screen ?
It seems to be opening up a whole Platform when ever I navigate to the Youtube Player Screen.
@sarbagyastha How do we force the PlatformView to show up within the flutter screen ?
It seems to be opening up a whole Platform when ever I navigate to the Youtube Player Screen.
I'm having the same issue as @adeolaex . When I enter the page which is intended to show the player, it navigates to a new page instead.

Is there some sort of additional configuration needed to see the player in the page, or does this just happens because it is an emulator?
The same issue on ios 14.2. Video opened in new page instead of current Container
@sarbagyastha its been a year..
Anyone here tried and got to make the advertisement play in the player.?
I tried several methods and failed :(
@sarbagyastha Even with desktopMode active, I don't see the ads showing up. Can you check and confirm?
Any solutions after this?
Most helpful comment
धन्यवाद। 감사합니다. Thank you!