Class DrawableOverlay
- java.lang.Object
-
- com.google.android.exoplayer2.effect.TextureOverlay
-
- com.google.android.exoplayer2.effect.BitmapOverlay
-
- com.google.android.exoplayer2.effect.DrawableOverlay
-
@Deprecated public abstract class DrawableOverlay extends BitmapOverlay
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.Creates aTextureOverlay
fromDrawable
.Uses a canvas to draw
DrawableOverlay
ontoBitmapOverlay
, which is then displayed on each frame.
-
-
Constructor Summary
Constructors Constructor Description DrawableOverlay()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static DrawableOverlay
createStaticDrawableOverlay(Drawable drawable, OverlaySettings overlaySettings)
Deprecated.Creates aTextOverlay
that shows theDrawable
with the sameOverlaySettings
throughout the whole video.Bitmap
getBitmap(long presentationTimeUs)
Deprecated.Returns the overlay bitmap displayed at the specified timestamp.abstract Drawable
getDrawable(long presentationTimeUs)
Deprecated.Returns the overlayDrawable
displayed at the specified timestamp.-
Methods inherited from class com.google.android.exoplayer2.effect.BitmapOverlay
createStaticBitmapOverlay, createStaticBitmapOverlay, createStaticBitmapOverlay, getTextureId, getTextureSize
-
Methods inherited from class com.google.android.exoplayer2.effect.TextureOverlay
configure, getOverlaySettings
-
-
-
-
Method Detail
-
getDrawable
public abstract Drawable getDrawable(long presentationTimeUs)
Deprecated.Returns the overlayDrawable
displayed at the specified timestamp.The drawable must have its bounds set via
Drawable.setBounds(int, int, int, int)
for drawable to be displayed on the frame.- Parameters:
presentationTimeUs
- The presentation timestamp of the current frame, in microseconds.
-
getBitmap
public Bitmap getBitmap(long presentationTimeUs)
Deprecated.Description copied from class:BitmapOverlay
Returns the overlay bitmap displayed at the specified timestamp.- Specified by:
getBitmap
in classBitmapOverlay
- Parameters:
presentationTimeUs
- The presentation timestamp of the current frame, in microseconds.
-
createStaticDrawableOverlay
public static DrawableOverlay createStaticDrawableOverlay(Drawable drawable, OverlaySettings overlaySettings)
Deprecated.Creates aTextOverlay
that shows theDrawable
with the sameOverlaySettings
throughout the whole video.- Parameters:
drawable
- TheDrawable
to be displayed.overlaySettings
- TheOverlaySettings
configuring how the overlay is displayed on the frames.
-
-