-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Media Info Requirements #141
base: next
Are you sure you want to change the base?
Conversation
85c77a8
to
99e8b3b
Compare
2a452f2
to
ce996cd
Compare
1e4b8ff
to
c6d1bb4
Compare
2f05618
to
c860759
Compare
MFOS standalone sanity report - CORE,MANAGE,DISCOVERY: |
MFOS standalone sanity report - CORE,MANAGE,DISCOVERY: |
Adds a variety of methods so apps can get the capabilities of the device and its peripherals before attempting to play media.
New modules:
MediaCapabilities
audioCodecs
: The supported audio codecs, e.g.[aac, ac3, ac4, eac3]
videoCodecs
: The supported video codecs, e.g.[av1, avc, hevc]
atmosSupported
: Check whether Atmos is supportedcolorDepth
: The maximum supported color depth, e.g.10
hdrFormats
: The supported HDR formats, e.g.[hdr10, hdr10plus, hlg]
preferredVideoMode
: The best-supported video output mode, e.g.1080p60
Display
colorimetry
: The supported colorimetry values from the display, e.g.[BT2020RGB, BT2020YCC]
nativeResolution
: The display's advertised native resolution, e.g.{width: 1920, height: 1080}
size
: The physical width and height of the display (in centimeters), e.g.{width: 157, height: 91}
videoModes
: The supported video modes of the display, e.g.[1080p50, 1080p60]
AudioOutput
mode
: The current audio output mode setting of the device, e.g.auto
status
: The current audio output status, e.g.{mode: "stereo"}
VideoOutput
status
: The current video output status, e.g.{colorDepth: 10, hdrFormat: "hdr10", mode: 1080p60"}
onModeWillChange
: An event that fires when the device's video output mode changes but before it takes effectDeprecated Methods
Device.hdr
: Team decided to deprecatebooleanMap
methods; superceded byMediaCapabilities.hdrFormats
Device.screenResolution
: The web screen/graphical resolution; apps can get their current screen/window size using standard web or wayland APIsDevice.videoResolution
: The maximum supported video resolution; removed in favor of the more descriptiveMediaCapabilities.preferredVideoMode