Skip to content

Implement widevine drm protected content#77

Open
kxgcayh wants to merge 9 commits into
bcc-code:mainfrom
kxgcayh:features/android-drm
Open

Implement widevine drm protected content#77
kxgcayh wants to merge 9 commits into
bcc-code:mainfrom
kxgcayh:features/android-drm

Conversation

@kxgcayh

@kxgcayh kxgcayh commented Feb 13, 2025

Copy link
Copy Markdown

About the changes

Now you can play protected content on Android

Important files

Updated file:

  • playback_platform_pigeon.dart
  • PlayerController.kt at replaceCurrentMediaItem()

Discussion points

@andreasgangso andreasgangso left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! Thanks for contributing back. I see a few necessary tweaks so I'm throwing in a review here. But @sifferhans is the maintainer now

playerView.findViewById<View?>(R.id.exo_progress)?.visibility = View.GONE
playerView.findViewById<View?>(R.id.exo_time)?.visibility = View.GONE
// playerView.findViewById<View?>(R.id.exo_progress)?.visibility = View.GONE
// playerView.findViewById<View?>(R.id.exo_time)?.visibility = View.GONE

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer deleting code instead of commenting

Comment thread example/android/app/build.gradle Outdated
namespace = "media.bcc.bccm_player_example"
compileSdkVersion flutter.compileSdkVersion
ndkVersion flutter.ndkVersion
ndkVersion "27.0.12077973"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Comment on lines +329 to +331
if (player.playbackState == Player.STATE_ENDED) {
return PlaybackPlatformApi.PlaybackState.STOPPED
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems unnecessary. its already handled by

!arrayOf(
                Player.STATE_ENDED,
                Player.STATE_IDLE
            ).contains(player.playbackState) ```

sifferhans
sifferhans previously approved these changes Jun 12, 2025
@kxgcayh

kxgcayh commented Jul 3, 2025

Copy link
Copy Markdown
Author

please check my latest commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants