Open Bug 1990159 Opened 16 days ago Updated 2 days ago

MediaCapabilities.decodingInfo() returns wrong persistentState value

Categories

(Core :: Audio/Video, defect, P2)

Firefox 143
defect

Tracking

()

People

(Reporter: tykus160, Unassigned, NeedInfo)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:143.0) Gecko/20100101 Firefox/143.0

Steps to reproduce:

Compare results of 2 MediaKeySystemAccess request functions:
rMKSA:

let mksa = await navigator.requestMediaKeySystemAccess('com.widevine.alpha', [{
  persistentState: 'required',
  videoCapabilities: [{
    contentType: 'video/mp4; codecs="avc1.42e01e"',
  }],
}]);
console.log(mksa.getConfiguration().persistentState);

MCap:

let info = await navigator.mediaCapabilities.decodingInfo({
  type: 'media-source',
  video: {
    width: 1280,
    height: 720,
    framerate: 30,
    bitrate: 10000,
    contentType: 'video/mp4; codecs="avc1.42e01e"'
  },
  keySystemConfiguration: {
    keySystem: 'com.widevine.alpha',
    persistentState: 'required',
  },
});
console.log(info.keySystemAccess.getConfiguration().persistentState);

Actual results:

rMKSA will properly return MKSA with persistentState: required.
MCap will return MKSA with peristentState: 'not-allowed'.

Expected results:

Results of those APIs should be consistent.

Component: Untriaged → Audio/Video
Product: Firefox → Core
Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P2

NI myself to take a look on this later.

Flags: needinfo?(alwu)
You need to log in before you can comment on or make changes to this bug.