Package com.wowza.wms.transcoder.model
Class TranscoderVideoOverlayFrame
Object
com.wowza.wms.transcoder.model.TranscoderVideoOverlayFrame
TranscoderVideoOverlayFrame: Video overlay frame.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanintlongstatic final intstatic final intstatic final intint -
Constructor Summary
ConstructorsConstructorDescriptionTranscoderVideoOverlayFrame(int width, int height, byte[] buffer) TranscoderVideoOverlayFrame(String imagePath) TranscoderVideoOverlayFrame(String imagePath, int opacity) -
Method Summary
Modifier and TypeMethodDescriptionintintintintgetDstX()intgetDstY()Get the path to the overlay image.intgetIndex()Get overlay index (z-order)longintGet the video frame.booleanbooleanIs this overlay enabled.booleanisGood()booleanisImageFileUpdated(IApplicationInstance appInstance) booleanbooleanloadImage(IApplicationInstance appInstance, boolean reload) If you set a path to an image file (JPG, PNG, BMP...) this will load the image into this object.voidsetCheckForUpdates(boolean checkForUpdates) voidsetDstAlign(int align) voidsetDstHeight(int height) voidsetDstWidth(int width) voidsetDstX(int x) voidsetDstY(int y) voidsetEnabled(boolean enabled) Set is this overlay enabled.voidsetImagePath(String imagePath) Set the path to the overlay image.voidsetIndex(int index) Set overlay index (z-order)voidsetLastModDate(long lastModDate) voidsetOpacity(int opacity)
-
Field Details
-
LOADSTATE_INIT
public static final int LOADSTATE_INIT- See Also:
-
LOADSTATE_SUCCESS
public static final int LOADSTATE_SUCCESS- See Also:
-
LOADSTATE_FAILURE
public static final int LOADSTATE_FAILURE- See Also:
-
videoFrame
-
enabled
public boolean enabled -
index
public int index -
imagePath
-
opacity
public int opacity -
lastModDate
public long lastModDate
-
-
Constructor Details
-
TranscoderVideoOverlayFrame
public TranscoderVideoOverlayFrame() -
TranscoderVideoOverlayFrame
-
TranscoderVideoOverlayFrame
-
TranscoderVideoOverlayFrame
public TranscoderVideoOverlayFrame(int width, int height, byte[] buffer)
-
-
Method Details
-
isGood
public boolean isGood() -
isImageFileUpdated
-
loadImage
If you set a path to an image file (JPG, PNG, BMP...) this will load the image into this object.- Parameters:
appInstance- application instancereload- is it an image reload- Returns:
- true if successful
-
isEnabled
public boolean isEnabled()Is this overlay enabled.- Returns:
- overlay enabled
-
setEnabled
public void setEnabled(boolean enabled) Set is this overlay enabled.- Parameters:
enabled- overlay enabled
-
getVideoFrame
Get the video frame.- Returns:
- video frame
-
getIndex
public int getIndex()Get overlay index (z-order)- Returns:
- overlay index (z-order)
-
setIndex
public void setIndex(int index) Set overlay index (z-order)- Parameters:
index- overlay index (z-order)
-
getImagePath
Get the path to the overlay image.- Returns:
- path to the overlay image
-
setImagePath
Set the path to the overlay image.- Parameters:
imagePath- path to the overlay image
-
getOpacity
public int getOpacity() -
setOpacity
public void setOpacity(int opacity) -
getDstX
public int getDstX() -
setDstX
public void setDstX(int x) -
getDstY
public int getDstY() -
setDstY
public void setDstY(int y) -
getDstWidth
public int getDstWidth() -
setDstWidth
public void setDstWidth(int width) -
getDstHeight
public int getDstHeight() -
setDstHeight
public void setDstHeight(int height) -
getDstAlign
public int getDstAlign() -
setDstAlign
public void setDstAlign(int align) -
getLastModDate
public long getLastModDate() -
setLastModDate
public void setLastModDate(long lastModDate) -
isCheckForUpdates
public boolean isCheckForUpdates() -
setCheckForUpdates
public void setCheckForUpdates(boolean checkForUpdates) -
isTransparent
public boolean isTransparent()
-