-
public final class BaseVideoViewExtensionsKt
-
-
Field Summary
Fields Modifier and Type Field Description public final static Double
DEFAULT_SIZE
-
Method Summary
Modifier and Type Method Description final static Pair<Integer, Integer>
getScreenSizes(BaseVideoView $self)
getScreenSizes() extension function that returns a Pair of height and width to be used in getScreenLayoutParams() and getCalculateSize() final static LinearLayout.LayoutParams
getScreenLayoutParams(BaseVideoView $self, String top, String left, Integer width, Integer height)
getScreenLayoutParams is an extension function that get the position (top, left) as a percentage from the API and return the layout parameters taking the BaseVideoView width and height as 100% if it is an image or layout will also receive the width and height to add the sizes final static Pair<Integer, Integer>
getCalculateSize(BaseVideoView $self, String width, String height)
getCalculateSize is an extension function that return the correct Sizes from an element taking the BaseVideoView width and height as 100% final static Unit
jumpTo(BaseVideoView $self, Long time)
jumpTo is an extension function that emit the SEEK_TO event final static Unit
logNullValues(Popcorn $self, String tag, String annotationId)
-
-
Method Detail
-
getScreenSizes
final static Pair<Integer, Integer> getScreenSizes(BaseVideoView $self)
getScreenSizes() extension function that returns a Pair of height and width to be used in getScreenLayoutParams() and getCalculateSize()
-
getScreenLayoutParams
final static LinearLayout.LayoutParams getScreenLayoutParams(BaseVideoView $self, String top, String left, Integer width, Integer height)
getScreenLayoutParams is an extension function that get the position (top, left) as a percentage from the API and return the layout parameters taking the BaseVideoView width and height as 100% if it is an image or layout will also receive the width and height to add the sizes
-
getCalculateSize
final static Pair<Integer, Integer> getCalculateSize(BaseVideoView $self, String width, String height)
getCalculateSize is an extension function that return the correct Sizes from an element taking the BaseVideoView width and height as 100%
- Parameters:
width
- the width of the element in percentage that comes from the apiheight
- the height of the element in percentage that comes from the api
-
jumpTo
final static Unit jumpTo(BaseVideoView $self, Long time)
jumpTo is an extension function that emit the SEEK_TO event
- Parameters:
time
- is the time in milliseconds that the player is going to start the playback
-
logNullValues
final static Unit logNullValues(Popcorn $self, String tag, String annotationId)
-
-
-
-