Skip to content

Video player, audio track doesn't stop[BUG] #752

@yeras-is

Description

@yeras-is

Describe the bug:
playback of video/audio doesn't stop when widget disposed

Example
https://github.com/yeras-is/video_error

Expected behavior:
playback stop when widget dispose

Device details and Flutter/Dart/flutter_html versions:
flutter_html - 2.1.0
devices= [ android emulator, Samsung A80, iOS simulator, Iphone 11 ]

Flutter doctor

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel dev, 2.3.0-12.1.pre, on Microsoft Windows [Version 10.0.19041.1052], locale ru-KZ)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.7.2)
[√] Android Studio (version 4.1.0)
[√] IntelliJ IDEA Ultimate Edition (version 2020.3)
[√] VS Code (version 1.56.2)
[√] Connected device (4 available)

• No issues found!

Used HTML

  <!DOCTYPE html>
   <html lang="en">
   <link rel="stylesheet" href="https://cdn.plyr.io/3.6.8/plyr.css"/>
   <body>
   <video id="player" controls>
   <source src="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-576p.mp4" type="video/mp4" size="576"/>
   </video>
   <script src="https://cdn.plyr.io/3.6.8/plyr.polyfilled.js"></script>
   <script>const player = new Plyr('#player');</script>
   </body>
   </html>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions