Closed onusvishal closed 5 years ago
Have the same issue, video does not play sound!!?
Hi @onusvishal, @idrisyildiz7 ,
Since you are hearing audio when you connect your earphones, I am assuming the mute switch on your iPhones was active while using ASPVideoPlayer
. If you unmute your phones the sound should play as expected.
If you wish to have audio playback even when the mute switch is on, add the following code to your app:
do {
try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.playback, mode: AVAudioSession.Mode.moviePlayback)
try AVAudioSession.sharedInstance().setActive(true)
} catch {
print(error)
}
Does not play sound.
Hi @usamabinattique ,
I can not reproduce your issue, could you provide a sample app?
Hello @andreipitis No need to reproduce, there was problem in video which was being generated at the backend server. Audio is playing perfectly. Thanks for the response, great library and community work.
Video play but no sound , i add earphone sound is on in earphones.