setSafeAreaPercent

open fun setSafeAreaPercent(safeAreaPercent: Float)

Optionally override the default SAFE_AREA with a custom percent. Example: for a caption margin of 5% of the video view's height and width, use 0.05. For a caption margin of 2.5% of the video view's height and width, use 0.025.

Parameters

safeAreaPercent

the percentage as a decimal where 0.05 = 5%