5

I'm writing a library around ExoPlayer (creating a simple View that can be dragged and dropped into an app and will play videos and advertisements per our company's business logic). As I'm looking to tweak the display of this player, I Googled the obvious ("how to change appearance of exoplayer") and I keep seeing references to SimpleExoPlayerView. But from my understanding I should be placing a PlayerView onto my layout, not a SimpleExoPlayerView

What is the difference between these two classes?

stevendesu
  • 15,753
  • 22
  • 105
  • 182

3 Answers3

3

As of now, after reading the documentation, I noted that the only difference I could see is that SimpleExoPlayerView is deprecated:

Deprecated. Use PlayerView.

Therefore, and although it could have made a difference in the past, use PlayerView.

Paul Lemarchand
  • 2,068
  • 1
  • 15
  • 27
2

PlayerView is deprecated too, use StyledPlayerView instead. Google, please stop it.

Acuna
  • 1,741
  • 17
  • 20
0

'com.google.android.exoplayer:exoplayer:2.18.1' with version you should use StyledPlayerView because PlayerView deprecated.

enter image description here

Halil Ozel
  • 2,482
  • 3
  • 17
  • 32