On Android is there a way to activate/stream video without using WZCameraView?

Hello,

I’m currently trying to get Wowza to stream video and audio without using com.wowza.gocoder.sdk.api.devices.WZCameraView in my layout. I am currently using this code: https://gist.github.com/vincenthofmeister/96260a61d869842d5b538fc428fefe01 and it is only streaming audio. I have iOS working streaming both audio and video without the preview. How can I enable the video (in addition to the working audio) without using com.wowza.gocoder.sdk.api.devices.WZCameraView?

I appreciate any direction/feedback.

Vincent

Hello,

It does look like this is possible through the SurfaceBroadcaster class.

Regards,

Andy_E

Hi Andy, could you elaborate how the SurfaceBroadcaster works? I’m trying to do exactly the same thing here, but I can’t find any documentation regarding SurfaceBroadcaster. I did a quick search inside the API sample, couldn’t find anything either.

This is the SDK sample I’m looking at, gocoder-sdk-android-build-0357-v1.0.2.zip

Thanks!

David

Hi David! Can you found any tutorial for Surface Broadcaster?

No I couldn’t find it inside the SDK. Could you kindly point me to the right direction?

Building Android 28, on Windows PRO 10.

Everything is resolved, but this CameraView, I crash on loading the apk.

setContentView(R.layout.activity_main);
<com.wowza.gocoder.sdk.api.devices.WZCameraView

Can not inflate this.....

I moved goCoder = WowzaGoCoder.init(getApplicationContext(), "GOSK-4E45-XXXX-XXXX-XXXX-420X");
above, no affect.

Conjecture?