API reference

StreamConfiguration Struct

Extends Sendable
Configuration for a media streaming session with a Meta Wearables device. Defines video codec, resolution, frame delivery strategy, and target frame rate.

Signature

struct StreamConfiguration: Sendable

Constructors

init ( videoCodec , resolution , frameRate )
Creates a new stream session configuration with specified parameters.
Signature
public init( videoCodec: VideoCodec,  resolution: StreamingResolution,  frameRate: UInt)
Parameters
videoCodec: VideoCodec  The video codec to use for streaming.
resolution: StreamingResolution  The resolution for video streaming.
frameRate: UInt  The target frame rate for streaming.
init ()
Creates a new stream session configuration with default settings. Uses raw video codec, medium resolution, deliver-all frame strategy, and 30 FPS.
Signature
public init()

Properties

frameRate : UInt
The target frame rate for the streaming session.
resolution : StreamingResolution
The resolution at which to stream video content.
videoCodec : VideoCodec
The video codec to use for streaming.