Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IMediaSurface2

interface IMediaSurface2
Extends IMediaSurface A high level interface for clients to queue media Buffers for presentation. Any media player can use this interface to present its buffers.

Methods

setScalingMode()

void setScalingMode(ScalingMode scalingMode)
Set scaling mode [ScalingMode] of the buffer being presented. Please note, scaling mode being set here is overridden by the scaling mode set in [ITargetProperties] passed in presentBuffer().

Parameters

scalingMode
ScalingMode — Required Scaling mode to be applied

Throws


Last modified on October 29, 2026