Hsiao-Chien-Ti
Hsiao-Chien-Ti
> I also ran into this problem. Apparently the loop functionality only works in conjunction with a playlist (see [SO](https://stackoverflow.com/questions/25779966/youtube-iframe-loop-doesnt-work)). > > **EDIT: first solution did not work** > >...
I guess you are mixing two different packages. Both youtube_player_flutter and youtube_player_iframe have YoutubePlayerController. However, videoId only exists in youtube_player_flutter and params only exists in youtube_player_iframe. You can instead use...
Try YoutubePlayerScaffold instead of YoutubePlayer. ``` YoutubePlayerScaffold( controller: _youtubeController, aspectRatio: 16 / 9, builder: (context, player) { return SingleChildScrollView( child: Column( children: [player], )); }, ) ```