title: Android: Exoplayer - ExtractorMediaSource is deprecated
body: <p>I am following this <a href="https://www.raywenderlich.com/5573-media-playback-on-android-with-exoplayer-getting-started" rel="noreferrer">tutorial</a> to implement the Exoplayer. But the ExtractorMediaSource class is deprecated. I need to play video from a remote url. What is the alternative to use in this situation?</p>
  
  <pre><code>val mediaSource = ExtractorMediaSource
    .Factory(DefaultDataSourceFactory(context, userAgent))
    .setExtractorsFactory(DefaultExtractorsFactory())
    .createMediaSource(Uri.parse(url))
  </code></pre>