com.google.android.exoplayer.ExoPlaybackException: com.google.android.exoplayer.upstream.Loader$UnexpectedLoaderException: Unexpected ClassCastException: com.net.rtsp.RtspURLConnection cannot be cast to java.net.HttpURLConnection

Stack Overflow | rakiop | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Android Google VrVideoView with RTSP source

    Stack Overflow | 5 months ago | rakiop
    com.google.android.exoplayer.ExoPlaybackException: com.google.android.exoplayer.upstream.Loader$UnexpectedLoaderException: Unexpected ClassCastException: com.net.rtsp.RtspURLConnection cannot be cast to java.net.HttpURLConnection

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.net.rtsp.RtspURLConnection cannot be cast to java.net.HttpURLConnection

      at com.google.android.exoplayer.upstream.DefaultHttpDataSource.makeConnection()
    2. Custom implementation of exoplayer with slow motion
      DefaultUriDataSource.open
      1. com.google.android.exoplayer.upstream.DefaultHttpDataSource.makeConnection(DefaultHttpDataSource.java:384)
      2. com.google.android.exoplayer.upstream.DefaultHttpDataSource.makeConnection(DefaultHttpDataSource.java:339)
      3. com.google.android.exoplayer.upstream.DefaultHttpDataSource.open(DefaultHttpDataSource.java:189)
      4. com.google.android.exoplayer.upstream.DefaultUriDataSource.open(DefaultUriDataSource.java:133)
      4 frames
    3. com.google.android
      ExtractorSampleSource$ExtractingLoadable.load
      1. com.google.android.exoplayer.extractor.ExtractorSampleSource$ExtractingLoadable.load(ExtractorSampleSource.java:823)
      1 frame
    4. Custom implementation of exoplayer with slow motion
      Loader$LoadTask.run
      1. com.google.android.exoplayer.upstream.Loader$LoadTask.run(Loader.java:222)
      1 frame
    5. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:237)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
      5. java.lang.Thread.run(Thread.java:818)
      5 frames