зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1754239 - Display CodecSupportInfo gfxVar in about:support r=media-playback-reviewers,fluent-reviewers,Gijs,alwu
Differential Revision: https://phabricator.services.mozilla.com/D147388
This commit is contained in:
Родитель
dd29c0063c
Коммит
ce39af80c6
|
@ -1052,6 +1052,12 @@ var snapshotFormatters = {
|
|||
|
||||
// Media Capabilitites
|
||||
insertEnumerateDatabase();
|
||||
|
||||
// Codec decode/encode support information (inc. HW accel)
|
||||
// Currently supported on Windows with Linux/OS X support under development
|
||||
if (AppConstants.platform == "win") {
|
||||
insertBasicInfo("media-codec-support-info", data.codecSupportInfo);
|
||||
}
|
||||
},
|
||||
|
||||
remoteAgent(data) {
|
||||
|
|
|
@ -164,6 +164,7 @@ media-device-channels = Channels
|
|||
media-device-rate = Rate
|
||||
media-device-latency = Latency
|
||||
media-capabilities-title = Media Capabilities
|
||||
media-codec-support-info = Codec Support Information
|
||||
# List all the entries of the database.
|
||||
media-capabilities-enumerate = Enumerate database
|
||||
|
||||
|
|
|
@ -776,6 +776,22 @@ var dataProviders = {
|
|||
.audioDevices(Ci.nsIDOMWindowUtils.AUDIO_INPUT)
|
||||
.QueryInterface(Ci.nsIArray)
|
||||
);
|
||||
|
||||
data.codecSupportInfo = "Unknown";
|
||||
|
||||
// We initialize gfxInfo here in the same way as in the media
|
||||
// section -- should we break this out into a separate function?
|
||||
try {
|
||||
// nsIGfxInfo may not be implemented on some platforms.
|
||||
var gfxInfo = Cc["@mozilla.org/gfx/info;1"].getService(Ci.nsIGfxInfo);
|
||||
|
||||
// Note: CodecSupportInfo is not populated until we have
|
||||
// actually instantiated a PDM. We may want to add a button
|
||||
// or some other means of allowing the user to manually
|
||||
// instantiate a PDM to ensure that the data is available.
|
||||
data.codecSupportInfo = gfxInfo.CodecSupportInfo;
|
||||
} catch (e) {}
|
||||
|
||||
done(data);
|
||||
},
|
||||
|
||||
|
|
|
@ -859,6 +859,10 @@ const SNAPSHOT_SCHEMA = {
|
|||
},
|
||||
},
|
||||
},
|
||||
codecSupportInfo: {
|
||||
required: false,
|
||||
type: "string",
|
||||
},
|
||||
},
|
||||
},
|
||||
accessibility: {
|
||||
|
|
Загрузка…
Ссылка в новой задаче