Class SlowMotionData.Segment

  • All Implemented Interfaces:
    Parcelable
    Enclosing class:
    SlowMotionData

    public static final class SlowMotionData.Segment
    extends Object
    implements Parcelable
    Holds information about a single segment of slow motion playback within a track.
    • Field Detail

      • startTimeMs

        public final long startTimeMs
        The start time, in milliseconds, of the track segment that is intended to be slow motion.
      • endTimeMs

        public final long endTimeMs
        The end time, in milliseconds, of the track segment that is intended to be slow motion.
      • speedDivisor

        public final int speedDivisor
        The speed reduction factor.

        For example, 4 would mean the segment should be played at a quarter (1/4) of the normal speed.

    • Constructor Detail

      • Segment

        public Segment​(long startTimeMs,
                       long endTimeMs,
                       int speedDivisor)
        Creates an instance.
        Parameters:
        startTimeMs - See startTimeMs. Must be less than endTimeMs.
        endTimeMs - See endTimeMs.
        speedDivisor - See speedDivisor.