One Logo Pool Ball
BrowserEngineKit · IOS API REFERENCE

MediaEnvironment

struct · iOS 17.4+ · SDK 27.1

struct MediaEnvironment

An object that identifies a media playback environment.

Members (6)

init · iOS 17.4+

init

TypeScript
static initXpcRepresentation(xpcRepresentation: SDKHandle): MediaEnvironment
Swift declaration
init(xpcRepresentation: xpc_object_t) throws

Create a media session from an XPC representation - Parameters: - xpcRepresentation: The XPC representation of a BEMediaEnvironment received via XPC

method · iOS 17.4+

makeCaptureSession

TypeScript
makeCaptureSession(): _AVFoundation_AVCaptureSession
Swift declaration
func makeCaptureSession() throws -> AVCaptureSession

Creates a new capture session in this media environment or throws an error if it can not be created. The media environment must be activated before the capture session can be started.

method · iOS 17.4+

createXPCRepresentation

TypeScript
createXPCRepresentation(): SDKHandle
Swift declaration
func createXPCRepresentation() -> xpc_object_t

The media environment encoded as an `xpc_object_t`.

method · iOS 17.4+ · Deprecated in iOS 27.0

suspend

TypeScript
suspend(): void
Swift declaration
func suspend() throws

Suspends the media environment.

init · iOS 17.4+

init

TypeScript
static initWebPage(url: string): MediaEnvironment
Swift declaration
init(webPage url: URL)

Creates a new media playback environment identified by the web page URL - Parameters: - webPage: The URL identifying the media playback environment

method · iOS 17.4+ · Deprecated in iOS 27.0

activate

TypeScript
activate(): void
Swift declaration
func activate() throws

Activates the media environment.

Skipped declarations

No declarations were skipped in this snapshot.

All BrowserEngineKit types →