com.aliyun.svideosdk.common.struct.project

## Class MediaTrack

- java.lang.Object
- - com.aliyun.svideosdk.common.struct.project.Track
  - - com.aliyun.svideosdk.common.struct.project.MediaTrack

- Direct Known Subclasses:
    AudioTrack, VideoTrack

      public class MediaTrack
      extends Track

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MediaTrack()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `float` | `getDuration()` Gets the track duration.
    `void` | `setDuration(float duration)` Sets the track duration.

    - ### Methods inherited from class com.aliyun.svideosdk.common.struct.project.Track

      `getId, setId`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MediaTrack

          public MediaTrack()

  - ### Method Detail

    - #### getDuration

          public float getDuration()

      Gets the track duration.
      Returns:
        the track duration

    - #### setDuration

          public void setDuration(float duration)

      Sets the track duration.
      Parameters:
        `duration` - the track duration