WowzaGoCoder
IntroductionThe WowzaGoCoder class is the primary API interface for the GoCoder SDK. It provides methods for configuring and controlling devices and streaming live video. Methods
endStreaming:- (void) endStreaming:(nullable id<WOWZStatusCallback>)statusCallback; ParametersDiscussionEnds the active streaming session. permissionForType:ParametersDiscussionGets the permission status for the specified WowzaGoCoderPermissionType. registerAudioEncoderSink:- (void) registerAudioEncoderSink:(nonnull id<WOWZAudioEncoderSink>)sink; ParametersDiscussionRegisters a WOWZAudioEncoderSink object with WowzaGoCoder. WOWZAudioEncoderSink protocol methods are called when audio is being captured and/or encoded. registerAudioSink:- (void) registerAudioSink:(nonnull id<WOWZAudioSink>)sink; ParametersDiscussionRegisters a WOWZAudioSink object with WowzaGoCoder. WOWZAudioSink protocol methods are called when audio is being captured and/or encoded. registerDataSink:eventName:- (void) registerDataSink:(nonnull id<WOWZDataSink>)sink eventName:(nonnull NSString *)eventName; ParametersDiscussionRegisters a WOWZDataSink object with WowzaGoCoder. WOWZDataSink protocol methods are called when video is being encoded and a data event is received from the server. registerLicenseKey:+ (nullable NSError *) registerLicenseKey:(nonnull NSString *)licenseKey; ParametersReturn ValueNil if no error, or an NSError that describes the license validation error. DiscussionRegisters and validates the GoCoder SDK license key. registerVideoEncoderSink:- (void) registerVideoEncoderSink:(nonnull id<WOWZVideoEncoderSink>)sink; ParametersDiscussionRegisters a WOWZVideoEncoderSink object with WowzaGoCoder. WOWZVideoEncoderSink protocol methods are called when video is actively encoding. registerVideoSink:- (void) registerVideoSink:(nonnull id<WOWZVideoSink>)sink; ParametersDiscussionRegisters a WOWZVideoSink object with WowzaGoCoder. WOWZVideoSink protocol methods are called when video is being encoded. requestPermissionForType:response:+ (void) requestPermissionForType:(WowzaGoCoderPermissionType)type response:(nullable WOWZPermissionBlock)response; ParametersDiscussionRequests explicit permission to use the device's camera or microphone. sendDataEvent:eventName:params:callback:- (void) sendDataEvent:(WOWZDataScope)scope eventName:(nonnull NSString *)eventName params:(nonnull WOWZDataMap *)params callback:(nullable WOWZDataCallback)callback; ParametersDiscussionSends user-defined metadata with the current broadcast stream. sendPingRequest:- (void) sendPingRequest:(nonnull WOWZDataCallback)callback; ParametersDiscussionSends a ping request to the server and returns the result of the specified callback. setLogLevel:+ (void) setLogLevel:(WowzaGoCoderLogLevel)level; ParametersDiscussionSets the SDK log level. setNetworkLogLevel:+ (void) setNetworkLogLevel:(WowzaGoCoderNetworkLogLevel)level; ParametersDiscussionSets the SDK network layer log level. sharedInstance+ (nullable instancetype) sharedInstance; Return ValueAn instance of the top-level GoCoder SDK API interface, or nil if licensing failed. DiscussionGets the WowzaGoCoder shared instance. startStreaming:- (void) startStreaming:(nullable id<WOWZStatusCallback>)statusCallback; ParametersDiscussionStarts a live streaming session with a specified status callback. startStreamingWithConfig:config:- (void) startStreamingWithConfig:(nullable id<WOWZStatusCallback>)statusCallback config:(nonnull WowzaConfig *)aConfig; ParametersDiscussionStarts a live streaming session with a specified status callback and configuration settings. startStreamingWithPreset:preset:- (void) startStreamingWithPreset:(nullable id<WOWZStatusCallback>)statusCallback preset:(WOWZFrameSizePreset)aPreset; ParametersDiscussionStarts a live streaming session with a specified status callback and WOWZFrameSizePreset preset. unregisterAudioEncoderSink:- (void) unregisterAudioEncoderSink:(nonnull id<WOWZAudioEncoderSink>)sink; ParametersDiscussionUnregisters a WOWZAudioEncoderSink object from WowzaGoCoder. unregisterAudioSink:- (void) unregisterAudioSink:(nonnull id<WOWZAudioSink>)sink; ParametersDiscussionUnregisters a WOWZAudioSink object from WowzaGoCoder. unregisterDataSink:eventName:- (void) unregisterDataSink:(nonnull id<WOWZDataSink>)sink eventName:(nonnull NSString *)eventName; ParametersDiscussionUnregisters a WOWZDataSink object from WowzaGoCoder. unregisterVideoEncoderSink:- (void) unregisterVideoEncoderSink:(nonnull id<WOWZVideoEncoderSink>)sink; ParametersDiscussionUnregisters a WOWZVideoEncoderSink object from WowzaGoCoder. unregisterVideoSink:- (void) unregisterVideoSink:(nonnull id<WOWZVideoSink>)sink; ParametersDiscussionUnregisters a WOWZVideoSink object from WowzaGoCoder. updateEncoderLimitedBitrate:- (void) updateEncoderLimitedBitrate:(NSInteger)bitrate; ParametersDiscussionUpdates the broadcast to use a lower-bitrate encoding during limited network conditions. updateEncoderTargetBitrate:- (void) updateEncoderTargetBitrate:(NSInteger)bitrate; ParametersDiscussionUpdates the broadcast to use the target bitrate encoding during normal network conditions. Typedefs
NS_ENUMprivate Constants
DiscussionSettings for the log level for the GoCoder SDK. See Also NS_ENUMprivate Constants
DiscussionSettings for the network log level for the GoCoder SDK. See Also NS_ENUMprivate Constants
DiscussionPermissions for either an audio- or video-capture device. See Also NS_ENUMprivate Constants
DiscussionThe permission types that are available in the SDK. See Also WowzaGoCoderCapturePermissionprivate Constants
DiscussionPermissions for either an audio- or video-capture device. See Also WowzaGoCoderLogLevelprivate Constants
DiscussionSettings for the log level for the GoCoder SDK. See Also WowzaGoCoderNetworkLogLevelprivate Constants
DiscussionSettings for the network log level for the GoCoder SDK. See Also WowzaGoCoderPermissionTypeprivate Constants
DiscussionThe permission types that are available in the SDK. See Also WOWZPermissionBlockprivate DiscussionA callback block that's used with requestCameraPermission and requestMicrophonePermission. PropertiesaudioMuted@property (nonatomic, assign, getter=isAudioMuted) BOOL audioMuted; DiscussionThe muted state of the audio encoder. audioSessionOptions@property (nonatomic, assign) AVAudioSessionCategoryOptions audioSessionOptions; DiscussionThe AVAudioSessionCategoryOptions to use when streaming with audio. The default is AVAudioSessionCategoryOptionAllowBluetooth. This property must be set before starting a preview session. cameraPreview@property (nonatomic, nullable, readonly) WOWZCameraPreview *cameraPreview; DiscussionThe WOWZCameraPreview object created when the cameraView is set. cameraView@property (nonatomic, nullable) UIView *cameraView; DiscussionThe view to use for the camera preview. config@property (nonatomic, nonnull, copy) WowzaConfig *config; DiscussionThe audio, video, and stream configuration settings. isStreaming@property (nonatomic, readonly) BOOL isStreaming; DiscussionTrue if a live stream is broadcasting; false otherwise. metaData@property (nonatomic, readonly, nullable) WOWZDataMap *metaData; DiscussionThe stream metadata for the broadcasted stream. status@property (nonatomic, nonnull, readonly) WOWZStatus *status; DiscussionThe status of the current live streaming session. |