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
694 stars 788 forks source link

[BUG] <title>Clicking the YouTube button replays the video instead of navigating to YouTube. This issue has been occurring since the last two updates; it worked fine in the older version. Please fix this. #967

Open msaadsaleem1001 opened 1 month ago

msaadsaleem1001 commented 1 month ago

Is there an existing issue for this?

Package

youtube_player_iframe (Default)

What happened?

We have a project in production that embeds YT videos in bulk so it was working fine until we updated it to the latest version of this package the bug is that it is "In player while playing the video if we click on YouTube logo or video title it is playing video from the start instead of navigating to youtube.com"

What is the expected behaviour?

The expected behavior is to navigate to the youtube.com.

How to reproduce?

Add Dependency in pubspec.yaml file: youtube_player_iframe: ^5.1.3 Import package and integrate players in the stateful widget and give the initial URL.

Flutter Doctor Output

[√] Flutter (Channel stable, 3.22.0, on Microsoft Windows [Version 10.0.19045.4717], locale en-US)
    • Flutter version 3.22.0 on channel stable at C:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5dcb86f68f (3 months ago), 2024-05-09 07:39:20 -0500
    • Engine revision f6344b75dc
    • Dart version 3.4.0
    • DevTools version 2.34.3

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\msaad\AppData\Local\Android\sdk
    • Platform android-34, build-tools 30.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[!] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.3.3)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.3.32825.248
    X The current Visual Studio installation is incomplete.
      Please use Visual Studio Installer to complete the installation or reinstall Visual Studio.

[√] Android Studio (version 2023.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-b2043.56-10550314)

[√] VS Code (version 1.91.1)
    • VS Code at C:\Users\msaad\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.88.0

[√] Connected device (4 available)
    • vivo 1908 (mobile) • SKDU5SSOMJRGZHSO • android-arm64  • Android 8.1.0 (API 27)
    • Windows (desktop)  • windows          • windows-x64    • Microsoft Windows [Version 10.0.19045.4717]
    • Chrome (web)       • chrome           • web-javascript • Google Chrome 127.0.6533.89
    • Edge (web)         • edge             • web-javascript • Microsoft Edge 127.0.2651.74

[√] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.
SediqeZangane commented 1 week ago

any updates?

leojaimes commented 10 hours ago

Is it possible to add the functionality or expose the title and YouTube branding click by adding those Javascript Channels?