Skip to content

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
Contributor

@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
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

namespace = "media.bcc.bccm_player_example"
compileSdkVersion flutter.compileSdkVersion
ndkVersion flutter.ndkVersion
ndkVersion "27.0.12077973"
Copy link
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
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
Copy link
Author

kxgcayh commented Jul 3, 2025

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