Skip to content
Snippets Groups Projects

Disable WidevineCDM download

Merged Pascal Stücker requested to merge issue/disable-widevine into main
2 unresolved threads

By default CEF dynamically downloads and updates the Widevine DRM library from a Google CDN. We generally do not want external http requests, so this MR disables the update process.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
55 56 (*a).render_process_handler.as_ptr()
56 57 }
57 58
59 unsafe extern "C" fn on_before_command_line_processing(
60 _self: *mut chromium::cef::_cef_app_t,
61 _process_type: *const chromium::cef::cef_string_t,
62 command_line: *mut chromium::cef::_cef_command_line_t,
63 ) {
64 let disable_component_update = cef_string("disable-component-update");
  • 328 328 unsafe { cef::cef_string_userfree_utf16_free(url) };
    329 329 cstr
    330 330 }
    331
    332 #[jni_wrapper("org.eclipse.set.browser.lib.cef_command_line_t")]
    333 pub fn cefswt_disable_component_update(command_line: *mut chromium::cef::_cef_command_line_t) {
    334 let switch = chromium::utils::cef_string("disable-component-update");
  • This looks fine. If some other user of this library needs the automatic DRM update enabled we should make this configurable. But for now the always disabled behavior should be OK.

  • Nils Peters approved this merge request

    approved this merge request

  • merged

  • Please register or sign in to reply
    Loading