Android Exoplayer中PlayerView和StyledPlayerView有什么区别

Dev*_*ath 6 android kotlin exoplayer

玩家视图

<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">
Run Code Online (Sandbox Code Playgroud)

样式化的播放器视图

<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">
Run Code Online (Sandbox Code Playgroud)
  • 它们之间的主要区别是什么。
  • 何时使用哪一种以及在什么场景下使用。
  • 两者都可以定制app:controller_layout_id,为什么会有两种不同类型的播放器