Package com.amazonaws.ivs.broadcast
Class BroadcastErrorCode.Platform
java.lang.Object
com.amazonaws.ivs.broadcast.BroadcastErrorCode.Platform
- Enclosing class:
BroadcastErrorCode
Platform error codes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCannot append audio buffers directly to a MixedAudioDevice.static final intCannot configure audio device that is not a custom audio source.static final intDevice descriptor is invalid.static final intCannot exchange or operate on a device that is not currently attached to the session.static final intDevice is invalid or has been released.static final intDevice is not ready for configuration.static final intCannot exchange devices of different types.static final intDevice attachment failed.static final intFailed to create system audio capture device.static final intFailed to create custom image input source.static final intFailed to create screen capture device.static final intFailed to create preview view.static final intH.265 (HEVC) codec is not supported on this device.static final intAudio channel count is invalid.static final intNotification is required for screen capture on Android 8.0 (API 26) and higher.static final intService class must extend SystemCaptureService.static final intSession is not ready for operation.static final intCannot exchange token after stage has been released.static final intCannot join stage after it has been released.static final intCannot leave stage after it has been released.static final intAPI called from wrong thread.static final intCannot publish multiple audio or video streams simultaneously.static final intFailed to create preview view for surface source.static final intFailed to create mixed audio device.static final intFailed to create mixed image device.static final intAPI called from wrong thread. -
Method Summary
-
Field Details
-
DeviceDescriptorNotValid
public static final int DeviceDescriptorNotValidDevice descriptor is invalid. Verify the device descriptor was obtained from listAvailableDevices() and has not been modified.- See Also:
-
SessionNotReady
public static final int SessionNotReadySession is not ready for operation. Check that session initialization completed successfully and isReady() returns true.- See Also:
-
FailedToAttachDevice
public static final int FailedToAttachDeviceDevice attachment failed. The session may be in an invalid state, the device may not be available, permissions may be missing, or the device may be in use by another application.- See Also:
-
DeviceNotInValidState
public static final int DeviceNotInValidStateDevice is invalid or has been released. Verify the device is still valid before attaching.- See Also:
-
DeviceTypesMustMatch
public static final int DeviceTypesMustMatchCannot exchange devices of different types. Both devices must be cameras, microphones, or the same device type.- See Also:
-
DeviceNotAttached
public static final int DeviceNotAttachedCannot exchange or operate on a device that is not currently attached to the session. Attach the device first using attachDevice().- See Also:
-
FailedToCreateImageInputSource
public static final int FailedToCreateImageInputSourceFailed to create custom image input source. This may indicate insufficient system resources or an internal SDK error.- See Also:
-
FailedToGetPreviewView
public static final int FailedToGetPreviewViewFailed to create preview view. This may indicate insufficient system resources or an internal SDK error.- See Also:
-
NotificationRequired
public static final int NotificationRequiredNotification is required for screen capture on Android 8.0 (API 26) and higher. Provide a notification using createServiceNotificationBuilder().- See Also:
-
ServiceClassMustExtendSystemCaptureService
public static final int ServiceClassMustExtendSystemCaptureServiceService class must extend SystemCaptureService. Verify your service implementation extends the correct base class.- See Also:
-
FailedToCreateScreenCaptureSource
public static final int FailedToCreateScreenCaptureSourceFailed to create screen capture device. Verify MediaProjection permission was granted and the device supports screen capture.- See Also:
-
FailedToCreateAudioCaptureSource
public static final int FailedToCreateAudioCaptureSourceFailed to create system audio capture device. Make sure the Session.isReady() returns true and the permission request was accepted.- See Also:
-
WrongThread
public static final int WrongThreadAPI called from wrong thread. All BroadcastSession methods must be called from the thread that created the session.- See Also:
-
UnableToCreateMixedImageDevice
public static final int UnableToCreateMixedImageDeviceFailed to create mixed image device. Check device logs for specific error details. This happens when DeviceDiscovery has already been released, or it may indicate insufficient system resources.- See Also:
-
UnableToCreateMixedAudioDevice
public static final int UnableToCreateMixedAudioDeviceFailed to create mixed audio device. Check device logs for specific error details. This happens when DeviceDiscovery has already been released, or it may indicate insufficient system resources.- See Also:
-
DeviceNotReady
public static final int DeviceNotReadyDevice is not ready for configuration. This may indicate the device failed to initialize or system resources are unavailable.- See Also:
-
SurfaceSourceFailedToGetPreviewView
public static final int SurfaceSourceFailedToGetPreviewViewFailed to create preview view for surface source. This may indicate insufficient system resources or an internal SDK error.- See Also:
-
CannotConfigureNonUserAudio
public static final int CannotConfigureNonUserAudioCannot configure audio device that is not a custom audio source. Only custom audio sources created via createAudioInputSource() can be configured.- See Also:
-
InvalidAudioDeviceConfiguration
public static final int InvalidAudioDeviceConfigurationAudio channel count is invalid. Must be 1 (mono) or 2 (stereo).- See Also:
-
AppendBufferNotSupported
public static final int AppendBufferNotSupportedCannot append audio buffers directly to a MixedAudioDevice. Add audio sources to the mixer using addSource() instead.- See Also:
-
H265NotSupported
public static final int H265NotSupportedH.265 (HEVC) codec is not supported on this device. Use H.264 (AVC) instead.- See Also:
-
StageJoinAfterDestroyed
public static final int StageJoinAfterDestroyedCannot join stage after it has been released. Create a new Stage instance to join.- See Also:
-
StageExchangeTokenAfterDestroyed
public static final int StageExchangeTokenAfterDestroyedCannot exchange token after stage has been released. Create a new Stage instance with the new token.- See Also:
-
StageLeaveAfterDestroyed
public static final int StageLeaveAfterDestroyedCannot leave stage after it has been released. This is expected during cleanup and can be safely ignored.- See Also:
-
StrategyArbiterMultipleStreams
public static final int StrategyArbiterMultipleStreamsCannot publish multiple audio or video streams simultaneously. Only one audio stream and one video stream are supported per stage session.- See Also:
-
StageWrongThread
public static final int StageWrongThreadAPI called from wrong thread. All Stage methods must be called from the main thread.- See Also:
-