What is the difference between PlayerView and StyledPlayerView in Android Exoplayer

Viewed 1818

PlayerView

<com.google.android.exoplayer2.ui.PlayerView
    android:id="@+id/exoplayerView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:controller_layout_id="@layout/layout_exoplayer_control_views"
    app:use_controller="true">

StyledPlayerView

<com.google.android.exoplayer2.ui.StyledPlayerView
    android:id="@+id/exoplayerView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:controller_layout_id="@layout/layout_exoplayer_control_views"
    app:use_controller="true">
  • What is the major difference between them.
  • When to use which one and in what scenario.
  • Customisation can be done in both using app:controller_layout_id, so why are there two different types of players
0 Answers
Related