Class Timeline.Period

  • Enclosing class:
    Timeline

    public static class Timeline.Period
    extends Object
    A Period.
    • Constructor Detail

      • Period

        public Period​(@NonNull
                      List<VideoTrack> videoTracks,
                      @NonNull
                      List<AudioTrack> audioTracks,
                      @NonNull
                      List<SubtitleTrack> subtitleTracks,
                      @NonNull
                      List<DashDescriptor> descriptors,
                      @NonNull
                      List<EventStream> eventStreams,
                      @Nullable
                      Object id,
                      int windowIndex,
                      long durationUs,
                      long positionInWindowUs)
        Parameters:
        videoTracks - VideoTracks
        audioTracks - AudioTracks
        subtitleTracks - SubtitleTracks
        descriptors - DashDescriptors of the Period
        eventStreams - EventStreams of the Period
        id - the id of the Period
        windowIndex - the Window index to which this Period belongs to
        durationUs - the duration of the Period
        positionInWindowUs - the position of the Period inside its Window in microseconds
    • Method Detail

      • getId

        public Object getId()
        Returns:
        the Period id
      • getWindowIndex

        public int getWindowIndex()
        Returns:
        the Window index to which this Period belongs to
      • getDurationUs

        public long getDurationUs()
        Returns:
        the duration of the Period in microseconds
      • getDurationMs

        public long getDurationMs()
        Returns:
        the duration of the Period in milliseconds
      • getPositionInWindowMs

        public long getPositionInWindowMs()
        Returns:
        the position of the Period inside its Window in milliseconds
      • getPositionInWindowUs

        public long getPositionInWindowUs()
        Returns:
        the position of the Period inside its Window in microseconds