Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

SDLVideoStreamingCapability Class Reference

Section Contents

Overview

Contains information about this system’s video streaming capabilities

-initWithPreferredResolution:maxBitrate:supportedFormats:hapticDataSupported:

Convenience init for creating a video streaming capability.

Objective-C

- (nonnull instancetype)
    initWithPreferredResolution:
        (nullable SDLImageResolution *)preferredResolution
                     maxBitrate:(int32_t)maxBitrate
               supportedFormats:(nullable NSArray<SDLVideoStreamingFormat *> *)
                                    supportedFormats
            hapticDataSupported:(BOOL)hapticDataSupported;

Swift

init(preferredResolution: SDLImageResolution?, maxBitrate: Int32, supportedFormats: [SDLVideoStreamingFormat]?, hapticDataSupported: Bool)

Parameters

preferredResolution

The preferred resolution of a video stream for decoding and rendering on HMI

maxBitrate

The maximum bitrate of video stream that is supported, in kbps

supportedFormats

Detailed information on each format supported by this system, in its preferred order

hapticDataSupported

True if the system can utilize the haptic spatial data from the source being streamed

Return Value

A SDLVideoStreamingCapability object

-initWithPreferredResolution:maxBitrate:supportedFormats:hapticDataSupported:diagonalScreenSize:pixelPerInch:scale:

Convenience init for creating a video streaming capability with all parameters.

Objective-C

- (nonnull instancetype)
    initWithPreferredResolution:
        (nullable SDLImageResolution *)preferredResolution
                     maxBitrate:(int32_t)maxBitrate
               supportedFormats:(nullable NSArray<SDLVideoStreamingFormat *> *)
                                    supportedFormats
            hapticDataSupported:(BOOL)hapticDataSupported
             diagonalScreenSize:(float)diagonalScreenSize
                   pixelPerInch:(float)pixelPerInch
                          scale:(float)scale;

Swift

init(preferredResolution: SDLImageResolution?, maxBitrate: Int32, supportedFormats: [SDLVideoStreamingFormat]?, hapticDataSupported: Bool, diagonalScreenSize: Float, pixelPerInch: Float, scale: Float)

Parameters

preferredResolution

The preferred resolution of a video stream for decoding and rendering on HMI

maxBitrate

The maximum bitrate of video stream that is supported, in kbps

supportedFormats

Detailed information on each format supported by this system, in its preferred order

hapticDataSupported

True if the system can utilize the haptic spatial data from the source being streamed

diagonalScreenSize

The diagonal screen size in inches

pixelPerInch

The diagonal resolution in pixels divided by the diagonal screen size in inches

scale

The scaling factor the app should use to change the size of the projecting view

Return Value

A SDLVideoStreamingCapability object

preferredResolution

The preferred resolution of a video stream for decoding and rendering on HMI

Optional

Objective-C

@property (readwrite, strong, nonatomic, nullable)
    SDLImageResolution *preferredResolution;

Swift

var preferredResolution: SDLImageResolution? { get set }

maxBitrate

The maximum bitrate of video stream that is supported, in kbps, optional

Optional, minvalue= 0, maxvalue= 2147483647

Objective-C

@property (readwrite, strong, nonatomic, nullable) NSNumber<SDLInt> *maxBitrate;

Swift

var maxBitrate: (NSNumber & SDLInt)? { get set }

supportedFormats

Detailed information on each format supported by this system, in its preferred order

Optional

Objective-C

@property (readwrite, strong, nonatomic, nullable)
    NSArray<SDLVideoStreamingFormat *> *supportedFormats;

Swift

var supportedFormats: [SDLVideoStreamingFormat]? { get set }

hapticSpatialDataSupported

True if the system can utilize the haptic spatial data from the source being streamed.

Optional

Objective-C

@property (readwrite, strong, nonatomic, nullable)
    NSNumber<SDLBool> *hapticSpatialDataSupported;

Swift

var hapticSpatialDataSupported: (NSNumber & SDLBool)? { get set }

diagonalScreenSize

The diagonal screen size in inches.

Float, Optional, minvalue=0 @since SDL 6.0

Objective-C

@property (readwrite, strong, nonatomic, nullable)
    NSNumber<SDLFloat> *diagonalScreenSize;

Swift

var diagonalScreenSize: (NSNumber & SDLFloat)? { get set }

pixelPerInch

The diagonal resolution in pixels divided by the diagonal screen size in inches.

Float, Optional, minvalue=0 @since SDL 6.0

Objective-C

@property (readwrite, strong, nonatomic, nullable)
    NSNumber<SDLFloat> *pixelPerInch;

Swift

var pixelPerInch: (NSNumber & SDLFloat)? { get set }

scale

The scaling factor the app should use to change the size of the projecting view.

Float, Optional, minvalue=1 maxvalue=10 @since SDL 6.0

Objective-C

@property (readwrite, strong, nonatomic, nullable) NSNumber<SDLFloat> *scale;

Swift

var scale: (NSNumber & SDLFloat)? { get set }
View on GitHub.com
Previous Section Next Section