Skip to content

Commit

Permalink
Play audio in videos when in silent mode
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmitrevski committed Sep 25, 2023
1 parent 7701739 commit b15c746
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### ✅ Added
- Config for changing supported media types in the composer

### 🐞 Fixed
- Play audio in videos when in silent mode

# [4.37.0](https://github.com/GetStream/stream-chat-swiftui/releases/tag/4.37.0)
_September 18, 2023_

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public struct VideoPlayerView: View {
.foregroundColor(Color(colors.text))
}
.onAppear {
try? AVAudioSession.sharedInstance().setCategory(.playback, options: [])
avPlayer.play()
}
}
Expand Down

0 comments on commit b15c746

Please sign in to comment.