You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating the Youtube Player Widget in build()
Container(
width: 250,
height: 160,
child: YoutubePlayerIFrame(
controller: _controller!,
aspectRatio: 16 / 9,
),
)
Please advise how to get this fixed.
Appreciate your help on this :)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am trying to develop a flutter application, recently added Youtube player package to it to display youtube videos.
While testing, application was crashing many times. Later I realized that I am getting the below message in my debug console.
W/zygote ( 6452): Attempt to remove non-JNI local reference, dumping thread
D/EGL_emulation( 6452): eglMakeCurrent: 0x84a3cc60: ver 2 0 (tinfo 0x9c6030f0)
I have tried both the packages, I am getting this error.
youtube_player_flutter: ^8.1.0
youtube_player_iframe: ^2.2.1
I am initializing the controller in initState()
_controller = YoutubePlayerController(
initialVideoId: "xyz",
params: YoutubePlayerParams(
autoPlay: false,
showControls: true,
showFullscreenButton: true,
),
);
I am creating the Youtube Player Widget in build()
Container(
width: 250,
height: 160,
child: YoutubePlayerIFrame(
controller: _controller!,
aspectRatio: 16 / 9,
),
)
Please advise how to get this fixed.
Appreciate your help on this :)
Beta Was this translation helpful? Give feedback.
All reactions