Player layout only for peertube

This commit is contained in:
Thomas 2023-01-29 16:06:08 +01:00
parent 9a38da9475
commit 926caf2f3f
3 changed files with 3 additions and 0 deletions

View file

@ -63,6 +63,8 @@ public class BasePeertubeActivity extends BaseBarActivity {
binding = ActivityPeertubeBinding.inflate(getLayoutInflater());
View view = binding.getRoot();
setContentView(view);
binding.minController.castPlay.setOnClickListener(v -> {
binding.minController.castLoader.setVisibility(View.VISIBLE);
if (PeertubeBaseMainActivity.chromeCast != null) {

View file

@ -56,6 +56,7 @@
android:layout_height="match_parent"
android:animateLayoutChanges="true"
app:dtpv_controller="@+id/media_video"
app:controller_layout_id="@layout/peertube_exo_player_control_view"
app:use_controller="true" />
<com.github.vkay94.dtpv.youtube.YouTubeOverlay