java.lang.ClassCastException: com.google.android.exoplayer.dash.mpd.SegmentBase$SingleSegmentBase cannot be cast to com.google.android.exoplayer.dash.mpd.SegmentBase$SegmentList

GitHub | SLepUbIn | 8 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

    SegmentBase ClassCastException when parsing DASH .mpd file

    GitHub | 8 months ago | SLepUbIn
    java.lang.ClassCastException: com.google.android.exoplayer.dash.mpd.SegmentBase$SingleSegmentBase cannot be cast to com.google.android.exoplayer.dash.mpd.SegmentBase$SegmentList

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.google.android.exoplayer.dash.mpd.SegmentBase$SingleSegmentBase cannot be cast to com.google.android.exoplayer.dash.mpd.SegmentBase$SegmentList

      at com.google.android.exoplayer.dash.mpd.MediaPresentationDescriptionParser.parseRepresentation()
    2. Custom implementation of exoplayer with slow motion
      MediaPresentationDescriptionParser.parse
      1. com.google.android.exoplayer.dash.mpd.MediaPresentationDescriptionParser.parseRepresentation(MediaPresentationDescriptionParser.java:398)
      2. com.google.android.exoplayer.dash.mpd.MediaPresentationDescriptionParser.parseAdaptationSet(MediaPresentationDescriptionParser.java:261)
      3. com.google.android.exoplayer.dash.mpd.MediaPresentationDescriptionParser.parsePeriod(MediaPresentationDescriptionParser.java:209)
      4. com.google.android.exoplayer.dash.mpd.MediaPresentationDescriptionParser.parseMediaPresentationDescription(MediaPresentationDescriptionParser.java:140)
      5. com.google.android.exoplayer.dash.mpd.MediaPresentationDescriptionParser.parse(MediaPresentationDescriptionParser.java:104)
      5 frames