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 | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    SegmentBase ClassCastException when parsing DASH .mpd file

    GitHub | 6 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