com.aliyun.svideosdk.common.struct.effect

## Class EffectBean

- java.lang.Object
- - com.aliyun.svideosdk.common.struct.effect.EffectBean

- Deprecated.
  in v3.27.0 causing it's used in kinds of cases. It's violate to the principle of single responsibility

      @Deprecated
      public class EffectBean
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `EffectBean()` Deprecated.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(java.lang.Object obj)` Deprecated.
    `long` | `getDuration()` Deprecated. Gets the display duration of an effect.
    `long` | `getDuration(java.util.concurrent.TimeUnit timeUnit)` Deprecated. Sets the display duration of an effect.
    `int` | `getId()` Deprecated.
    `int` | `getMvAudioId()` Deprecated. Gets the id of the audio stream in an MV effect.
    `int` | `getOldId()` Deprecated. Gets the original id of a resource.
    `java.lang.String` | `getPath()` Deprecated. Replaced by `##getSource()`.
    `Source` | `getSource()` Deprecated. Gets the file of a resource.
    `long` | `getStartTime()` Deprecated. Sets the time when an effect appears.
    `long` | `getStartTime(java.util.concurrent.TimeUnit timeUnit)` Deprecated. Sets the time when an effect appears.
    `long` | `getStreamDuration()` Deprecated. Get the display duration of an effect on the stream.Unit: microseconds.
    `long` | `getStreamDuration(java.util.concurrent.TimeUnit timeUnit)` Deprecated. Get the display duration of an effect on the stream.Unit: milliseconds.
    `long` | `getStreamStartTime()` Deprecated. Get the time when an effect appears on the stream.Unit: microseconds.
    `long` | `getStreamStartTime(java.util.concurrent.TimeUnit timeUnit)` Deprecated. Get the time when an effect appears on the stream.Unit: milliseconds.
    `int` | `getWeight()` Deprecated.
    `void` | `setDuration(long durationUs)` Deprecated. Sets the display duration of an effect.
    `void` | `setDuration(long duration, java.util.concurrent.TimeUnit timeUnit)` Deprecated. Sets the display duration of an effect.
    `void` | `setId(int id)` Deprecated. Sets the id of a resource.
    `void` | `setMvAudioId(int audioId)` Deprecated. Sets the id of the audio stream in an MV effect.
    `void` | `setOldId(int oldId)` Deprecated. Sets the original id of a resource.
    `void` | `setPath(java.lang.String path)` Deprecated. Replaced by `##setSource(Source)`.
    `void` | `setSource(Source source)` Deprecated. Sets the file of a resource.
    `void` | `setStartTime(long startTimeUs)` Deprecated. Sets the time when an effect appears.
    `void` | `setStartTime(long startTime, java.util.concurrent.TimeUnit timeUnit)` Deprecated. Sets the time when an effect appears.
    `void` | `setStreamDuration(long streamDurationUs)` Deprecated. Sets the display duration of an effect on the stream.
    `void` | `setStreamDuration(long streamDuration, java.util.concurrent.TimeUnit timeUnit)` Deprecated. Sets the display duration of an effect on the stream.
    `void` | `setStreamStartTime(long streamStartTimeUs)` Deprecated. Sets the time when an effect appears on the stream.
    `void` | `setStreamStartTime(long streamStartTime, java.util.concurrent.TimeUnit timeUnit)` Deprecated. Sets the time when an effect appears on the stream.
    `void` | `setWeight(int weight)` Deprecated. Sets the weight of an audio stream.
    `TrackAudioStream` | `toTrackAudioStream()` Deprecated. Transform to `TrackAudioStream` bean
    `TrackEffectFilter` | `toTrackEffectFilter()` Deprecated. Transform to `TrackEffectFilter` bean
    `TrackEffectMV` | `toTrackMV()` Deprecated. Transform to `TrackEffectMV` bean

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

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

- - ### Constructor Detail

    - #### EffectBean

          public EffectBean()

      Deprecated.

  - ### Method Detail

    - #### getWeight

          public int getWeight()

      Deprecated.

    - #### setWeight

          public void setWeight(int weight)

      Deprecated.
      Sets the weight of an audio stream.
      Parameters:
        `weight` - Valid values: [0, 100]

    - #### getStreamStartTime

          public long getStreamStartTime()

      Deprecated.
      Get the time when an effect appears on the stream.Unit: microseconds.

    - #### getStreamStartTime

          public long getStreamStartTime(java.util.concurrent.TimeUnit timeUnit)

      Deprecated.
      Get the time when an effect appears on the stream.Unit: milliseconds.

      Added in v3.27.0

      Parameters:
        `timeUnit` - Time Unit

    - #### setStreamStartTime

          public void setStreamStartTime(long streamStartTimeUs)

      Deprecated.
      Sets the time when an effect appears on the stream.
      Parameters:
        `streamStartTimeUs` - Unit: microseconds.

    - #### setStreamStartTime

          public void setStreamStartTime(long streamStartTime,
                                         java.util.concurrent.TimeUnit timeUnit)

      Deprecated.
      Sets the time when an effect appears on the stream.

      Added in v3.27.0

      Parameters:
        `streamStartTime` -
        `timeUnit` - Time Unit

    - #### getStreamDuration

          public long getStreamDuration()

      Deprecated.
      Get the display duration of an effect on the stream.Unit: microseconds.

    - #### getStreamDuration

          public long getStreamDuration(java.util.concurrent.TimeUnit timeUnit)

      Deprecated.
      Get the display duration of an effect on the stream.Unit: milliseconds.
      Parameters:
        `timeUnit` - Time Unit

    - #### setStreamDuration

          public void setStreamDuration(long streamDurationUs)

      Deprecated.
      Sets the display duration of an effect on the stream.
      Parameters:
        `streamDurationUs` - Unit: microseconds.

    - #### setStreamDuration

          public void setStreamDuration(long streamDuration,
                                        java.util.concurrent.TimeUnit timeUnit)

      Deprecated.
      Sets the display duration of an effect on the stream.

      Added in v3.27.0

      Parameters:
        `streamDuration` -
        `timeUnit` - Time Unit

    - #### getId

          public int getId()

      Deprecated.

    - #### setId

          public void setId(int id)

      Deprecated.
      Sets the id of a resource.
      Parameters:
        `id` -

    - #### getOldId

          public int getOldId()

      Deprecated.
      Gets the original id of a resource. This method only applies to resources that are recovered from the draft folder.
      Returns:
        The original resource id.

    - #### setOldId

          public void setOldId(int oldId)

      Deprecated.
      Sets the original id of a resource. It is not recommended to call this method.
      Parameters:
        `oldId` - The original resource id.

    - #### getPath

          @Deprecated
          public java.lang.String getPath()

      Deprecated. Replaced by `##getSource()`.
      Gets the file of a resource.
      Returns:
        path

    - #### setPath

          @Deprecated
          public void setPath(java.lang.String path)

      Deprecated. Replaced by `##setSource(Source)`.
      Sets the file of a resource.
      Parameters:
        `path` -

    - #### getSource

          public Source getSource()

      Deprecated.
      Gets the file of a resource.
      Returns:
        Source

    - #### setSource

          public void setSource(Source source)

      Deprecated.
      Sets the file of a resource.
      Parameters:
        `source` - Source

    - #### getStartTime

          public long getStartTime()

      Deprecated.
      Sets the time when an effect appears. Currently, this method only applies to music effects. The time is the start time of the music effect on the playback timeline.Unit: microseconds.

    - #### getStartTime

          public long getStartTime(java.util.concurrent.TimeUnit timeUnit)

      Deprecated.
      Sets the time when an effect appears. Currently, this method only applies to music effects. The time is the start time of the music effect on the playback timeline.
      Parameters:
        `timeUnit` - Time Unit

    - #### setStartTime

          public void setStartTime(long startTimeUs)

      Deprecated.
      Sets the time when an effect appears. Currently, this method only applies to music effects. The time is the start time of the music effect on the playback timeline.
      Parameters:
        `startTimeUs` - Unit: microseconds.

    - #### setStartTime

          public void setStartTime(long startTime,
                                   java.util.concurrent.TimeUnit timeUnit)

      Deprecated.
      Sets the time when an effect appears. Currently, this method only applies to music effects. The time is the start time of the music effect on the playback timeline.

      Added in v3.27.0

      Parameters:
        `startTime` -
        `timeUnit` -

    - #### getDuration

          public long getDuration()

      Deprecated.
      Gets the display duration of an effect. Currently, this method only applies to music effects. The duration is the duration of the music effect on the playback timeline. Unit: microseconds.

    - #### getDuration

          public long getDuration(java.util.concurrent.TimeUnit timeUnit)

      Deprecated.
      Sets the display duration of an effect. Currently, this method only applies to music effects. The duration is the duration of the music effect on the playback timeline.
      Parameters:
        `timeUnit` - Time Unit

        Added in v3.27.0

    - #### setDuration

          public void setDuration(long durationUs)

      Deprecated.
      Sets the display duration of an effect. Currently, this method only applies to music effects. The duration is the duration of the music effect on the playback timeline. Unit: microseconds.
      Parameters:
        `durationUs` - Duration，Unit: microseconds.

    - #### setDuration

          public void setDuration(long duration,
                                  java.util.concurrent.TimeUnit timeUnit)

      Deprecated.
      Sets the display duration of an effect. Currently, this method only applies to music effects. The duration is the duration of the music effect on the playback timeline.

      Added in v3.27.0

      Parameters:
        `duration` - Duration
        `timeUnit` - Time Unit

    - #### setMvAudioId

          public void setMvAudioId(int audioId)

      Deprecated.
      Sets the id of the audio stream in an MV effect. It is not recommended to call this method.
      Parameters:
        `audioId` - The audio stream id.

    - #### getMvAudioId

          public int getMvAudioId()

      Deprecated.
      Gets the id of the audio stream in an MV effect.
      Returns:
        The audio stream id.

    - #### equals

          public boolean equals(java.lang.Object obj)

      Deprecated.
      Overrides:
        `equals` in class `java.lang.Object`

    - #### toTrackEffectFilter

          public TrackEffectFilter toTrackEffectFilter()

      Deprecated.
      Transform to `TrackEffectFilter` bean

      Added in v3.27.0

      Returns:
      See Also:
        `TrackEffectFilter`

    - #### toTrackAudioStream

          public TrackAudioStream toTrackAudioStream()

      Deprecated.
      Transform to `TrackAudioStream` bean

      Added in v3.27.0

      Returns:
      See Also:
        `TrackAudioStream`

    - #### toTrackMV

          public TrackEffectMV toTrackMV()

      Deprecated.
      Transform to `TrackEffectMV` bean

      Added in v3.27.0

      Returns:
      See Also:
        `TrackEffectMV`