setPosterWithRes
set poster between player and control panel
Parameters
resId
The resource ID of the poster image. If null, the poster will be cleared and the control panel will be shown instead.
scaleType
The desired scaling behavior for the poster. Supports:
PosterScaleType.FIT → Scales the image to fit within the view (equivalent to
fitCenter).PosterScaleType.CENTER_CROP → Scales and crops the image to fill the view (equivalent to
centerCrop).PosterScaleType.CENTER_INSIDE → As default, scales the image down (if necessary) and centers it (equivalent to
centerInside).