Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement widevine drm protected content #77

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kxgcayh
Copy link

@kxgcayh kxgcayh commented Feb 13, 2025

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

Copy link
Member

@andreasgangso andreasgangso left a comment

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
Member

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

compileSdkVersion flutter.compileSdkVersion
ndkVersion flutter.ndkVersion
ndkVersion "27.0.12077973"
Copy link
Member

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
Member

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) ```

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.

2 participants