public abstract class BaseMultimediaComponent
extends org.fujion.component.BaseUIComponent
| Constructor and Description |
|---|
BaseMultimediaComponent() |
| Modifier and Type | Method and Description |
|---|---|
void |
fade(double from,
double to,
int duration)
Fade volume over specified range and duration.
|
boolean |
getControls() |
boolean |
getLoop() |
boolean |
getMuted() |
double |
getRate() |
String |
getSrc() |
double |
getVolume() |
void |
pause()
Pauses the audio track.
|
void |
play()
Starts the audio track.
|
void |
seek(int position)
Sets the position of playback for the track.
|
void |
setControls(boolean controls) |
void |
setLoop(boolean loop) |
void |
setMuted(boolean muted) |
void |
setRate(double rate) |
void |
setSrc(String src) |
void |
setVolume(double volume) |
void |
stop()
Stops the audio track.
|
_syncClasses, _syncStyles, addClass, addMask, addMask, addMask, addStyle, addStyles, afterRemoveChild, focus, getBalloon, getClasses, getContext, getCss, getDragid, getDropid, getFirstVisibleChild, getFirstVisibleChild, getFlex, getHeight, getHint, getKeycapture, getPopup, getStyle, getStyles, getTabindex, getWidth, hide, isDisabled, isVisible, print, print, removeClass, removeMask, removeStyle, reportSize, scrollIntoView, setBalloon, setClasses, setContext, setCss, setDisabled, setDragid, setDropid, setFlex, setFocus, setHeight, setHint, setKeycapture, setPopup, setStyles, setTabindex, setVisible, setWidth, show, toggleClass_attach, _initProps, addChild, addChild, addChild, addChildren, addComposite, addEventForward, addEventForward, addEventForward, addEventForward, addEventListener, addEventListener, addEventListener, addEventListener, afterAddChild, afterSetParent, areEqual, beforeAddChild, beforeRemoveChild, beforeSetParent, bind, bringToFront, defaultify, destroy, destroyChildren, detach, detachChildren, disableChildren, disableChildren, finalize, findAllNamed, findAttribute, findByName, findByName, findChild, findChildByData, findChildByLabel, findChildByLabel, fireEvent, fireEvent, fireEventToClient, fireEventToClient, getAncestor, getAncestor, getAttribute, getAttribute, getAttributes, getChildAt, getChildCount, getChildCount, getChildren, getChildren, getContent, getControllers, getData, getData, getDefinition, getFirstChild, getFirstChild, getId, getIndex, getLastChild, getLastController, getLastController, getName, getNamespace, getNextSibling, getNextSibling, getPage, getParent, getPreviousSibling, getPreviousSibling, getRoot, hasChildren, hasEventListener, hasEventListener, initialize, invoke, invoke, invoke, invoke, invoke, invokeIfAttached, isAncestor, isContainer, isContentSynced, isDead, isInitializing, isNamespace, isRendered, loadModule, loadModule, notifyAncestors, notifyDescendants, nullify, onAttach, onDestroy, propertyChange, propertyChange, removeChild, removeEventForward, removeEventForward, removeEventForward, removeEventForward, removeEventListener, removeEventListener, removeEventListener, removeEventListener, setContent, setContentSynced, setData, setIndex, setName, setNamespace, setParent, sub, swapChildren, sync, toString, trimify, validate, validate, validateChild, validateIsChild, validateName, validatePage, validateParent, wireController, wireControllerpublic void fade(double from,
double to,
int duration)
from - Starting volume level (0 - 1).to - Ending volume level (0 - 1).duration - Duration of fade operation (milliseconds).public void play()
public void pause()
public void seek(int position)
position - Playback position in seconds.public void stop()
@Component.PropertyGetter(value="src",
description="The URL of the external audio source.")
public String getSrc()
@Component.PropertySetter(value="src",
description="The URL of the external audio source.")
public void setSrc(String src)
@Component.PropertyGetter(value="muted",
description="True to mute the audio track.")
public boolean getMuted()
@Component.PropertySetter(value="muted",
defaultValue="false",
description="True to mute the audio track.")
public void setMuted(boolean muted)
@Component.PropertyGetter(value="volume",
description="The volume (0 - 1) of the audio source.")
public double getVolume()
@Component.PropertySetter(value="volume",
defaultValue="50",
description="The volume (0 - 1) of the audio source.")
public void setVolume(double volume)
@Component.PropertyGetter(value="loop",
description="True to loop the audio track.")
public boolean getLoop()
@Component.PropertySetter(value="loop",
defaultValue="false",
description="True to loop the audio track.")
public void setLoop(boolean loop)
@Component.PropertyGetter(value="rate",
description="The playback speed (0.5 - 4.0).")
public double getRate()
@Component.PropertySetter(value="rate",
defaultValue="1.0",
description="The playback speed (0.5 - 4.0).")
public void setRate(double rate)
@Component.PropertyGetter(value="controls",
description="If true, show multimedia controls.")
public boolean getControls()
@Component.PropertySetter(value="controls",
defaultValue="false",
description="If true, show multimedia controls.")
public void setControls(boolean controls)
Copyright © 2023 Fujion Framework. All rights reserved.