Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Enable EME on GeckoView Beta
Browse files Browse the repository at this point in the history
Temporary workaround until https://bugzilla.mozilla.org/show_bug.cgi?id=1652474
lands on m-c.
  • Loading branch information
bluemarvin committed Jul 13, 2020
1 parent 45f818a commit 30c828a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import androidx.lifecycle.ViewModelStoreOwner;

import org.json.JSONObject;
import org.mozilla.gecko.PrefsHelper;
import org.mozilla.geckoview.GeckoRuntime;
import org.mozilla.geckoview.GeckoSession;
import org.mozilla.geckoview.GeckoVRManager;
Expand Down Expand Up @@ -316,6 +317,9 @@ protected void onCreate(Bundle savedInstanceState) {

getServicesProvider().getDownloadsManager().init();
getServicesProvider().getEnvironmentsManager().start();

// Temporary hack to enable EME on Beta GeckoView
PrefsHelper.setPref("media.eme.enabled", true);
}

protected void initializeWidgets() {
Expand Down

0 comments on commit 30c828a

Please sign in to comment.