googlecast / CastVideos-android

Reference Android Sender w/ Framework API: CastVideos-android application shows how to cast videos from an Android device that is fully compliant with the Cast Design Checklist.
Apache License 2.0
345 stars 183 forks source link

Custom mini controller is getting disappeared randomly. #101

Open souravbasu14 opened 3 years ago

souravbasu14 commented 3 years ago

Hi, We are trying to customize mini controller and seeing a random behavior. Minicontroller is getting hidden and giving a flicker. Attached is a captured video of for the same. https://user-images.githubusercontent.com/10879439/105458333-5bd9d700-5cae-11eb-91a5-0f503e5a279a.mp4

We have tried the below to customize the minicontroller:

  1. In player_activity.xml a. Replaced class="com.google.android.gms.cast.framework.media.widget.MiniControllerFragment" with custom class class="com.google.sample.cast.refplayer.expandedcontrols.MiniController"
  2. Added a java class MiniController which extends MiniControllerFragment a. Created custom layout for mini controller : cast_mini_controller_custom b. Used bind view methods to bind view to use Attached is the github sample code with that change. CastVideos-android-master.zip

Please let me know if anything we are missing.