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

  轨道基类 v3.23.0 新增

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MediaTrack()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `float` | `getDuration()` 获取轨道时长
    `void` | `setDuration(float 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()

      获取轨道时长
      Returns:
        轨道时长

    - #### setDuration

          public void setDuration(float duration)

      设置轨道时长
      Parameters:
        `duration` - 轨道时长