Audio setting is done by the following procedure.
1. Set isAudioEnabled of WZBroadcastConfig to true
mBroadcastConfig.setAudioEnabled (true);
2. Set WZAudioDevice with setAudioBroadcaster of WZBroadcastConfig
mAudioDevice = new WZAudioDevice ();
mBroadcastConfig.setAudioBroadcaster (mAudioDevice);
After that, startBroadcast, stopBroadcast, Audio exception has occurred.
Is it necessary to stop processing somewhere when using Audio?
Please tell me how to deal with it.
E/a: A error occurred writing to the open broadcast connection
java.net.SocketException: sendto failed: EPIPE (Broken pipe)
at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:542)
at libcore.io.IoBridge.sendto(IoBridge.java:511)
at java.net.PlainSocketImpl.write(PlainSocketImpl.java:500)
at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:37)
at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:266)
at com.wowza.gocoder.sdk.support.wse.b.c(GoCoderSDK:424)
at com.wowza.gocoder.sdk.support.wse.b.a(GoCoderSDK:580)
at com.wowza.gocoder.sdk.support.wse.b.b(GoCoderSDK:562)
at com.wowza.gocoder.sdk.support.wse.a.onAudioFrame(GoCoderSDK:338)
at com.wowza.gocoder.sdk.api.devices.WZAudioDevice.k(GoCoderSDK:947)
at com.wowza.gocoder.sdk.api.devices.WZAudioDevice.j(GoCoderSDK:873)
at com.wowza.gocoder.sdk.api.devices.WZAudioDevice.j(GoCoderSDK:60)
at com.wowza.gocoder.sdk.api.devices.WZAudioDevice$AudioEncoderHandler.handleMessage(GoCoderSDK:1012)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:158)
at com.wowza.gocoder.sdk.api.devices.WZAudioDevice$3.run(GoCoderSDK:712)
at java.lang.Thread.run(Thread.java:818)
Caused by: android.system.ErrnoException: sendto failed: EPIPE (Broken pipe)
at libcore.io.Posix.sendtoBytes(Native Method)
at libcore.io.Posix.sendto(Posix.java:211)
at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:278)
at libcore.io.IoBridge.sendto(IoBridge.java:509)
at java.net.PlainSocketImpl.write(PlainSocketImpl.java:500)
at java.net.PlainSocketImpl.access$100(PlainSocketImpl.java:37)
at java.net.PlainSocketImpl$PlainSocketOutputStream.write(PlainSocketImpl.java:266)
at com.wowza.gocoder.sdk.support.wse.b.c(GoCoderSDK:424)
at com.wowza.gocoder.sdk.support.wse.b.a(GoCoderSDK:580)
at com.wowza.gocoder.sdk.support.wse.b.b(GoCoderSDK:562)
at com.wowza.gocoder.sdk.support.wse.a.onAudioFrame(GoCoderSDK:338)
at com.wowza.gocoder.sdk.api.devices.WZAudioDevice.k(GoCoderSDK:947)
at com.wowza.gocoder.sdk.api.devices.WZAudioDevice.j(GoCoderSDK:873)
at com.wowza.gocoder.sdk.api.devices.WZAudioDevice.j(GoCoderSDK:60)
at com.wowza.gocoder.sdk.api.devices.WZAudioDevice$AudioEncoderHandler.handleMessage(GoCoderSDK:1012)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:158)
at com.wowza.gocoder.sdk.api.devices.WZAudioDevice$3.run(GoCoderSDK:712)
at java.lang.Thread.run(Thread.java:818)