i have resolved the drm issue and namespace here. Add this to pubspec.yaml
better_player: git: url: 'https://github.com/afrahshaikh/even_better_player.git' ref: main