sarbagyastha / youtube_player_flutter

A Flutter plugin for inline playback or streaming of YouTube videos using the official iFrame Player API.
https://youtube.sarbagyastha.com.np
BSD 3-Clause "New" or "Revised" License
716 stars 832 forks source link

[BUG] when i click youtube title in mobile, it does not redirect. #898

Open jsolra opened 11 months ago

jsolra commented 11 months ago

I'm using it on mobile(iOS/Android). when i click youtube title in mobile, it does not redirect to the youtube web. Everything else works (redirected when you click on the YouTube icon) How do I solve this problem?

But that worked in the web.

version

my code


   YoutubePlayerController controller = YoutubePlayerController.fromVideoId(
      videoId: widget.videoId,
      autoPlay: true,
      params: const YoutubePlayerParams(
          mute: false,
          showFullscreenButton: true,
          color: 'red',
          showControls: true));

  @override
  Widget build(BuildContext context) {

    return YoutubePlayerScaffold(
        controller: controller,
        aspectRatio: ratio,
        backgroundColor: Colors.black,
        builder: (context, player) => widget.builder(context, player));
  }
DaemonInc commented 1 week ago

https://github.com/sarbagyastha/youtube_player_flutter/issues/967#issuecomment-2493142067 Same issue as this. You could make a temporary fix yourself using a fork.