Skip to content

[BUG] Does youtube_player_flutter increment YouTube video view count when played in-app? #1104

Description

@anotheranotherhoon

Is there an existing issue for this?

  • I have searched the existing issues

Package

youtube_player_flutter

What happened?

I am using youtube_player_flutter to play YouTube videos inside my Flutter app. I want to know if playing videos through this plugin counts as a view on YouTube.

We start the YoutubePlayerController with autoPlay set to false. Before running the controller, we call pause() to temporarily stop the video. After completing some preliminary actions, we then call .play().

We would like to confirm whether handling the YoutubePlayerController in this way will still count as a valid view on YouTube.

final YoutubePlayerController controller = YoutubePlayerController( initialVideoId: videoId ?? '', flags: const YoutubePlayerFlags( autoPlay: false,

What is the expected behaviour?

We would like to confirm whether handling the YoutubePlayerController in this way will still count as a valid view on YouTube.

How to reproduce?

  1. Initialize YoutubePlayerController with autoPlay: false.
  2. Before playing, call pause() on the controller.
  3. Perform any preliminary actions.
  4. Call .play() to start the video.
  5. Observe whether the view counts as a YouTube view.

Flutter Doctor Output

[✓] Flutter (Channel stable, 3.29.3, on macOS 15.5 24F74 darwin-arm64, locale ko-KR) [3.3s]
    • Flutter version 3.29.3 on channel stable at /Users/anotherhoon/fvm/versions/3.29.3
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ea121f8859 (4달 전), 2025-04-11 19:10:07 +0000
    • Engine revision cf56914b32
    • Dart version 3.7.2
    • DevTools version 2.42.3

[!] Android toolchain - develop for Android devices (Android SDK version 35.0.1) [1,267ms]
    • Android SDK at /Users/anotherhoon/Library/Android/sdk
    • Platform android-35, build-tools 35.0.1
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.6+-13355223-b631.42)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses

[✓] Xcode - develop for iOS and macOS (Xcode 16.4) [770ms]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16F6
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web [12ms]
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.3) [11ms]
    • Android Studio at /Applications/Android Studio.app/Contents
    • 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 21.0.6+-13355223-b631.42)

[✓] VS Code (version 1.102.3) [10ms]
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (6 available) [6.5s]
    • SM A346N (mobile)                 • RFCW7117BSW               • android-arm64  • Android 15 (API 35)
    • 이창훈 (wireless) (mobile)           • 00008103-0016613E0107001E • ios            • iOS 18.5 22F76
    • 하마랩 IOS테스트폰 4 (wireless) (mobile) • 00008020-001464C43C88003A • ios            • iOS 18.5 22F76
    • macOS (desktop)                   • macos                     • darwin-arm64   • macOS 15.5 24F74 darwin-arm64
    • Mac Designed for iPad (desktop)   • mac-designed-for-ipad     • darwin         • macOS 15.5 24F74 darwin-arm64
    • Chrome (web)                      • chrome                    • web-javascript • Google Chrome 139.0.7258.67
    ! Error: Browsing on the local area network for Hoon iphone16pro. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
    ! Error: Browsing on the local area network for 이창훈의 Apple Watch. Ensure the device is unlocked and discoverable via Bluetooth. (code -27)
    ! Error: Browsing on the local area network for 김규태. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources [1,235ms]
    • All expected network resources are available.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions