Class MediaPatchOptions
java.lang.Object
com.craftmend.openaudiomc.api.media.MediaPatchOptions
A set of media options that can be updated on the fly for live media streams.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMediaPatchOptions(Integer volume, Integer speed, int fadeTimeMs, String target) Creates a newMediaPatchOptionsinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintFade time is the amount of milliseconds it takes to fade in or out.getSpeed()The speed of the media, 100 by default, but can be used to speed up or slow down the media.Target media IDThe volume of the media, 0-100inthashCode()voidsetFadeTime(int ms) voidsetFadeTimeMs(int fadeTimeMs) Fade time is the amount of milliseconds it takes to fade in or out.voidsetFadeTimeSeconds(int seconds) voidThe speed of the media, 100 by default, but can be used to speed up or slow down the media.voidTarget media IDvoidThe volume of the media, 0-100toString()validate()
-
Field Details
-
volume
The volume of the media, 0-100 -
speed
The speed of the media, 100 by default, but can be used to speed up or slow down the media. 100 = normal speed, 200 = double speed, 50 = half speed, etc.
-
-
Constructor Details
-
MediaPatchOptions
Creates a newMediaPatchOptionsinstance.- Parameters:
volume- The volume of the media, 0-100speed- The speed of the media, 100 by default, but can be used to speed up or slow down the media. 100 = normal speed, 200 = double speed, 50 = half speed, etc.fadeTimeMs- Fade time is the amount of milliseconds it takes to fade in or out. 0 by default, but can be used to create smooth transitions between multiple regions, or to create a fade in effect.target- Target media ID
-
MediaPatchOptions
public MediaPatchOptions()
-
-
Method Details
-
setFadeTimeSeconds
public void setFadeTimeSeconds(int seconds) -
setFadeTime
public void setFadeTime(int ms) -
validate
-
getVolume
The volume of the media, 0-100 -
getSpeed
The speed of the media, 100 by default, but can be used to speed up or slow down the media. 100 = normal speed, 200 = double speed, 50 = half speed, etc. -
getFadeTimeMs
public int getFadeTimeMs()Fade time is the amount of milliseconds it takes to fade in or out. 0 by default, but can be used to create smooth transitions between multiple regions, or to create a fade in effect. -
getTarget
Target media ID -
setVolume
The volume of the media, 0-100 -
setSpeed
The speed of the media, 100 by default, but can be used to speed up or slow down the media. 100 = normal speed, 200 = double speed, 50 = half speed, etc. -
setFadeTimeMs
public void setFadeTimeMs(int fadeTimeMs) Fade time is the amount of milliseconds it takes to fade in or out. 0 by default, but can be used to create smooth transitions between multiple regions, or to create a fade in effect. -
setTarget
Target media ID -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-