IVSBroadcastError
Objective-C
enum IVSBroadcastError : NSInteger {}
Swift
enum IVSBroadcastError : Int, @unchecked Sendable
Known errors that can be returned by various APIs in the Broadcast SDK
See IVSBroadcastErrorCodes as well. Eventually, IVSBroadcastError will be merged into IVSBroadcastErrorCodes.
-
Deprecated
Use IVSBroadcastErrorCodeDeviceExchangeIncompatibleTypes instead
This happens when you use the exchange devices API but the devices are of a different type, for example a microphone and a camera. Both devices must be of the same type.
Declaration
Objective-C
IVSBroadcastErrorDeviceExchangeIncompatibleTypes = 10100Swift
case deviceExchangeIncompatibleTypes = 10100 -
Deprecated
Use IVSBroadcastErrorCodeDeviceNotFound instead
This happens when trying to attach a device but the device is not found. This could happen if you query all the devices and store them in an array, a device goes offline or is unplugged, and then you attempt to connect to that device.
Declaration
Objective-C
IVSBroadcastErrorDeviceNotFound = 10101Swift
case deviceNotFound = 10101 -
Deprecated
Use IVSBroadcastErrorCodeDeviceAttachDeviceCouldNotAddAsInput instead
This happens when a device you are trying to add could not be added to as an input source.
Declaration
Objective-C
IVSBroadcastErrorDeviceAttachDeviceCouldNotAddAsInput = 10102Swift
case deviceAttachDeviceCouldNotAddAsInput = 10102 -
Deprecated
Use IVSBroadcastErrorCodeDeviceAttachDeviceCouldNotAddOutputStream instead
This happens when a new output stream for the attaching device could not be added to the AVCaptureSession.
Declaration
Objective-C
IVSBroadcastErrorDeviceAttachDeviceCouldNotAddOutputStream = 10103Swift
case deviceAttachDeviceCouldNotAddOutputStream = 10103 -
Deprecated
Use IVSBroadcastErrorCodeDeviceTypeAlreadyAttached instead
At the moment, only a single input source of each type is allowed. In the future multiple cameras may be allowed, but a single microphone will likely be a requirement for the foreseeable future.
Declaration
Objective-C
IVSBroadcastErrorDeviceTypeAlreadyAttached = 10104Swift
case deviceTypeAlreadyAttached = 10104 -
Deprecated
Use IVSBroadcastErrorCodeDeviceFoundNoMatchingSlot instead
The device being attached was unable to pair to a
IVSMixerSlotConfiguration. Make sure yourIVSBroadcastConfigurationhas a slot with a matching preferred input device type.Declaration
Objective-C
IVSBroadcastErrorDeviceFoundNoMatchingSlot = 10105Swift
case deviceFoundNoMatchingSlot = 10105 -
Deprecated
Use IVSBroadcastErrorCodeUnsupportedDeviceType instead
The device that was submitted to attach to the
IVSBroadcastSessionis not supported.Declaration
Objective-C
IVSBroadcastErrorUnsupportedDeviceType = 10106Swift
case unsupportedDeviceType = 10106 -
Deprecated
Use IVSBroadcastErrorCodeTooManyExternalAudioInputs instead
When multiple external audio inputs are plugged in, only the most recently connected device can be attached to the broadcast session. The built-in microphone can always be attached.
Declaration
Objective-C
IVSBroadcastErrorTooManyExternalAudioInputs = 10107Swift
case tooManyExternalAudioInputs = 10107 -
Deprecated
Use IVSBroadcastErrorCodeNoSupportedPixelFormats instead
The attaching camera does not support any of the pixel formats that the broadcast SDK supports.
Declaration
Objective-C
IVSBroadcastErrorNoSupportedPixelFormats = 10108Swift
case noSupportedPixelFormats = 10108 -
Deprecated
Use IVSBroadcastErrorCodeExchangeDeviceOldDeviceNotAttached instead
Thrown when the exchange device API is called and the device being swapped out is not currently attached.
Declaration
Objective-C
IVSBroadcastErrorExchangeDeviceOldDeviceNotAttached = 10109Swift
case exchangeDeviceOldDeviceNotAttached = 10109 -
Deprecated
Use IVSBroadcastErrorCodeDeviceAlreadyAttached instead
Thrown when there is an attempt to attach a device that is already attached, either through attachDevice or exchangeDevice.
Declaration
Objective-C
IVSBroadcastErrorDeviceAlreadyAttached = 10110Swift
case deviceAlreadyAttached = 10110 -
Deprecated
Use IVSBroadcastErrorCodeDeviceNotPublishing instead
RTC stats are unavailable for this stream because the stream is not currently publishing.
Declaration
Objective-C
IVSBroadcastErrorDeviceNotPublishing = 10111Swift
case deviceNotPublishing = 10111 -
Deprecated
Use IVSBroadcastErrorCodeDeviceInvalidCameraZoomFactor instead
The zoom factor set on an
IVSCameramust be betweenIVSCamera.maxAvailableVideoZoomFactorandIVSCamera.maxAvailableVideoZoomFactorThis error is thrown when the camera’s zoom factor is set to a value outside this range.Declaration
Objective-C
IVSBroadcastErrorDeviceInvalidCameraZoomFactor = 10112Swift
case deviceInvalidCameraZoomFactor = 10112 -
Deprecated
Use IVSBroadcastErrorCodeDeviceCouldNotSetCameraZoomFactor instead
This error is thrown when the
-[IVSCamera setVideoZoomFactor:]API is called when theAVCaptureDevice‘s configuration lock could not be taken, or when the underlyingAVCaptureDeviceis nil, because it could not be constructed.Declaration
Objective-C
IVSBroadcastErrorDeviceCouldNotSetCameraZoomFactor = 10113Swift
case deviceCouldNotSetCameraZoomFactor = 10113 -
Deprecated
Use IVSBroadcastErrorCodeDeviceInvalidCameraTorchMode instead
Torch cannot be enabled on an
IVSCamerathat does not support torch or where torch is not available. This error is thrown when the camera’s torch is enabled but the camera either does not support torch or torch is not available.Declaration
Objective-C
IVSBroadcastErrorDeviceInvalidCameraTorchMode = 10114Swift
case deviceInvalidCameraTorchMode = 10114 -
Deprecated
Use IVSBroadcastErrorCodeDeviceCameraTorchBecameUnexpectedlyUnavailable instead
This error is thrown when, after successfully enabling the torch on an
IVSCamera, the torch mode for thatIVSCameraunexpectedly becomes unavailable. This can happen, for example, if the OS determines the device is at risk of overheating, in which case it will deactivate the torch.Declaration
Objective-C
IVSBroadcastErrorDeviceCameraTorchBecameUnexpectedlyUnavailable = 10115Swift
case deviceCameraTorchBecameUnexpectedlyUnavailable = 10115 -
Deprecated
Use IVSBroadcastErrorCodeDeviceCouldNotAcquireConfigurationLock instead
This error is thrown when attempting to change a device’s property (e.g. setting the torch or zoom factor) when the
AVCaptureDevice‘s configuration lock could not be taken, or when the underlyingAVCaptureDeviceis nil, because it could not be constructed.Declaration
Objective-C
IVSBroadcastErrorDeviceCouldNotAcquireConfigurationLock = 10116Swift
case deviceCouldNotAcquireConfigurationLock = 10116 -
Deprecated
Use IVSBroadcastErrorCodeConfigurationInvalidAudioBitrate instead
The audio bitrate set on the IVSBroadcastConfiguration must be between 64k and 160k. This error is thrown when the audio bitrate is set to a value outside this range.
Declaration
Objective-C
IVSBroadcastErrorConfigurationInvalidAudioBitrate = 10200Swift
case configurationInvalidAudioBitrate = 10200 -
Deprecated
Use IVSBroadcastErrorCodeConfigurationInvalidAudioChannels instead
The audio channels set on the IVSBroadcastConfiguration must be equal to 1 or 2.
Declaration
Objective-C
IVSBroadcastErrorConfigurationInvalidAudioChannels = 10201Swift
case configurationInvalidAudioChannels = 10201 -
Deprecated
Use IVSBroadcastErrorCodeConfigurationInvalidVideoInitialBitrate instead
The video initial bitrate set on the IVSBroadcastConfiguration must be between 100k and 8,500k. This error is thrown when the video initial bitrate is set to a value outside this range.
Declaration
Objective-C
IVSBroadcastErrorConfigurationInvalidVideoInitialBitrate = 10202Swift
case configurationInvalidVideoInitialBitrate = 10202 -
Deprecated
Use IVSBroadcastErrorCodeConfigurationInvalidVideoMaxBitrate instead
The video maximum bitrate set on the IVSBroadcastConfiguration must be between 100k and 8,500k. This error is thrown when the video maximum bitrate is set to a value outside this range.
Declaration
Objective-C
IVSBroadcastErrorConfigurationInvalidVideoMaxBitrate = 10203Swift
case configurationInvalidVideoMaxBitrate = 10203 -
Deprecated
Use IVSBroadcastErrorCodeConfigurationInvalidVideoMinBitrate instead
The video minimum bitrate set on the IVSBroadcastConfiguration must be between 100k and 8,500k. This error is thrown when the video minimum bitrate is set to a value outside this range.
Declaration
Objective-C
IVSBroadcastErrorConfigurationInvalidVideoMinBitrate = 10204Swift
case configurationInvalidVideoMinBitrate = 10204 -
Deprecated
Use IVSBroadcastErrorCodeConfigurationInvalidVideoTargetFramerate instead
The video target framerate set on the IVSBroadcastConfiguration must be between 10 and 60. This error is thrown when the video target framerate is set to a value outside this range.
Declaration
Objective-C
IVSBroadcastErrorConfigurationInvalidVideoTargetFramerate = 10205Swift
case configurationInvalidVideoTargetFramerate = 10205 -
Deprecated
Use IVSBroadcastErrorCodeConfigurationInvalidVideoKeyframeInterval instead
The video keyframe interval set on the IVSBroadcastConfiguration must be between 1 and 10. This error is thrown when the video keyframe interval is set to a value outside this range.
Declaration
Objective-C
IVSBroadcastErrorConfigurationInvalidVideoKeyframeInterval = 10206Swift
case configurationInvalidVideoKeyframeInterval = 10206 -
Deprecated
Use IVSBroadcastErrorCodeConfigurationInvalidVideoSize instead
The video size set on the IVSBroadcastConfiguration must have a width and height of greater than 160, less than 1080, and the total number of pixels must be less than 2,073,600. For example, the smallest possible size is 160x160, and the biggest possible size is either 1080x1920 or 1920x1080.. This error is thrown when the video size does not meet the specified criteria.
Declaration
Objective-C
IVSBroadcastErrorConfigurationInvalidVideoSize = 10207Swift
case configurationInvalidVideoSize = 10207 -
Deprecated
Use IVSBroadcastErrorCodeConfigurationInvalidMixerSlotName instead
The mixer slot name set on the IVSBroadcastConfiguration must be between 1 and 50 characetrs in length. This error is thrown when the name is shorter or longer than the requirements.
Declaration
Objective-C
IVSBroadcastErrorConfigurationInvalidMixerSlotName = 10208Swift
case configurationInvalidMixerSlotName = 10208 -
Deprecated
Use IVSBroadcastErrorCodeConfigurationInvalidMixerSlotGain instead
The mixer slot gain set on the IVSBroadcastConfiguration must be between 0 and 2. This error is thrown when the gain is set to a value outside this range.
Declaration
Objective-C
IVSBroadcastErrorConfigurationInvalidMixerSlotGain = 10209Swift
case configurationInvalidMixerSlotGain = 10209 -
Deprecated
Use IVSBroadcastErrorCodeConfigurationInvalidMixerSlotTransparency instead
The mixer slot transparency set on the IVSBroadcastConfiguration must be between 0 and 1. This error is thrown when the transparency is set to a value outside this range.
Declaration
Objective-C
IVSBroadcastErrorConfigurationInvalidMixerSlotTransparency = 10210Swift
case configurationInvalidMixerSlotTransparency = 10210 -
Deprecated
Use IVSBroadcastErrorCodeConfigurationDuplicateMixerNames instead
There are multiple
IVSMixerSlotConfigurationobjects with the samename. All names must be unique.Declaration
Objective-C
IVSBroadcastErrorConfigurationDuplicateMixerNames = 10211Swift
case configurationDuplicateMixerNames = 10211 -
Deprecated
Use IVSBroadcastErrorCodeConfigurationInvalidStageVideoMaxBitrate instead
The stage video maximum bitrate set on the
IVSLocalStageStreamVideoConfigurationmust be between 50k and 2,500k. This error is thrown when the stage video maximum bitrate is set to a value outside this range.Declaration
Objective-C
IVSBroadcastErrorConfigurationInvalidStageVideoMaxBitrate = 10220Swift
case configurationInvalidStageVideoMaxBitrate = 10220 -
Deprecated
Use IVSBroadcastErrorCodeConfigurationInvalidStageVideoMinBitrate instead
The stage video minimum bitrate set on the
IVSLocalStageStreamVideoConfigurationmust be between 50k and 2,500k. This error is thrown when the stage video minimum bitrate is set to a value outside this range.Declaration
Objective-C
IVSBroadcastErrorConfigurationInvalidStageVideoMinBitrate = 10221Swift
case configurationInvalidStageVideoMinBitrate = 10221 -
Deprecated
Use IVSBroadcastErrorCodeConfigurationInvalidStageVideoTargetFramerate instead
The stage video target framerate set on the
IVSLocalStageStreamVideoConfigurationmust be between 10 and 30. This error is thrown when the stage video target framerate is set to a value outside this range.Declaration
Objective-C
IVSBroadcastErrorConfigurationInvalidStageVideoTargetFramerate = 10222Swift
case configurationInvalidStageVideoTargetFramerate = 10222 -
Deprecated
Use IVSBroadcastErrorCodeConfigurationInvalidStageVideoSize instead
The stage video size set on the
IVSLocalStageStreamVideoConfigurationmust have a width and height of greater than 160, less than 720, and the total number of pixels must be less than 921,600. For example, the smallest possible size is 160x160, and the biggest possible size is either 720x1280 or 1280x720.. This error is thrown when the video size does not meet the specified criteria.Declaration
Objective-C
IVSBroadcastErrorConfigurationInvalidStageVideoSize = 10223Swift
case configurationInvalidStageVideoSize = 10223 -
Deprecated
Use IVSBroadcastErrorCodeConfigurationInvalidStageAudioBitrate instead
The stage audio bitrate set on the
IVSLocalStageStreamAudioConfigurationmust be between 12k and 128k. This error is thrown when the stage audio bitrate is set to a value outside this range.Declaration
Objective-C
IVSBroadcastErrorConfigurationInvalidStageAudioBitrate = 10224Swift
case configurationInvalidStageAudioBitrate = 10224 -
Deprecated
Use IVSBroadcastErrorCodeConfigurationInvalidStageJitterBufferMinDelay instead
The stage jitter buffer min delay set on the
IVSJitterBufferConfigurationmust be between 0 and 10k. This error is thrown when the stage jitter buffer min delay is set to a value outside this range.Declaration
Objective-C
IVSBroadcastErrorConfigurationInvalidStageJitterBufferMinDelay = 10225Swift
case configurationInvalidStageJitterBufferMinDelay = 10225 -
Deprecated
Use IVSBroadcastErrorCodeEncoderNotFound instead
An encoder that matches the associated codec and video configuration could not be found.
Declaration
Objective-C
IVSBroadcastErrorEncoderNotFound = 10226Swift
case encoderNotFound = 10226 -
Deprecated
Use IVSBroadcastErrorCodeConfigurationLocked instead
The configuration has been locked by the SDK to guarantee compatibility with this device and the upstream IVS channel.
Declaration
Objective-C
IVSBroadcastErrorConfigurationLocked = 10227Swift
case configurationLocked = 10227 -
Deprecated
Use IVSBroadcastErrorCodeConfigurationMaxLayersExceeded instead
The number of the stage video layers set on the
IVSLocalStageStreamVideoConfigurationmust be 3 or less. This error is thrown when the number of the stage video layers is set to a value outside this range.Declaration
Objective-C
IVSBroadcastErrorConfigurationMaxLayersExceeded = 10250Swift
case configurationMaxLayersExceeded = 10250 -
Deprecated
Use IVSBroadcastErrorCodeConfigurationDuplicateLayersConfigured instead
Two layers set on the
IVSLocalStageStreamVideoConfigurationmust have different configuration. This error is thrown when the two layers with the same configuration is set.Declaration
Objective-C
IVSBroadcastErrorConfigurationDuplicateLayersConfigured = 10251Swift
case configurationDuplicateLayersConfigured = 10251 -
Deprecated
Use IVSBroadcastErrorCodeConfigurationInvalidLayerMaxBitrate instead
The layer maximum bitrate set on the
IVSLocalStageStreamVideoConfigurationmust be between 50k and 2,500k. This error is thrown when the layer maximum bitrate is set to a value outside this range.Declaration
Objective-C
IVSBroadcastErrorConfigurationInvalidLayerMaxBitrate = 10252Swift
case configurationInvalidLayerMaxBitrate = 10252 -
Deprecated
Use IVSBroadcastErrorCodeConfigurationInvalidLayerMinBitrate instead
The layer minimum bitrate set on the
IVSLocalStageStreamVideoConfigurationmust be between 50k and 2,500k. This error is thrown when the layer minimum bitrate is set to a value outside this range.Declaration
Objective-C
IVSBroadcastErrorConfigurationInvalidLayerMinBitrate = 10253Swift
case configurationInvalidLayerMinBitrate = 10253 -
Deprecated
Use IVSBroadcastErrorCodeConfigurationInvalidLayerTargetFramerate instead
The layer target framerate set on the
IVSLocalStageStreamVideoConfigurationmust be between 10 and 30. This error is thrown when the layer target framerate is set to a value outside this range.Declaration
Objective-C
IVSBroadcastErrorConfigurationInvalidLayerTargetFramerate = 10254Swift
case configurationInvalidLayerTargetFramerate = 10254 -
Deprecated
Use IVSBroadcastErrorCodeConfigurationInvalidLayerSize instead
The layer size set on the
IVSLocalStageStreamVideoConfigurationmust have a width and height of greater than 160, less than 720, and the total number of pixels must be less than 921,600. For example, the smallest possible size is 160x160, and the biggest possible size is either 720x1280 or 1280x720.. This error is thrown when the video size does not meet the specified criteria.Declaration
Objective-C
IVSBroadcastErrorConfigurationInvalidLayerSize = 10255Swift
case configurationInvalidLayerSize = 10255 -
Deprecated
Use IVSBroadcastErrorCodePreviewMetalLibraryInvalid instead
When creating the preview view for a surface, there was an error obtaining the metal default library. The property “sourceError” will include the originating error.
Declaration
Objective-C
IVSBroadcastErrorPreviewMetalLibraryInvalid = 10300Swift
case previewMetalLibraryInvalid = 10300 -
Deprecated
Use IVSBroadcastErrorCodePreviewMetalStateDescriptorInvalid instead
When creating the preview view for a surface, there was an error generating the metal render pipeline state The property “sourceError” will include the originating error.
Declaration
Objective-C
IVSBroadcastErrorPreviewMetalStateDescriptorInvalid = 10301Swift
case previewMetalStateDescriptorInvalid = 10301 -
Deprecated
Use IVSBroadcastErrorCodeMetalNotSupported instead
The device you’re using this on does not support Metal. Metal is a requirement for using the IVS Broadcast SDK.
Declaration
Objective-C
IVSBroadcastErrorMetalNotSupported = 10302Swift
case metalNotSupported = 10302 -
Deprecated
Use IVSBroadcastErrorCodeSessionIsNotReady instead
This is thrown when the
IVSBroadcastSession‘sisReadyproperty is set toNOand a method is called on the session anyway.Declaration
Objective-C
IVSBroadcastErrorSessionIsNotReady = 10400Swift
case sessionIsNotReady = 10400 -
Deprecated
Use IVSBroadcastErrorCodeInvalidVideoFormat instead
This is thrown when an
IVSCustomImageSourceis used and an unsupported pixel format is provided. The currently supported pixel formats are:kCVPixelFormatType_32BGRAkCVPixelFormatType_420YpCbCr8BiPlanarFullRangekCVPixelFormatType_420YpCbCr8BiPlanarVideoRangeOn devices that support it, theLosslessandLossyequivalents of these formats are also supported.Declaration
Objective-C
IVSBroadcastErrorInvalidVideoFormat = 10401Swift
case invalidVideoFormat = 10401 -
Deprecated
Use IVSBroadcastErrorCodeImageTooLarge instead
This is thrown when an image submitted via
onSampleBufferexceeds 32400 KB (32 bpp at 3840×2160). If you have images in resolutions greater than 4k, please convert them to format such askCVPixelFormatType_420YpCbCr8BiPlanarVideoRangeto reduce the total size of the image below the threshold.Declaration
Objective-C
IVSBroadcastErrorImageTooLarge = 10402Swift
case imageTooLarge = 10402 -
Deprecated
Use IVSBroadcastErrorCodePCMDataTooLong instead
This is thrown when PCM data is submitted via
onPCMBufferoronSampleBufferand the total size of the data is greater than 5.5 MB. If you run into this while submitting valid data, break up your sample into multiple smaller samples. This error will only be emitted once per audio source.Declaration
Objective-C
IVSBroadcastErrorPCMDataTooLong = 10403Swift
case pcmDataTooLong = 10403 -
Deprecated
Use IVSBroadcastErrorCodeInvalidAudioSessionStrategy instead
This is thrown when
IVSBroadcastSession.applicationAudioSessionStrategyis set tonoActionand an attempt to attach a microphone to the SDK is attempted. Microphones can still be used with the noAction strategy, but they must be managed by the host application and have their samples provided via anIVSCustomAudioSource.Declaration
Objective-C
IVSBroadcastErrorInvalidAudioSessionStrategy = 10404Swift
case invalidAudioSessionStrategy = 10404 -
Deprecated
Use IVSBroadcastErrorCodeNetworkConnectivityLost instead
This is thrown when the broadcast session is stopped due to a loss in network connectivity. You can monitor your device’s connection and start the stream again when connectivity is restored.
Declaration
Objective-C
IVSBroadcastErrorNetworkConnectivityLost = 10405Swift
case networkConnectivityLost = 10405 -
Deprecated
Use IVSBroadcastErrorCodeForegroundOnly instead
This API must only be called while the application is in the foreground.
Declaration
Objective-C
IVSBroadcastErrorForegroundOnly = 10406Swift
case foregroundOnly = 10406 -
Deprecated
Use IVSBroadcastErrorCodeBackgroundVideoSourceAlreadyExists instead
An app background video source already exists. You must call
removeImageSourceOnAppBackgroundedbefore using this API again.Declaration
Objective-C
IVSBroadcastErrorBackgroundVideoSourceAlreadyExists = 10407Swift
case backgroundVideoSourceAlreadyExists = 10407 -
Deprecated
Use IVSBroadcastErrorCodeBackgroundVideoSourceIsLive instead
The background video source is currently live. If your app responds to
UIApplicationWillEnterForegroundNotification, it is possible your app will receive that notification before the broadcast SDK does. Dispatching a block to the main queue will allow the SDK to receive that notification, then theremoveImageSourceOnAppBackgroundedwill be safe to call.Declaration
Objective-C
IVSBroadcastErrorBackgroundVideoSourceIsLive = 10408Swift
case backgroundVideoSourceIsLive = 10408 -
Deprecated
Use IVSBroadcastErrorCodeBackgroundVideoSourceIsWaitingForCamera instead
The background video source is currently live because the attached camera is waiting to receive the
AVCaptureSessionInterruptionEndedNotificationnotification to be fired. This is fired some time after the app returns to the foreground. Waiting for that notification and dispatching a block to the main queue that calls this API again will resolve this error if the source of the error is the attached camera. An alternative workaround would be to detach and reattach the camera.Declaration
Objective-C
IVSBroadcastErrorBackgroundVideoSourceIsWaitingForCamera = 10409Swift
case backgroundVideoSourceIsWaitingForCamera = 10409 -
Deprecated
Use IVSBroadcastErrorCodeInvalidState instead
This is thrown when the SDK’s internal state is invalid.
Declaration
Objective-C
IVSBroadcastErrorInvalidState = 10410Swift
case invalidState = 10410 -
Deprecated
Use IVSBroadcastErrorCodePCMUnsupportedSample instead
This is thrown when PCM data is submitted via
onPCMBufferwith multiple AudioBuffer structs attached and one of the following is false All AudioBuffers have the same data length. The channels are non-interleaved (planar). The number of channels reported by the format is the same as the number of AudioBuffer structs. All of the AudioBuffers are single channel (together they can create multiple channels, but each individually must be single channel). There are only 2 AudioBuffer structs (if there are more than 2, all channels after 2 will be droppped). When this error is emitted, only a single audio channel will be processed, unless the error is too many channels, at which point 2 channels will be processed. This error will only be emitted once per audio source.Declaration
Objective-C
IVSBroadcastErrorPCMUnsupportedSample = 10411Swift
case pcmUnsupportedSample = 10411 -
Deprecated
Use IVSBroadcastErrorCodeAppSuspension instead
This is thrown when the host application is in the background with an active
AVAudioSession, but theAVAudioSessionwas just interrupted. At that point the application is likely to be suspended, and any in progress sessions will be ended.Declaration
Objective-C
IVSBroadcastErrorAppSuspension = 10412Swift
case appSuspension = 10412 -
Deprecated
Use IVSBroadcastErrorCodeBackgroundVideoSourceWasRemoved instead
The background video source was removed before finishing.
Declaration
Objective-C
IVSBroadcastErrorBackgroundVideoSourceWasRemoved = 10413Swift
case backgroundVideoSourceWasRemoved = 10413 -
Deprecated
Use IVSBroadcastErrorCodeInPhoneCall instead
This is thrown when the host application is in a phone call and the SDK attempts to activate the
AVAudioSession. This can be safely ignored by host applications, but can be useful to track to inform end users that the SDK might not be working at the moment.Declaration
Objective-C
IVSBroadcastErrorInPhoneCall = 10414Swift
case inPhoneCall = 10414 -
Deprecated
Use IVSBroadcastErrorCodeSessionInterrupted instead
This is thrown when iOS notifies the SDK that the
AVAudioSessionis interrupted, and then the SDK attempts to activate the session before the interruption is ended.Declaration
Objective-C
IVSBroadcastErrorSessionInterrupted = 10415Swift
case sessionInterrupted = 10415 -
Deprecated
Use IVSBroadcastErrorCodeImageDeviceFrameCallbackBackpressure instead
This is thrown when the delegate queue for the
IVSImageDevice.setOnFrameCallbackis experiencing back-pressure and frames are not being released quickly enough. Make sure the code processing the frames is processing quickly enough to handle real time samples.Declaration
Objective-C
IVSBroadcastErrorImageDeviceFrameCallbackBackpressure = 10416Swift
case imageDeviceFrameCallbackBackpressure = 10416 -
Deprecated
Use IVSBroadcastErrorCodeMessagePayloadEmpty instead
The message payload is empty. Provide a non-empty NSData object.
Declaration
Objective-C
IVSBroadcastErrorMessagePayloadEmpty = 10500Swift
case messagePayloadEmpty = 10500 -
Deprecated
Use IVSBroadcastErrorCodeMessagePayloadTooLarge instead
The message payload exceeds the maximum allowed size of 1KB. Reduce the payload size and try again.
Declaration
Objective-C
IVSBroadcastErrorMessagePayloadTooLarge = 10501Swift
case messagePayloadTooLarge = 10501 -
Deprecated
Use IVSBroadcastErrorCodeMessageInvalidRepeatCount instead
The message repeat count is invalid. The repeat count must be between 0 and 30.
Declaration
Objective-C
IVSBroadcastErrorMessageInvalidRepeatCount = 10502Swift
case messageInvalidRepeatCount = 10502 -
Deprecated
Use IVSBroadcastErrorCodeMessageRateLimitExceeded instead
The message rate limit has been exceeded. The total size of message payloads within a rolling one-second window must not exceed the maximum allowed limit of 10KB.
Declaration
Objective-C
IVSBroadcastErrorMessageRateLimitExceeded = 10503Swift
case messageRateLimitExceeded = 10503