Wowza Player, Wowza GoCoder SDK, and the technology powering the Ultra Low Latency (ULL) service in Wowza Streaming Cloud will no longer be available on August 31, 2021. Learn more.
This sample code is based on Google's shadercam library and extends the shadercam-example app with live streaming support using the Wowza GoCoder™ SDK. The camera preview display is based on Android's camera2 API with real-time filtering using the OpenGL Shading Language (GLSL).
The shadercam example app was updated to support live streaming by adding a StreamingRenderer class that uses the WOWZGLBroadcaster API class and the WOWZRenderAPI.VideoFrameRenderer interface in the GoCoder SDK to encode each frame for the video stream while a live broadcast is active.
-
Wowza GoCoder SDK for Android v1.8.0.0463 or later
NOTE: The GoCoder SDK library necessary to build this app isn't provided with this sample code. To get the latest version of the free SDK, go to the GoCoder SDK download page.
-
Android 5.0 (API level 21) or later for broadcasting and Android 6.0 (API level 23) or later for playback.
-
Android Studio v3.4.0 or later.
-
A Wowza Streaming Engine™ media server license or a Wowza Streaming Cloud™ subscription. You can request a Wowza Streaming Engine trial by completing the Wowza Streaming Engine trial sign-up form or sign up for a Wowza Streaming Cloud trial by completing the Wowza Streaming Cloud trial sig-nup form.
-
Copy the GoCoder SDK aar library file (com.wowza.gocoder.sdk.aar) to the gocoder-sdk-shaders/libs folder.
-
Edit the following code, which is from the StreamingShaderActivity class, with the configuration settings used by your Wowza Streaming Engine server or your Wowza Streaming Cloud live stream:
mWOWZBroadcastConfig.setHostAddress("192.168.1.246");
mWOWZBroadcastConfig.setPortNumber(1935);
mWOWZBroadcastConfig.setApplicationName("live");
mWOWZBroadcastConfig.setStreamName("myStream");
mWOWZBroadcastConfig.setUsername(null);
mWOWZBroadcastConfig.setPassword(null);
- Wowza GoCoder SDK technical articles
- Wowza GoCoder SDK for Android reference docs
- Wowza GoCoder SDK for Android release notes
- Wowza GoCoder SDK community forum
Wowza Media Systems™ provides developers with a platform to create streaming applications and solutions. See Wowza Developer Tools to learn more about our APIs and SDKs.
This code is distributed under the Wowza Public License.