-
Notifications
You must be signed in to change notification settings - Fork 12
Implement widevine drm protected content #77
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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
example/android/app/build.gradle
Outdated
| namespace = "media.bcc.bccm_player_example" | ||
| compileSdkVersion flutter.compileSdkVersion | ||
| ndkVersion flutter.ndkVersion | ||
| ndkVersion "27.0.12077973" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
| if (player.playbackState == Player.STATE_ENDED) { | ||
| return PlaybackPlatformApi.PlaybackState.STOPPED | ||
| } |
There was a problem hiding this comment.
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) ```|
please check my latest commit |
About the changes
Now you can play protected content on Android
Important files
Updated file:
playback_platform_pigeon.dartPlayerController.ktatreplaceCurrentMediaItem()Discussion points