addAudioFrameEmbedded

addAudioFrameEmbeddedFromStream (ShapeCollection shapecollection, float x, float y, float width, float height, ReadStream audio_stream, Function callback) function

Adds a new audio frame with embedded audio file to the end of a collection. Embedded audio file can be a WAV only. It adds new audio into Presentation.Audios list.

Parameters

NameTypeDescription
shapecollectionShapeCollectionlink to self
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_streamReadStreamInout stream with audio data.
callbackFunctioncallback(error, result) - Callback to be called when the method has completed

Result

AudioFrame


addAudioFrameEmbedded(float x, float y, float width, float height, Audio audio) function

Adds a new audio frame with embedded audio file to the end of a collection. It uses audio file from Presentation.Audios list.

Parameters

NameTypeDescription
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