-
Notifications
You must be signed in to change notification settings - Fork 305
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
I'm using MessageAttachmentsContent to render the UI previews for all types of files (audio, image, video) in a ModalBottomSheet (for forward and sharing from outside of the app) but if the user click on Play on the audio and then close the ModalBottomSheet the player continue to play.
I am not able to find a callback to properly handle the stop/destroy/pause the player itself.
I also see that seems the instance of the MessageAttachmentsContent is shared by the MessagesScreen but I wanted a new instance.
SDK version
- 6.28.0
To Reproduce
Steps to reproduce the behavior:
- Click on an audio message and try to forward that one using a ModalBottomSheet that contains MessageAttachmentsContent to render the preview of the file
- Click Play on the Player
- Close the ModalBottomSheet
- The audio continue to play
Expected behavior
Player should be paused/destroyed/stopped using a callback to handle the behaviour.
Device:
- Vendor and model: Any
- Android version: Any
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working