Search in sources :

Example 26 with AudioTrack

use of android.media.videoeditor.AudioTrack in project android_frameworks_base by ParanoidAndroid.

the class VideoEditorAPITest method testAudioTrackSetGetTime.

/**
     * To test creation of Audio Track with set Start Time and Get Time
     */
@LargeTest
public void testAudioTrackSetGetTime() throws Exception {
    final String audioFileName = INPUT_FILE_PATH + "AACLC_48KHz_256Kbps_s_1_17.3gp";
    boolean flagForException = false;
    final AudioTrack audioTrack = mVideoEditorHelper.createAudio(mVideoEditor, "audioTrack", audioFileName);
    mVideoEditor.addAudioTrack(audioTrack);
    /** set StartTime API is removed and start time is always 0 */
    assertEquals("Audio Track Start Time", 0, audioTrack.getStartTime());
}
Also used : AudioTrack(android.media.videoeditor.AudioTrack) LargeTest(android.test.suitebuilder.annotation.LargeTest)

Aggregations

AudioTrack (android.media.videoeditor.AudioTrack)26 LargeTest (android.test.suitebuilder.annotation.LargeTest)25 MediaVideoItem (android.media.videoeditor.MediaVideoItem)12 MediaImageItem (android.media.videoeditor.MediaImageItem)10 TransitionCrossfade (android.media.videoeditor.TransitionCrossfade)5 MediaProcessingProgressListener (android.media.videoeditor.VideoEditor.MediaProcessingProgressListener)5 Bitmap (android.graphics.Bitmap)2 Rect (android.graphics.Rect)2 EffectColor (android.media.videoeditor.EffectColor)2 EffectKenBurns (android.media.videoeditor.EffectKenBurns)2 MediaItem (android.media.videoeditor.MediaItem)2 OverlayFrame (android.media.videoeditor.OverlayFrame)2 VideoEditor (android.media.videoeditor.VideoEditor)2 ExportProgressListener (android.media.videoeditor.VideoEditor.ExportProgressListener)2 ExtractAudioWaveformProgressListener (android.media.videoeditor.ExtractAudioWaveformProgressListener)1 Transition (android.media.videoeditor.Transition)1 TransitionAlpha (android.media.videoeditor.TransitionAlpha)1 TransitionFadeBlack (android.media.videoeditor.TransitionFadeBlack)1 TransitionSliding (android.media.videoeditor.TransitionSliding)1 OverlayData (android.media.videoeditor.VideoEditor.OverlayData)1