[Bug]: Voice recording doesnt stop sometimes when user plays an recording or opens an attachment
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- ios, swift
- Domain
- audio-video-rtc, mobile
Research direction
The issue names StreamChatUI's VoiceRecordingVC audioPlayer callback and ChatMessageListRouter.showGallery entry points; start by tracing those flows and reproducing the intermittent case on the stated iOS and Xcode versions. Done means recording reliably stops when playback begins or an attachment opens, verified against both reproduction steps.
Written by the indexing model from the issue text.
Description
Actual behaviour
We have added custom code so that,
- Voice recording stops if user plays any already sent recordings
class HMECustomVoiceRecordingViewController: VoiceRecordingVC { override func audioPlayer(_ audioPlayer: any AudioPlaying, didUpdateContext context: AudioPlaybackContext) { if (content.state == .locked || content.state == .recording), context.state == .loading { self.audioRecorder.stopRecording() } super.audioPlayer(audioPlayer, didUpdateContext: context) } } - Or User opens any attachment
class HMECustomChatMessageListRouter: ChatMessageListRouter { weak var galleryShownDelegate: HMECoachChatShowGalleryDelegate? override func showGallery(message: StreamChat.ChatMessage, initialAttachmentId: AttachmentId, previews: [any GalleryItemPreview]) { super.showGallery(message: message, initialAttachmentId: initialAttachmentId, previews: previews) galleryShownDelegate?.galleryViewShown() } }
Expected behaviour
Recording has to be stopped
Steps to reproduce
1. Start recording
2. Open an attachment or play already sent recording
Note: This is an intermittent issue
Which packages are you using?
StreamChatUI
Which SDK version are you using?
4.77.0
Which iOS version is the issue reproducible?
18.4.1
Which iPhone Device is the issue reproducible?
iPhone 16
Which Xcode version are you using?
16.2
- Dominant language
- Swift
- Stars
- 975
- Forks
- 236
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 46
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GetStream/stream-chat-swift
-
[Bug]: iOS SDK player remains stuck loading a WebM attachment sent by an Android SDK clientPossibly taken @mvanhorn claimed this 65 days ago. Open🐞 Bug
Difficulty 4/5 3-5 days Newbie friendliness 55/100
GetStream/stream-chat-swift#4281 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
GetStream/stream-chat-swift#4190 · 1 comment ·
Maintainers usually reply within 1 day
-
Crash on Real Device at Launch: dyld Symbol Not Found for ChatChannelListViewModel.handleHideTabBarOpen🔎 Investigating
Difficulty 4/5 3-5 days Newbie friendliness 45/100
GetStream/stream-chat-swift#4166 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
All issues in GetStream/stream-chat-swift
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
bug priority:low status:queued
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Insights trim drops today's rollups before newer DNS answers during a DNS floodPossibly taken A pull request linked to this issue is open or already merged. Openbug priority:low status:in-progress
Difficulty 2/5 Half a day Newbie friendliness 67/100
isaaclins/freesnitch#588 ·
Maintainers usually reply within 1 day
-
bug P2: medium
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
leepokai/Codync#618 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
floorianmb/tidywise#5 ·