![]() |
Streamaxia Open SDK
3.2
|
#import <AXUtils.h>
Instance Methods | |
Public methods | |
| (NSInteger) | - bitrateForResolution: |
| (NSInteger) | - minBitrateForResolution: |
| (NSInteger) | - maxBitrateForResolution: |
| (NSInteger) | - clampBitrate:forResolution: |
| (AXVideoFrameSize) | - frameSizeForResolution: |
Class Methods | |
Lifecycle | |
| (instancetype) | + utils |
Properties | |
| AVAuthorizationStatus | microphoneStatus |
| AVAuthorizationStatus | cameraStatus |
| BOOL | hasAccessToMicrophone |
| BOOL | hasDeterminedAccessToMicrophone |
| BOOL | hasAccessToCamera |
| BOOL | hasDeterminedAccessToCamera |
| UIInterfaceOrientation | currentStatusBarOrientation |
| AVCaptureVideoOrientation | currentCaptureVideoOrientation |
Properties | |
| NSDictionary< NSNumber *, NSNumber * > * | optimalBitrates |
| NSDictionary< NSNumber *, NSNumber * > * | minBitrates |
| NSDictionary< NSNumber *, NSNumber * > * | maxBitrates |
| NSArray< NSNumber * > * | allResolutions |
| NSDictionary< NSNumber *, NSValue * > * | frameSizes |
The utils class. Provides useful properties and methods to use along with the streaming SDK.
| - (NSInteger) bitrateForResolution: | (AXVideoFrameResolution) | resolution |
Provides the optimal bit rate for the given resolution.
| resolution | The resolution |
Provided by category AXUtils(Bitrate).
| - (NSInteger) clampBitrate: | (NSInteger) | bitrate | |
| forResolution: | (AXVideoFrameResolution) | resolution | |
Clamps the given bit rate between the recommended minimum and maximum bit rate values, for the given resolution.
The input bit rate should be in bits per second (bps).
| bitrate | The bit rate. |
| resolution | The resolution |
Provided by category AXUtils(Bitrate).
| - (AXVideoFrameSize) frameSizeForResolution: | (AXVideoFrameResolution) | resolution |
Provides the frame size for the given video resolution.
| resolution | The resolution. |
Provided by category AXUtils(Resolution).
| - (NSInteger) maxBitrateForResolution: | (AXVideoFrameResolution) | resolution |
Provides the maximum bit rate for the given resolution.
| resolution | The resolution |
Provided by category AXUtils(Bitrate).
| - (NSInteger) minBitrateForResolution: | (AXVideoFrameResolution) | resolution |
Provides the minimum bit rate for the given resolution.
| resolution | The resolution |
Provided by category AXUtils(Bitrate).
| + (instancetype) utils |
Factory method for creating a utils object.
|
readnonatomicstrong |
The list of all the resolutions defined in the SDK, as wrapped values.
Provided by category AXUtils(Resolution).
|
readnonatomicassign |
Returns the camera authorization status.
Provided by category AXUtils(CaptureDeviceAuthorization).
|
readnonatomicstrong |
The list of resolution and their corresponding frame sizes, as CGSize wrapped values.
Provided by category AXUtils(Resolution).
|
readnonatomicassign |
Returns YES if the camera was authorized.
Provided by category AXUtils(CaptureDeviceAuthorization).
|
readnonatomicassign |
Returns YES if the microphone was authorized.
Provided by category AXUtils(CaptureDeviceAuthorization).
|
readnonatomicassign |
Returns YES if the camera access has been determined.
Provided by category AXUtils(CaptureDeviceAuthorization).
|
readnonatomicassign |
Returns YES if the microphone access has been determined.
Provided by category AXUtils(CaptureDeviceAuthorization).
|
readnonatomicstrong |
The list of maximum bit rates for each resolution.
Provided by category AXUtils(Bitrate).
|
readnonatomicassign |
Returns the microphone authorization status.
Provided by category AXUtils(CaptureDeviceAuthorization).
|
readnonatomicstrong |
The list of minimum bit rates for each resolution.
Provided by category AXUtils(Bitrate).
|
readnonatomicstrong |
The list of optimal bit rates for each resolution.
Provided by category AXUtils(Bitrate).
1.8.13