public class AVTubeEx extends AVTube
SystemCapability.Multimedia#MEDIAAVTube.DeviceType, AVTube.PlayMode, AVTube.SetInfo, AVTube.UsageScene| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
cmdDecVolume(int decrement) |
Decreases the volume of this
AVTubeEx instance. |
void |
cmdIncVolume(int increment) |
Increases the volume of this
AVTubeEx instance. |
void |
cmdSetVolume(int volume) |
Sets the volume for this
AVTubeEx instance. |
void |
setCurVolume(int volume) |
Sets the current volume of this
AVTubeEx instance. |
void |
setDetails(String details) |
Sets the detailed description for this
AVTubeEx instance. |
void |
setMaxVolume(int volume) |
Sets the maximum volume allowed for this
AVTubeEx instance. |
void |
setPlayMode(AVTube.PlayMode playMode) |
Sets the playback mode for this
AVTubeEx instance. |
void |
setStreamType(AudioStreamInfo.StreamType streamType) |
Sets the type of audio streams using this
AVTubeEx instance. |
void |
setTubeName(int resId) |
Sets the tube name for this
AVTubeEx instance by a specified resource ID. |
void |
setTubeName(String name) |
Sets the tube name for this
AVTubeEx instance. |
curVolume, deviceType, isConnecting, isReady, label, maxVolume, playMode, setLabel, streamType, toString, tubeName, usageScenespublic void setCurVolume(int volume)
AVTubeEx instance.volume - Indicates the volume to set, which must be lower than or equal to AVTube#maxVolume().AVTube.curVolume(),
AVTube.maxVolume()public void setMaxVolume(int volume)
AVTubeEx instance.volume - Indicates the maximum volume to set.AVTube.maxVolume()public void setTubeName(int resId)
AVTubeEx instance by a specified resource ID.resId - Indicates the resource ID of the name to set.public void setTubeName(String name)
AVTubeEx instance.name - Indicates the tube name to set.AVTube.tubeName()public void setDetails(String details)
AVTubeEx instance.details - Indicates the detailed description to set.ohos.media.tubecore.AVTube#details()public void setPlayMode(AVTube.PlayMode playMode)
AVTubeEx instance.playMode - Indicates the playback mode to set.AVTube.playMode()public void setStreamType(AudioStreamInfo.StreamType streamType)
AVTubeEx instance.streamType - Indicates the audio stream type to set.AVTube.streamType()public void cmdIncVolume(int increment)
AVTubeEx instance.cmdIncVolume 在类中 AVTubeincrement - Indicates the volume increment.cmdDecVolume(int)public void cmdDecVolume(int decrement)
AVTubeEx instance.cmdDecVolume 在类中 AVTubedecrement - Indicates the volume decrement.cmdIncVolume(int)public void cmdSetVolume(int volume)
AVTubeEx instance.cmdSetVolume 在类中 AVTubevolume - Indicates the volume to set.setCurVolume(int)