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

**URL:** https://community.wowza.com/t/on-android-is-there-a-way-to-activate-stream-video-without-using-wzcameraview/47471
**Category:** Wowza GoCoder SDK
**Created:** [September 6, 2016, 7:23am UTC](https://community.wowza.com/t/on-android-is-there-a-way-to-activate-stream-video-without-using-wzcameraview/47471 "2016-09-06T07:23:44Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Vincent\_Hofmeister](https://avatars.discourse-cdn.com/v4/letter/v/f07891/32.png) [@Vincent\_Hofmeister](https://community.wowza.com/u/Vincent_Hofmeister)
#### Post date: [September 6, 2016, 7:23am UTC](https://community.wowza.com/t/on-android-is-there-a-way-to-activate-stream-video-without-using-wzcameraview/47471/1 "2016-09-06T07:23:44Z")

</div>

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](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

---

<div class="post-metadata">

### Author: ![Andy\_Engberson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/andy_engberson/32/392_2.png) [@Andy\_Engberson](https://community.wowza.com/u/Andy_Engberson)
#### Post date: [October 26, 2016, 11:31pm UTC](https://community.wowza.com/t/on-android-is-there-a-way-to-activate-stream-video-without-using-wzcameraview/47471/2 "2016-10-26T23:31:30Z")

</div>

Hello,

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

Regards,

Andy\_E

---

<div class="post-metadata">

### Author: ![David\_Huang](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@David\_Huang](https://community.wowza.com/u/David_Huang)
#### Post date: [October 19, 2017, 5:24pm UTC](https://community.wowza.com/t/on-android-is-there-a-way-to-activate-stream-video-without-using-wzcameraview/47471/3 "2017-10-19T17:24:24Z")

</div>

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

---

<div class="post-metadata">

### Author: ![grais](https://avatars.discourse-cdn.com/v4/letter/g/df705f/32.png) [@grais](https://community.wowza.com/u/grais)
#### Post date: [October 27, 2017, 6:11am UTC](https://community.wowza.com/t/on-android-is-there-a-way-to-activate-stream-video-without-using-wzcameraview/47471/4 "2017-10-27T06:11:16Z")

</div>

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

---

<div class="post-metadata">

### Author: ![David\_Huang](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@David\_Huang](https://community.wowza.com/u/David_Huang)
#### Post date: [October 30, 2017, 5:54pm UTC](https://community.wowza.com/t/on-android-is-there-a-way-to-activate-stream-video-without-using-wzcameraview/47471/5 "2017-10-30T17:54:34Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Steve\_Stansbury](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@Steve\_Stansbury](https://community.wowza.com/u/Steve_Stansbury)
#### Post date: [July 5, 2018, 6:52am UTC](https://community.wowza.com/t/on-android-is-there-a-way-to-activate-stream-video-without-using-wzcameraview/47471/6 "2018-07-05T06:52:40Z")

</div>

Building Android 28, on Windows PRO 10.

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

```auto
setContentView(R.layout.activity_main);

```

```auto
<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?

```
