insertAudioFrameEmbedded

insertAudioFrameEmbeddedFromStream (ShapeCollection shapecollection, int index, float x, float y, float width, float height, ReadStream audio_stream, Function callback) function

Insert an AudioFrame with embedded audio file. Embedded audio file sound can be a WAV only.

Parameters

NameTypeDescription
shapecollectionShapeCollectionlink to self
indexintThe zero-based index at which value should be inserted.
xfloatX coordinate of a new audio frame.
yfloatY coordinate of a new audio frame.
widthfloatWidth of a new audio frame.
heightfloatHeight of a new audio frame.
audio_streamReadStreamAudio stream.
callbackFunctioncallback(error, result) - Callback to be called when the method has completed

Result

AudioFrame


insertAudioFrameEmbedded(int index, float x, float y, float width, float height, Audio audio) function

Insert an AudioFrame with embedded audio file. It uses audio file from Presentation.Audios list.

Parameters

NameTypeDescription
indexintThe zero-based index at which value should be inserted.
xfloatX coordinate of a new audio frame.
yfloatY coordinate of a new audio frame.
widthfloatWidth of a new audio frame.
heightfloatHeight of a new audio frame.
audioAudioAudio from Presentation.Audios list.

Result

AudioFrame