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 ISourceBuffer2

interface ISourceBuffer2
Extends ISourceBuffer The SourceBuffer Object Extension. For further details see https://www.w3.org/TR/2016/REC-media-source-20161117/#sourcebuffer

Methods

changeType()

void changeType(string mimeType)
Changes the MIME type associated with SourceBuffer. For more details see https://www.w3.org/TR/media-source-2/#dom-sourcebuffer-changetype

Parameters

mimeType
string — Required The new MimeType type of the content
Last modified on October 22, 2026