jhomlala / betterplayer

Better video player for Flutter, with multiple configuration options. Solving typical use cases!
Apache License 2.0
889 stars 929 forks source link

[FEATURE] Offline Playback for DRM Content #1295

Open muhammedkamal opened 4 months ago

muhammedkamal commented 4 months ago

Is your feature request related to a problem? Please describe. Currently, the Better Player plugin for Flutter does not provide support for offline configuration of DRM settings. This limitation hinders the ability to initiate offline playback of DRM-protected content.

Describe the solution you'd like I am requesting the inclusion of a feature that allows Better Player to support offline configuration of DRM settings. This initial step would enable developers to set up DRM configurations offline, even if the complete offline playback feature is not yet implemented. This would be a valuable building block for future enhancements.

Proposed Offline DRM Configuration: To support offline configuration, developers should be able to set up DRM-related parameters locally. This may include:

Example Usage:

BetterPlayerController(
  betterPlayerConfiguration: BetterPlayerConfiguration(
    // Other configuration options...
    drmConfiguration: BetterPlayerDrmConfiguration(
      drmType: BetterPlayerDrmType.widevine,
      licenseFile: "assets/widevine-license-file",
      // Other DRM parameters for offline setup...
    ),
  ),
  // Other controller settings...
);

Describe alternatives you've considered Without native support for offline DRM configuration, developers may need to handle this aspect manually, which could lead to inconsistencies and additional complexities in the implementation.

Additional context In addition to supporting offline configuration:

Feel free to reach out for any additional information or clarification. I'm willing to assist in providing use case scenarios, testing, or any other details that might help implement this feature.