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 aTextureOverlayfromDrawable.Uses a canvas to draw
DrawableOverlayontoBitmapOverlay, 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 DrawableOverlaycreateStaticDrawableOverlay(Drawable drawable, OverlaySettings overlaySettings)Deprecated.Creates aTextOverlaythat shows theDrawablewith the sameOverlaySettingsthroughout the whole video.BitmapgetBitmap(long presentationTimeUs)Deprecated.Returns the overlay bitmap displayed at the specified timestamp.abstract DrawablegetDrawable(long presentationTimeUs)Deprecated.Returns the overlayDrawabledisplayed 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 overlayDrawabledisplayed 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:BitmapOverlayReturns the overlay bitmap displayed at the specified timestamp.- Specified by:
getBitmapin classBitmapOverlay- Parameters:
presentationTimeUs- The presentation timestamp of the current frame, in microseconds.
-
createStaticDrawableOverlay
public static DrawableOverlay createStaticDrawableOverlay(Drawable drawable, OverlaySettings overlaySettings)
Deprecated.Creates aTextOverlaythat shows theDrawablewith the sameOverlaySettingsthroughout the whole video.- Parameters:
drawable- TheDrawableto be displayed.overlaySettings- TheOverlaySettingsconfiguring how the overlay is displayed on the frames.
-
-