MeiCam SDK For Android  1.0.0
Public Member Functions | List of all members
com.meicam.sdk.NvsAudioTrack Class Reference

Audio track, the collection of audio clips. More...

Inheritance diagram for com.meicam.sdk.NvsAudioTrack:
com.meicam.sdk.NvsTrack com.meicam.sdk.NvsObject

Public Member Functions

NvsAudioClip appendClip (String filePath)
 Appends a clip at the end of the track. More...
 
NvsAudioClip appendClip (String filePath, long trimIn, long trimOut)
 Appends a clip at the end of the track. More...
 
NvsAudioClip insertClip (String filePath, int clipIndex)
 Inserts a clip at the specified clip index on the track. More...
 
NvsAudioClip insertClip (String filePath, long trimIn, long trimOut, int clipIndex)
 Inserts clip at the specified clip index on the track. More...
 
NvsAudioClip addClip (String filePath, long inPoint)
 Adds audio clip. More...
 
NvsAudioClip addClip (String filePath, long inPoint, long trimIn, long trimOut)
 Adds audio clip. More...
 
NvsAudioClip getClipByIndex (int clipIndex)
 Gets clip by index. More...
 
NvsAudioClip getClipByTimelinePosition (long timelinePos)
 Gets clip by time. More...
 
NvsAudioTransition setBuiltinTransition (int srcClipIndex, String transitionName)
 Sets built-in transition. More...
 
NvsAudioTransition getTransitionWithSourceClipIndex (int srcClipIndex)
 Gets audio transition from the source clip index. More...
 
- Public Member Functions inherited from com.meicam.sdk.NvsTrack
int getType ()
 Get track type. More...
 
int getIndex ()
 Gets track index. More...
 
long getDuration ()
 Gets track length. More...
 
int getClipCount ()
 Gets the number of clips on the track. More...
 
long changeInPoint (int clipIndex, long newInPoint)
 Modifies the clip's in-point on timeline. More...
 
long changeOutPoint (int clipIndex, long newOutPoint)
 Modifies the clip's out-point on timeline. More...
 
boolean splitClip (int clipIndex, long splitPoint)
 Splits the specified clip. More...
 
boolean removeClip (int clipIndex, boolean keepSpace)
 Removes the specified clip. More...
 
boolean removeRange (long startTimelinePos, long endTimelinePos, boolean keepSpace)
 Removes all clips within the specified interval, and adjust the timeline in-point or out-point if the clip only partially overlaps the interval. More...
 
boolean moveClip (int clipIndex, int destClipIndex)
 Removes the specified clip. More...
 
boolean removeAllClips ()
 Removes all the clips. More...
 
void setVolumeGain (float leftVolumeGain, float rightVolumeGain)
 Sets the volume. More...
 
NvsVolume getVolumeGain ()
 Get the volume information. More...
 
- Public Member Functions inherited from com.meicam.sdk.NvsObject
void setAttachment (String key, Object value)
 Adds additional data to the NvsObject object to identify the NvsObject object or for other purpose. More...
 
Object getAttachment (String key)
 Gets an attachment to NvsObject. More...
 

Additional Inherited Members

- Static Public Attributes inherited from com.meicam.sdk.NvsTrack
static final int TRACK_TYPE_VIDEO = 0
 Video track. More...
 
static final int TRACK_TYPE_AUDIO = 1
 Audio track. More...
 
- Protected Member Functions inherited from com.meicam.sdk.NvsObject
void setInternalObject (long internalObject)
 
long getInternalObject ()
 
- Protected Attributes inherited from com.meicam.sdk.NvsObject
long m_internalObject = 0
 

Detailed Description

Audio track, the collection of audio clips.

An audio track is an entity that holds audio clips. Multiple audio clips can be added or removed from audio track. At the joint of two audio clips, an audio transition could be inserted.

Note: For the meaning of a series of interfaces and parameters of the audio track, please refer to the corresponding interface of the video track NvsVideoTrack.

Warning
In the NvsAudioTrack class, all public APIs are used in the UI thread! ! !

Member Function Documentation

NvsAudioClip com.meicam.sdk.NvsAudioTrack.addClip ( String  filePath,
long  inPoint 
)
inline

Adds audio clip.

Parameters
filePathAudio clip path. For the clip path type, please refer to the parameter filePath of the NvsVideoTrack interface addClip().
inPointThe in point on the timeline to insert the audio clip (in microseconds).
Returns
Returns the added audio clip object.
Warning
This interface will cause the streaming engine state to jump to the engine stop state, please refer to Engine Change Feature for details.
See also
appendClip
insertClip
NvsAudioClip com.meicam.sdk.NvsAudioTrack.addClip ( String  filePath,
long  inPoint,
long  trimIn,
long  trimOut 
)
inline

Adds audio clip.

Parameters
filePathAudio clip path. For the clip path type, please refer to the parameter filePath of the NvsVideoTrack interface addClip().
inPointThe in point of the audio clip to be inserted on the timeline (in microseconds).
trimInTrim in point of audio clip (in microseconds).
trimOutTrim out point of audio clip (in microseconds).
Returns
Returns the added audio clip object.
Warning
This interface causes the streaming engine state to jump to the engine stop state, as described in Engine Changes.
See also
appendClip
insertClip
NvsAudioClip com.meicam.sdk.NvsAudioTrack.appendClip ( String  filePath)
inline

Appends a clip at the end of the track.

Parameters
filePathclip path. For the clip path type, please refer to the parameter filePath of the NvsVideoTrack interface addClip().
Returns
Returns the appended audio clip object.
Warning
This interface will cause the streaming engine state to jump to the engine stop state, please refer to Engine Change Feature for details.
See also
insertClip
getClipByIndex
NvsAudioClip com.meicam.sdk.NvsAudioTrack.appendClip ( String  filePath,
long  trimIn,
long  trimOut 
)
inline

Appends a clip at the end of the track.

Parameters
filePathclip path. For the clip path type, please refer to the parameter filePath of the NvsVideoTrack interface addClip().
trimInTrim in point (in microseconds).
trimOutTrim out point (in microseconds).
Returns
Returns the appended audio clip object.
Warning
This interface will cause the streaming engine state to jump to the engine stop state, for more details, please refer to Engine Change Feature.
See also
insertClip
getClipByIndex
NvsAudioClip com.meicam.sdk.NvsAudioTrack.getClipByIndex ( int  clipIndex)
inline

Gets clip by index.

Parameters
clipIndexClip index.
Returns
Returns the obtained audio clip object.
See also
getClipByTimelinePosition
appendClip
insertClip
NvsAudioClip com.meicam.sdk.NvsAudioTrack.getClipByTimelinePosition ( long  timelinePos)
inline

Gets clip by time.

Parameters
timelinePosPosition on the timeline (in microseconds).
Returns
Returns the obtained audio clip object.
See also
getClipByIndex
NvsAudioTransition com.meicam.sdk.NvsAudioTrack.getTransitionWithSourceClipIndex ( int  srcClipIndex)
inline

Gets audio transition from the source clip index.

Parameters
srcClipIndexSource clip index.
Returns
Returns the acquired audio transition object.
See also
setBuiltinTransition
NvsAudioClip com.meicam.sdk.NvsAudioTrack.insertClip ( String  filePath,
int  clipIndex 
)
inline

Inserts a clip at the specified clip index on the track.

Parameters
filePathclip path. For the clip path type, please refer to the parameter filePath of the NvsVideoTrack interface addClip().
clipIndexClip index to insert at.
Returns
Returns the inserted audio clip object.
Warning
This interface will cause the streaming engine state to jump to the engine stop state, for more details,please refer to Engine Change Feature.
See also
appendClip
getClipByIndex
NvsAudioClip com.meicam.sdk.NvsAudioTrack.insertClip ( String  filePath,
long  trimIn,
long  trimOut,
int  clipIndex 
)
inline

Inserts clip at the specified clip index on the track.

Parameters
filePathclip path. For the clip path type, please refer to the parameter filePath of the NvsVideoTrack interface addClip().
trimInTrim in point (in microseconds).
trimOutTrim out point (in microseconds).
clipIndexClip index to insert at.
Returns
Returns the inserted audio clip object.
Warning
This interface will cause the streaming engine state to jump to the engine stop state, please refer to Engine Change Feature for details.
See also
appendClip
getClipByIndex
NvsAudioTransition com.meicam.sdk.NvsAudioTrack.setBuiltinTransition ( int  srcClipIndex,
String  transitionName 
)
inline

Sets built-in transition.

Parameters
srcClipIndexSource clip index of the transition.
transitionNameAudio transition name. Note: Currently audio transition only supports Fade mode; if it is set to null string, the original transition will be deleted.
Returns
Returns audio transition object.
Warning
This interface will cause the streaming engine state to jump to the engine stop state, please refer to Engine Change Feature for details.
See also
getTransitionWithSourceClipIndex

The documentation for this class was generated from the following file: