public final class WowzaGoCoder
extends java.lang.Object
Note: Many methods in this class are deprecated. Use the recommended alternatives instead.
To build apps with the GoCoder SDK for Android, follow this basic workflow.
init(Context, String)
.Note: You must call init(Context, String)
to validate the GoCoder SDK license key before making any other calls with the SDK.
WOWZBroadcastConfig
.WOWZCameraView
in your application's layout resources,
or create one dynamically and configure the broadcast to use it with
WOWZBroadcastConfig.setVideoBroadcaster(WOWZBroadcastAPI.VideoBroadcaster)
.WOWZAudioDevice
and configuring the broadcast to use it
via WOWZBroadcastConfig.setAudioBroadcaster(WOWZBroadcastAPI.AudioBroadcaster)
.WOWZBroadcast
.Visit GoCoder SDK for Android samples on GitHub to download the latest sample app code.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ENCODER_INFO
Deprecated.
Use
WOWZCodecUtils.getCodecInfo() instead. |
static java.lang.String |
OPENGLES_INFO
Deprecated.
Use
WOWZGLES.getEglInfo(boolean) instead. |
static java.lang.String |
PLATFORM_INFO
A string representation of the current device and platform information.
|
static java.lang.String |
SDK_VERSION
A string representation of the SDK version information.
|
Modifier and Type | Method and Description |
---|---|
void |
endStreaming()
Deprecated.
Create a
WOWZBroadcast instance to broadcast and control a streaming session. |
void |
endStreaming(WOWZStatusCallback statusCallback)
Deprecated.
Create a
WOWZBroadcast instance to broadcast and control a streaming session. |
WOWZAudioDevice |
getAudioDevice()
Deprecated.
Create a
WOWZAudioDevice instance to use with WOWZBroadcastConfig.setAudioBroadcaster(WOWZBroadcastAPI.AudioBroadcaster) . |
WOWZCameraView |
getCameraView()
Deprecated.
Create a
WOWZCameraView instance in your application layout or construct one dynamically
to use with WOWZBroadcastConfig.setVideoBroadcaster(WOWZBroadcastAPI.VideoBroadcaster) . |
WowzaConfig |
getConfig()
Deprecated.
Create a
WOWZBroadcastConfig instance to configure a streaming session and use with a
separately created WOWZBroadcast instance. |
WOWZAudioDevice |
getDefaultAudioDevice()
Deprecated.
Create a
WOWZAudioDevice instance to use with WOWZBroadcastConfig.setAudioBroadcaster(WOWZBroadcastAPI.AudioBroadcaster) . |
WOWZBroadcastConfig |
getDefaultBroadcastConfig()
Deprecated.
Create a
WOWZBroadcastConfig instance to configure a streaming session and use with a separately created WOWZBroadcast instance. |
static WowzaGoCoder |
getInstance() |
static WOWZError |
getLastError()
Retrieves any error encountered during the SDK initialization process.
|
WOWZStatus |
getStatus()
Deprecated.
Create a
WOWZBroadcast instance to broadcast and control a streaming session
and retrieve its status using WOWZBroadcast.getStatus() . |
static WOWZVersionInfo |
getVersionInfo()
Retrieves detailed version information for the SDK.
|
static boolean |
hasPermission(Context context,
java.lang.String permission)
Deprecated.
Due to the wide variation in the Android permission model introduced with Marshmallow, you should
handle permissions directly in your native application code.
|
static boolean |
hasPermissions(Context context,
java.lang.String[] permissions)
Deprecated.
Due to the wide variation in the Android permission model introduced with Marshmallow, you should
handle permissions directly in your native application code.
|
static WowzaGoCoder |
init(Context context,
java.lang.String apiLicenseKey)
Initializes the GoCoder SDK.
|
static boolean |
isInitialized()
Checks whether the SDK initialized correctly.
|
boolean |
isMuted()
Deprecated.
Create a
WOWZAudioDevice instance to control audio input devices. |
boolean |
isStreaming()
Deprecated.
Create a
WOWZBroadcast instance to broadcast and control a streaming session. |
void |
muteAudio()
Deprecated.
Create a
WOWZAudioDevice instance to control audio input devices. |
void |
setCameraView(WOWZCameraView cameraView)
Deprecated.
Use a
WOWZCameraView instance created in your application layout or constructed dynamically
to display and control the camera preview. |
void |
setConfig(WowzaConfig config)
Deprecated.
Create a
WOWZBroadcastConfig instance to configure a streaming session and use with a
separately created WOWZBroadcast instance. |
void |
setConfig(WowzaConfig config,
boolean updateCamera)
Deprecated.
Create a
WOWZBroadcastConfig instance to configure a streaming session and use with a
separately created WOWZBroadcast instance. |
void |
setConfig(WOWZMediaConfig preset)
Deprecated.
Create a
WOWZBroadcastConfig instance to configure a streaming session and use with a
separately created WOWZBroadcast instance. |
void |
setConfig(WOWZMediaConfig preset,
boolean updateCamera)
Deprecated.
Create a
WOWZBroadcastConfig instance to configure a streaming session and use with a
separately created WOWZBroadcast instance. |
void |
startCameraPreview()
Deprecated.
Use
WOWZCameraView.startPreview() instead. |
void |
startCameraPreview(WOWZMediaConfig preset)
Deprecated.
Use
WOWZCameraView.startPreview() instead. |
void |
startStreaming(WowzaConfig config,
WOWZStatusCallback statusCallback)
Deprecated.
Create a
WOWZBroadcast instance to broadcast and control a streaming session. |
void |
startStreaming(WOWZMediaConfig preset,
WOWZStatusCallback statusCallback)
Deprecated.
Create a
WOWZBroadcast instance to broadcast and control a streaming session. |
void |
startStreaming(WOWZStatusCallback statusCallback)
Deprecated.
Create a
WOWZBroadcast instance to broadcast and control a streaming session. |
void |
stopCameraPreview()
Deprecated.
Use
WOWZCameraView.stopPreview() instead. |
void |
unmuteAudio()
Deprecated.
Create a
WOWZAudioDevice instance to control audio input devices. |
public static final java.lang.String SDK_VERSION
WOWZVersionInfo
public static final java.lang.String PLATFORM_INFO
WOWZPlatformInfo
public static final java.lang.String OPENGLES_INFO
WOWZGLES.getEglInfo(boolean)
instead.public static final java.lang.String ENCODER_INFO
WOWZCodecUtils.getCodecInfo()
instead.public static WowzaGoCoder getInstance()
public static WOWZVersionInfo getVersionInfo()
WOWZVersionInfo
public static boolean isInitialized()
public static boolean hasPermission(Context context, java.lang.String permission)
public static boolean hasPermissions(Context context, java.lang.String[] permissions)
public static WOWZError getLastError()
public static WowzaGoCoder init(Context context, java.lang.String apiLicenseKey)
getLastError()
to retrieve error information.context
- The current app.apiLicenseKey
- The GoCoder SDK license key.public final WOWZStatus getStatus()
WOWZBroadcast
instance to broadcast and control a streaming session
and retrieve its status using WOWZBroadcast.getStatus()
.public final WowzaConfig getConfig()
WOWZBroadcastConfig
instance to configure a streaming session and use with a
separately created WOWZBroadcast
instance.public final void setConfig(WowzaConfig config, boolean updateCamera)
WOWZBroadcastConfig
instance to configure a streaming session and use with a
separately created WOWZBroadcast
instance.public final void setConfig(WowzaConfig config)
WOWZBroadcastConfig
instance to configure a streaming session and use with a
separately created WOWZBroadcast
instance.public final void setConfig(WOWZMediaConfig preset, boolean updateCamera)
WOWZBroadcastConfig
instance to configure a streaming session and use with a
separately created WOWZBroadcast
instance.public final void setConfig(WOWZMediaConfig preset)
WOWZBroadcastConfig
instance to configure a streaming session and use with a
separately created WOWZBroadcast
instance.public WOWZBroadcastConfig getDefaultBroadcastConfig()
WOWZBroadcastConfig
instance to configure a streaming session and use with a separately created WOWZBroadcast
instance.public final void setCameraView(WOWZCameraView cameraView)
WOWZCameraView
instance created in your application layout or constructed dynamically
to display and control the camera preview.public final WOWZCameraView getCameraView()
WOWZCameraView
instance in your application layout or construct one dynamically
to use with WOWZBroadcastConfig.setVideoBroadcaster(WOWZBroadcastAPI.VideoBroadcaster)
.public final void startCameraPreview(WOWZMediaConfig preset)
WOWZCameraView.startPreview()
instead.public final void startCameraPreview()
WOWZCameraView.startPreview()
instead.public final void stopCameraPreview()
WOWZCameraView.stopPreview()
instead.public final WOWZAudioDevice getAudioDevice()
WOWZAudioDevice
instance to use with WOWZBroadcastConfig.setAudioBroadcaster(WOWZBroadcastAPI.AudioBroadcaster)
.public final WOWZAudioDevice getDefaultAudioDevice()
WOWZAudioDevice
instance to use with WOWZBroadcastConfig.setAudioBroadcaster(WOWZBroadcastAPI.AudioBroadcaster)
.public final void muteAudio()
WOWZAudioDevice
instance to control audio input devices.public final void unmuteAudio()
WOWZAudioDevice
instance to control audio input devices.public boolean isMuted()
WOWZAudioDevice
instance to control audio input devices.public final boolean isStreaming()
WOWZBroadcast
instance to broadcast and control a streaming session.public final void startStreaming(WOWZStatusCallback statusCallback)
WOWZBroadcast
instance to broadcast and control a streaming session.public final void startStreaming(WowzaConfig config, WOWZStatusCallback statusCallback)
WOWZBroadcast
instance to broadcast and control a streaming session.public final void startStreaming(WOWZMediaConfig preset, WOWZStatusCallback statusCallback)
WOWZBroadcast
instance to broadcast and control a streaming session.public final void endStreaming(WOWZStatusCallback statusCallback)
WOWZBroadcast
instance to broadcast and control a streaming session.public final void endStreaming()
WOWZBroadcast
instance to broadcast and control a streaming session.© 2016 - 2018 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal