# Play some audio in iOS streaming

**URL:** <https://community.wowza.com/t/play-some-audio-in-ios-streaming/54770>\
**Category:** Wowza GoCoder SDK\
**Created:** [March 9, 2020, 2:16pm UTC](https://community.wowza.com/t/play-some-audio-in-ios-streaming/54770 "2020-03-09T14:16:27Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kazu\_Naka](https://avatars.discourse-cdn.com/v4/letter/k/94ad74/32.png) [@Kazu\_Naka](https://community.wowza.com/u/Kazu_Naka)\
**Post date:** [March 9, 2020, 2:16pm UTC](https://community.wowza.com/t/play-some-audio-in-ios-streaming/54770/1 "2020-03-09T14:16:27Z")

</div>

Hi, I try to implement streaming in iOS, and play some music or SE (such as AVAudioPlayer) while streaming.

But when play, after streaming and audio(voice) is stopped. (also Android is looks like OK.)

I want to know some setting or sample, or not supported.

Thanks.

---

<div class="post-metadata">

**Author:** ![Amara\_Graham](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/amara_graham/32/381_2.png) [@Amara\_Graham](https://community.wowza.com/u/Amara_Graham)\
**Post date:** [March 9, 2020, 2:34pm UTC](https://community.wowza.com/t/play-some-audio-in-ios-streaming/54770/2 "2020-03-09T14:34:13Z")

</div>

Are you using latest Wowza GoCoder SDK? Are you using Wowza Streaming Cloud or Wowza Streaming Engine? If you are on a trial for Cloud, please note you can only stream for 15 minutes.

---

<div class="post-metadata">

**Author:** ![Kazu\_Naka](https://avatars.discourse-cdn.com/v4/letter/k/94ad74/32.png) [@Kazu\_Naka](https://community.wowza.com/u/Kazu_Naka)\
**Post date:** [March 9, 2020, 5:52pm UTC](https://community.wowza.com/t/play-some-audio-in-ios-streaming/54770/3 "2020-03-09T17:52:49Z")

</div>

@Amara Graham

Hi, I’m using GoCoder SDK in iOS.

I think you are misunderstanding… It’s not time limit issue, but iOS audio setting issue.

Again, I want to play some audio (music or SE) while streaming.

Thanks.

---

<div class="post-metadata">

**Author:** ![Amara\_Graham](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/amara_graham/32/381_2.png) [@Amara\_Graham](https://community.wowza.com/u/Amara_Graham)\
**Post date:** [March 9, 2020, 6:05pm UTC](https://community.wowza.com/t/play-some-audio-in-ios-streaming/54770/4 "2020-03-09T18:05:13Z")

</div>

Are you trying to play audio from a background app?

---

<div class="post-metadata">

**Author:** ![Kazu\_Naka](https://avatars.discourse-cdn.com/v4/letter/k/94ad74/32.png) [@Kazu\_Naka](https://community.wowza.com/u/Kazu_Naka)\
**Post date:** [March 9, 2020, 6:14pm UTC](https://community.wowza.com/t/play-some-audio-in-ios-streaming/54770/5 "2020-03-09T18:14:14Z")

</div>

No, same app.

For example: start streaming → tap overlay button → play some audio.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [March 9, 2020, 6:35pm UTC](https://community.wowza.com/t/play-some-audio-in-ios-streaming/54770/6 "2020-03-09T18:35:57Z")

</div>

You should be able to generate an audio-only stream from your SDK app. From the camera source you can send a live stream with the video shut off and only the audio will play.

This is the setting in the SDK you want to look for:

config.videoEnabled = false

* * *

BUT!

If you are trying to play music from another source in addition to your live stream from your device, that is not supported. The SDK will only capture the audio from the mic used with your camera on the phone.

---

<div class="post-metadata">

**Author:** ![Kazu\_Naka](https://avatars.discourse-cdn.com/v4/letter/k/94ad74/32.png) [@Kazu\_Naka](https://community.wowza.com/u/Kazu_Naka)\
**Post date:** [March 10, 2020, 1:22pm UTC](https://community.wowza.com/t/play-some-audio-in-ios-streaming/54770/7 "2020-03-10T13:22:02Z")

</div>

Hi, @Rose Power-Wowza Community Manager

> If you are trying to play music from another source in addition to your live stream from your device

I’m no need to mix music and mic input.

I want to play music with streaming in streamer iOS device, such as karaoke (sing live streaming).

Thanks.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [March 10, 2020, 2:41pm UTC](https://community.wowza.com/t/play-some-audio-in-ios-streaming/54770/8 "2020-03-10T14:41:01Z")

</div>

Got it @Kazu Naka Now I understand. I need to know the exact version number of the iOS SDK you are using as we made a lot of improvements with audio issues with HLS in the last release? Which one are you using?

I’ll also share some things for you to check that may be causing the issue- sometimes you have to change some of the cupertino settings for chunk size. I’ll share that in a minute.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [March 10, 2020, 3:08pm UTC](https://community.wowza.com/t/play-some-audio-in-ios-streaming/54770/9 "2020-03-10T15:08:36Z")

</div>

Oh ok I see, Sorry, we were having trouble understanding your workflow. So, yes you can build audio only music app for playback on HLS devices, but to be honest to have multiple audio tracks like karaoke will not work very well and another SDK may be a better option for you.

**I am assuming that you HLS enabled in the SDK settings?** Have you tried to reduce the audio bitrate and test with just one audio track? Does it play the audio at all on an apple device? What happens when you play it on an Android device with HLS enabled?

What does your error log show you?

We need more info to identify the issue, but if you have HLS enabled and the audio bitrate isn’t too high, we have no problems on our end playing audio only on apple devices with the iOS SDK.

I’ll watch for your reply.

---

<div class="post-metadata">

**Author:** ![Kazu\_Naka](https://avatars.discourse-cdn.com/v4/letter/k/94ad74/32.png) [@Kazu\_Naka](https://community.wowza.com/u/Kazu_Naka)\
**Post date:** [March 12, 2020, 4:15pm UTC](https://community.wowza.com/t/play-some-audio-in-ios-streaming/54770/10 "2020-03-12T16:15:20Z")

</div>

Hi, @Rose Power-Wowza Community Manager

I doing an additional survey.

- exact iOS SDK

the latest SDK (1.9.0.1377).

- I am assuming that you HLS enabled in the SDK settings?

I don’t know HLS enabled in the SDK settings…is it “allowHLSPlayback” or other settings?

- reduce the audio bitrate and test with just one audio track

I tried to play one 32kbps mp3 file in iOS streamer, but after video and audio(voice) was stopped in viewer.

- error log

I set verbose, and get only this:

WowzaGoCoder: GoCoderBroadcastManager.m routeChangeReason : AVAudioSessionRouteChangeReasonCategoryChange

Thanks.

---

<div class="post-metadata">

**Author:** ![Kazu\_Naka](https://avatars.discourse-cdn.com/v4/letter/k/94ad74/32.png) [@Kazu\_Naka](https://community.wowza.com/u/Kazu_Naka)\
**Post date:** [March 23, 2020, 12:21pm UTC](https://community.wowza.com/t/play-some-audio-in-ios-streaming/54770/11 "2020-03-23T12:21:59Z")

</div>

Hi, @Rose Power-Wowza Community Manager

I haven’t resolved this issue yet.

If you can, please tell me some advice.

Thanks.
