Closed Bug 1314530 Opened 9 years ago Closed 9 years ago

[EME][Fennec] Instantiate MediaDrmCDMProxy and pass MediaPrefs::PDMAndroidRemoteCodecEnabled() to MediaCDMProxy to determine RemoteMediaDrmBridge or LocalMediaDrmBridge

Categories

(Firefox for Android Graveyard :: Audio/Video, defect, P2)

defect

Tracking

(firefox52 fixed)

RESOLVED FIXED
Firefox 52
Tracking Status
firefox52 --- fixed

People

(Reporter: JamesCheng, Unassigned)

References

Details

Attachments

(3 files)

Once bug 1306196, bug 1306185, bug 1306572 got landed, we need to create the MediaDrmBrige instance by the preference to determine it is oop case or non-oop case.
Summary: Instantiate RemoteMediaDrmBridge or LocalMediaDrmBridge by MediaPrefs::PDMAndroidRemoteCodecEnabled() → [EME][Fennec] Instantiate RemoteMediaDrmBridge or LocalMediaDrmBridge by MediaPrefs::PDMAndroidRemoteCodecEnabled()
Priority: -- → P2
Attachment #8808039 - Flags: review?(cpearce)
Attachment #8808040 - Flags: review?(cpearce)
Attachment #8808041 - Flags: review?(cpearce)
Summary: [EME][Fennec] Instantiate RemoteMediaDrmBridge or LocalMediaDrmBridge by MediaPrefs::PDMAndroidRemoteCodecEnabled() → [EME][Fennec] Instantiate MediaDrmCDMProxy and pass MediaPrefs::PDMAndroidRemoteCodecEnabled() to MediaCDMProxy to determine RemoteMediaDrmBridge or LocalMediaDrmBridge
Comment on attachment 8808040 [details] Bug 1314530 Part2 - Add isRemote flag to MediaDrmProxy::Create function to determine if it is oop case. https://reviewboard.mozilla.org/r/90964/#review90720 ::: mobile/android/base/java/org/mozilla/gecko/media/MediaDrmProxy.java:253 (Diff revision 1) > > @WrapForJNI(calledFrom = "gecko") > public static MediaDrmProxy create(String keySystem, > - Callbacks nativeCallbacks) { > + Callbacks nativeCallbacks, > + boolean isRemote) { > + // TODO: Bug 1307818 wiil implement the instantiate logic by the isRemote flag 1) s/wiil/will 2) (Maybe) rephrase it to TODO: Will implement {Local,Remote}MediaDrmBridge instantiation by '''isRemote''' flag in Bug XXX.
Comment on attachment 8808039 [details] Bug 1314530 Part1 - Remove IsInPrivateBrowsing() since we did not use it anymore. https://reviewboard.mozilla.org/r/90962/#review90970
Attachment #8808039 - Flags: review?(cpearce) → review+
Comment on attachment 8808040 [details] Bug 1314530 Part2 - Add isRemote flag to MediaDrmProxy::Create function to determine if it is oop case. https://reviewboard.mozilla.org/r/90964/#review90972
Attachment #8808040 - Flags: review?(cpearce) → review+
Comment on attachment 8808041 [details] Bug 1314530 Part3 - Instantiate MediaDrmCDMProxy if it is widevine on fennec. https://reviewboard.mozilla.org/r/90966/#review90974 ::: dom/media/eme/MediaKeys.h:137 (Diff revision 2) > bool IsBoundToMediaElement() const; > > private: > > + // Instantiate CDMProxy instance. > + // It could be MediaDrmCDMProxy(Widevine on Fennec) or GMPCDMProxy(the rest). s/GMPCDMProxy(the rest)/GMPCDMProxy (the rest)/ ::: dom/media/eme/MediaKeys.cpp:344 (Diff revision 2) > + mConfig.mDistinctiveIdentifier == MediaKeysRequirement::Required, > + mConfig.mPersistentState == MediaKeysRequirement::Required); > + } else > +#endif > + { > + proxy= new GMPCDMProxy(this, s/proxy=/proxy =/
Attachment #8808041 - Flags: review?(cpearce) → review+
Thanks for your review!
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/autoland/rev/3879ad77bbcf Part1 - Remove IsInPrivateBrowsing() since we did not use it anymore. r=cpearce https://hg.mozilla.org/integration/autoland/rev/13f6bd96aa78 Part2 - Add isRemote flag to MediaDrmProxy::Create function to determine if it is oop case. r=cpearce https://hg.mozilla.org/integration/autoland/rev/971aaa1646ed Part3 - Instantiate MediaDrmCDMProxy if it is widevine on fennec. r=cpearce
Keywords: checkin-needed
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: