Recent

Author Topic: LAMW: MediaPlayer setAudioStream method is getting deprecated by google  (Read 244 times)

Manlio

  • Jr. Member
  • **
  • Posts: 58
  • Pascal dev
While studying how the MediaPlayer component works I came across this:

https://developer.android.com/reference/android/media/MediaPlayer.html#setAudioStreamType(int)

(Deprecated in Android 26)

It says to replace it with setAudioAttributes

https://developer.android.com/reference/android/media/MediaPlayer.html#setAudioAttributes(android.media.AudioAttributes)

(Added in Android 21)

So it looks like some maintenance will be needed there, at some point.

Thanks

manlio mazzon gmail