Wowza Community

Audio stops streaming when another stream begins playing

I am using Wowza GoCoder SDK in an iOS app.

In the app, I need to broadcast a live stream as well as play another stream at the same time.

I have observed that live streaming works correctly when the other stream is not played.

However, when the other stream starts playing, the audio stops broadcasting.

Can anyone point out how to fix this issue so that audio can be streamed while another stream is being played?

Hi There,

I recommend submitting a support ticket for issues with the Wowza GoCoder SDK - https://www.wowza.com/support/open-ticket

Please keep in mind we have announced an end of life plan for the Wowza GoCoder SDK. You can read more about that here - https://www.wowza.com/community/articles/55594/attn-important-wowza-player-wowza-gocoder-sdk-ull.html

I was able to solve this problem by setting the category on “AVAudioSession” to “.playAndRecord”.

var player = WOWZPlayer()

func play() {
    // ...
    self.player.play(config, callback: self)
    // the following lines fix the issue
    do {
        try AVAudioSession.sharedInstance().setCategory(.playAndRecord)
    } catch {
        print("error", error)
    }
}