Skip to content

[video_player] Support for listening to precise duration events #90080

@bdlukaa

Description

@bdlukaa

Steps to Reproduce

  1. Run flutter create bug.
  2. Update pubspect.yaml with video_player: ^2.2.0 under dependencies
  3. Add a video player with a controller and listen to the events. Print the current position using controller.value.position.

Expected results:

Every millisecond was printed on the console.

Actual results:

The console was printed at each second.

Flutter Doctor
[√] Flutter (Channel stable, 2.5.0, on Microsoft Windows [versão 10.0.19043.1165], locale pt-BR)
    • Flutter version 2.5.0 at C:\Users\bruno\Documents\flutter\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4cc385b4b8 (7 days ago), 2021-09-07 23:01:49 -0700
    • Engine revision f0826da7ef
    • Dart version 2.14.0

[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc5)
    • Android SDK at C:\Users\bruno\AppData\Local\Android\sdk
    • Platform android-30, build-tools 31.0.0-rc5
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

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

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.8.5)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.8.31005.135
    • Windows 10 SDK version 10.0.18362.0

[√] Android Studio (version 4.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 1.8.0_242-release-1644-b01)

[√] VS Code (version 1.60.1)
    • VS Code at C:\Users\bruno\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.26.0

[√] Connected device (4 available)
    • moto x4 (mobile)  • 0040962706 • android-arm64  • Android 9 (API 28)
    • Windows (desktop) • windows    • windows-x64    • Microsoft Windows [versão 10.0.19043.1165]
    • Chrome (web)      • chrome     • web-javascript • Google Chrome 93.0.4577.63
    • Edge (web)        • edge       • web-javascript • Microsoft Edge 93.0.961.47

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterp: video_playerThe Video Player pluginpackageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions