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 IHtmlMediaElement5

interface IHtmlMediaElement5
Extends IHtmlMediaElement4 Extension to IHtmlMediaElement4 adding method to set source URL with custom HTTP headers atomically. Check IW3CMedia5’s documentation for usage example.

Methods

setSrcWithCustomHeaders()

void setSrcWithCustomHeaders(string url, ICustomHttpHeaders* headers)
Sets the media source URL along with custom HTTP headers required to download/access the media resource. Headers are tied to this URL and must be rebuilt for each new URL.

Parameters

url
string — Required The media source URL
headers
ICustomHttpHeaders* — Required The custom HTTP headers built via ICustomHttpHeadersBuilder. Throws InvalidInputError if null.
Last modified on October 29, 2026