EnxPlayerView


EnxPlayerView is a video renderer to be used by an EnxStream Object.

To initialize EnxPlayerView:


EnxPlayerView enxPlayerView = new EnxPlayerView(Current-Class-Instance,scalingType,mediaOverLay,mirror);

So, the playerview initialization process would require four parameters:
Parameter Description
this Current class instance.
scalingType pass a enum object for scaling of video.
mediaOverLay this is typically used to place overlays on top of an underlying media surface view
mirror Its a boolean value to achieve mirror behaviour.

Methods:

Method Name Description
setZOrderMediaOverlay(boolean mediaOverLay) Used to place overlays on top of an underlying media player view.
setScalingType(ScalingType scalingType) To Scale EnxPlayerView at runtime.
setMirror(boolean mirror) To change mirror behaviour.
release() To release EnxPlayerView.
enablePlayerStats(boolean boolStats,EnxPlayerStatsObserver enxPlayerStatsObserver) In order to enable stats on player level.

EnxPlayerStats Observer

Callback Name Description
enablePlayerStats(boolean boolStats,EnxPlayerStatsObserver enxPlayerStatsObserver) In order to recieve stats on player level.


Overlays on playerview

Used to place overlays on top of an underlying media player view.

public void setZOrderMediaOverlay(boolean mediaOverLay)

Parameter:
Parameters Description
mediaOverLay Its a boolean value to achieve overlays on top of an underlying media surface view.


Scale EnxPlayerView

Used to Scale playerview at runtime.

public void setScalingType(ScalingType scalingType)

Parameter:
Parameters Description
scalingType pass a enum object for scaling of video.


Change Mirror Behaviour

Use To change mirror behaviour.

public void setMirror(boolean mirror)

Parameter:
Parameters Description
mirror Its a boolean value to achieve mirror behaviour.


Release

This API is used to release EnxPlayerView.

public void release()