Back to Exoplayer

EditedMediaItem (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/transformer/EditedMediaItem.html

latest4.4 KB
Original Source

Package com.google.android.exoplayer2.transformer

Class EditedMediaItem


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classEditedMediaItemextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")

Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.

A MediaItem with the transformations to apply to it.

Nested Class Summary

Nested Classes | Modifier and Type | Class | Description | | --- | --- | --- | | static class | EditedMediaItem.Builder | Deprecated.

A builder for EditedMediaItem instances. |

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | long | durationUs | Deprecated.

The duration of the image in the output video, in microseconds. | | Effects | effects | Deprecated.

The Effects to apply to the mediaItem. | | boolean | flattenForSlowMotion | Deprecated.

Whether to flatten the mediaItem if it contains slow motion markers. | | int | frameRate | Deprecated.

The frame rate of the image in the output video, in frames per second. | | MediaItem | mediaItem | Deprecated.

The MediaItem on which transformations are applied. | | boolean | removeAudio | Deprecated.

Whether to remove the audio from the mediaItem. | | boolean | removeVideo | Deprecated.

Whether to remove the video from the mediaItem. |

Method Summary

- 

Methods inherited from class java.lang.Object

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

Field Detail

- 

mediaItem

public final[MediaItem](../MediaItem.html "class in com.google.android.exoplayer2")mediaItem

Deprecated.

The MediaItem on which transformations are applied.

- 

removeAudio

public final boolean removeAudio

Deprecated.

Whether to remove the audio from the mediaItem.

- 

removeVideo

public final boolean removeVideo

Deprecated.

Whether to remove the video from the mediaItem.

- 

flattenForSlowMotion

public final boolean flattenForSlowMotion

Deprecated.

Whether to flatten the mediaItem if it contains slow motion markers.

The flattened output is obtained by removing the slow motion metadata and by actually slowing down the parts of the video and audio streams defined in this metadata.

Only Samsung Extension Format (SEF) slow motion metadata type is supported. Flattening has no effect if the input does not contain this metadata type.

For SEF slow motion media, the following assumptions are made on the input:

  - The input container format is (unfragmented) MP4. 
  - The input contains an AVC video elementary stream with temporal SVC. 
  - The recording frame rate of the video is 120 or 240 fps. 

- 

durationUs

public final long durationUs

Deprecated.

The duration of the image in the output video, in microseconds.

- 

frameRate

@IntRange(from=0L)
public final int frameRate

Deprecated.

The frame rate of the image in the output video, in frames per second.

- 

effects

public final[Effects](Effects.html "class in com.google.android.exoplayer2.transformer")effects

Deprecated.

The Effects to apply to the mediaItem.