Package org.kurento.client
Interface AlphaBlending
- All Superinterfaces:
Hub
,KurentoObject
,MediaObject
A
Hub
that mixes the MediaType.AUDIO
stream of its connected sources and constructs one output with MediaType.VIDEO
streams of its connected sources into its sink-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets the source port that will be the master entry to the mixervoid
setMaster
(HubPort source, int zOrder, Continuation<Void> cont) Asynchronous version of setMaster:Continuation.onSuccess(F)
is called when the action is done.void
setMaster
(Transaction tx, HubPort source, int zOrder) Sets the source port that will be the master entry to the mixervoid
setPortProperties
(float relativeX, float relativeY, int zOrder, float relativeWidth, float relativeHeight, HubPort port) Configure the blending mode of one port.void
setPortProperties
(float relativeX, float relativeY, int zOrder, float relativeWidth, float relativeHeight, HubPort port, Continuation<Void> cont) Asynchronous version of setPortProperties:Continuation.onSuccess(F)
is called when the action is done.void
setPortProperties
(Transaction tx, float relativeX, float relativeY, int zOrder, float relativeWidth, float relativeHeight, HubPort port) Configure the blending mode of one port.Methods inherited from interface org.kurento.client.Hub
getGstreamerDot, getGstreamerDot, getGstreamerDot, getGstreamerDot, getGstreamerDot, getGstreamerDot
Methods inherited from interface org.kurento.client.KurentoObject
addEventListener, invoke, isCommited, release, release, release, removeEventListener, waitCommited, whenCommited, whenCommited
Methods inherited from interface org.kurento.client.MediaObject
addErrorListener, addErrorListener, addTag, addTag, addTag, getChildren, getChildren, getChildren, getCreationTime, getCreationTime, getCreationTime, getId, getId, getId, getMediaPipeline, getMediaPipeline, getMediaPipeline, getName, getName, getName, getParent, getParent, getParent, getSendTagsInEvents, getSendTagsInEvents, getSendTagsInEvents, getTag, getTag, getTag, getTags, getTags, getTags, removeErrorListener, removeErrorListener, removeTag, removeTag, removeTag, setName, setName, setName, setSendTagsInEvents, setSendTagsInEvents, setSendTagsInEvents
-
Method Details
-
setMaster
Sets the source port that will be the master entry to the mixer- Parameters:
source
- The reference to the HubPort setting as master portzOrder
- The order in z to draw the master image
-
setMaster
Asynchronous version of setMaster:Continuation.onSuccess(F)
is called when the action is done. If an error occurs,Continuation.onError(java.lang.Throwable)
is called.- Parameters:
source
- The reference to the HubPort setting as master portzOrder
- The order in z to draw the master image- See Also:
-
setMaster
Sets the source port that will be the master entry to the mixer- Parameters:
source
- The reference to the HubPort setting as master portzOrder
- The order in z to draw the master image
-
setPortProperties
void setPortProperties(float relativeX, float relativeY, int zOrder, float relativeWidth, float relativeHeight, HubPort port) Configure the blending mode of one port.- Parameters:
relativeX
- The x position relative to the master port. Values from 0 to 1 are accepted. The value 0, indicates the coordinate 0 in the master image.relativeY
- The y position relative to the master port. Values from 0 to 1 are accepted. The value 0, indicates the coordinate 0 in the master image.zOrder
- The order in z to draw the images. The greatest value of z is in the top.relativeWidth
- The image width relative to the master port width. Values from 0 to 1 are accepted.relativeHeight
- The image height relative to the master port height. Values from 0 to 1 are accepted.port
- The reference to the confingured port.
-
setPortProperties
void setPortProperties(float relativeX, float relativeY, int zOrder, float relativeWidth, float relativeHeight, HubPort port, Continuation<Void> cont) Asynchronous version of setPortProperties:Continuation.onSuccess(F)
is called when the action is done. If an error occurs,Continuation.onError(java.lang.Throwable)
is called.- Parameters:
relativeX
- The x position relative to the master port. Values from 0 to 1 are accepted. The value 0, indicates the coordinate 0 in the master image.relativeY
- The y position relative to the master port. Values from 0 to 1 are accepted. The value 0, indicates the coordinate 0 in the master image.zOrder
- The order in z to draw the images. The greatest value of z is in the top.relativeWidth
- The image width relative to the master port width. Values from 0 to 1 are accepted.relativeHeight
- The image height relative to the master port height. Values from 0 to 1 are accepted.port
- The reference to the confingured port.- See Also:
-
setPortProperties
void setPortProperties(Transaction tx, float relativeX, float relativeY, int zOrder, float relativeWidth, float relativeHeight, HubPort port) Configure the blending mode of one port.- Parameters:
relativeX
- The x position relative to the master port. Values from 0 to 1 are accepted. The value 0, indicates the coordinate 0 in the master image.relativeY
- The y position relative to the master port. Values from 0 to 1 are accepted. The value 0, indicates the coordinate 0 in the master image.zOrder
- The order in z to draw the images. The greatest value of z is in the top.relativeWidth
- The image width relative to the master port width. Values from 0 to 1 are accepted.relativeHeight
- The image height relative to the master port height. Values from 0 to 1 are accepted.port
- The reference to the confingured port.
-