SoundRecorder

Last Updated On 2021-07-16

Version 2MinSDK 7Tutorial Video

Multimedia component that records audio.


Properties

You can set the below properties in the UI part of the builder.

  • SavedRecording - it's a string value which is set to blank by default.

Block Properties

You can set the below blocks properties in the blocks section of the builder.

SavedRecording

Specifies the path to the file where the recording should be stored. If this property is the empty string, then starting a recording will create a file in an appropriate location. If the property is not the empty string, it should specify a complete path to a file in an existing directory, including a file name with the extension .3gp.



Methods

You can set the below method blocks in the blocks section of the builder.

Start

Starts recording.

Stop

Stops recording.


Events

You can set the below event blocks in the blocks section of the builder.

AfterSoundRecorded

Provides the location of the newly created sound.

StartedRecording

Indicates that the recorder has started, and can be stopped.

StoppedRecording

Indicates that the recorder has stopped, and can be started again.