Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

get clicked related video's url in youtube_player_iframe

$
0
0

I'm using youtube_player_iframe in my flutter app. I want to know when a user click on a related video that appear after the end of the current video and get that video's url or id.

Here's my code if needed:

The controller

late YoutubePlayerController videoPlayerController = YoutubePlayerController(    initialVideoId: videoId,    params: YoutubePlayerParams(      autoPlay: false,      loop: false,      mute: false,      showControls: true,      showFullscreenButton: true,      privacyEnhanced: true,    ),  );

The widget

YoutubePlayerIFrame( controller: videoPlayerController, aspectRatio: 16 / 9,),

I looked into the docs but couldn't find what I wanted.


Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>