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.
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.
@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.
Are you trying to play audio from a background app?
No, same app.
For example: start streaming → tap overlay button → play some audio.
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.
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.
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.
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.
Hi, @Rose Power-Wowza Community Manager
I doing an additional survey.
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.
I set verbose, and get only this:
WowzaGoCoder: GoCoderBroadcastManager.m routeChangeReason : AVAudioSessionRouteChangeReasonCategoryChange
Thanks.
Hi, @Rose Power-Wowza Community Manager
I haven’t resolved this issue yet.
If you can, please tell me some advice.
Thanks.