addAudio

addAudio(Audio audio) function

Adds a copy of an audio file from an another presentation.

Parameters

NameTypeDescription
audioAudioSource audio.

Result

Audio


addAudioFromStream (AudioCollection audiocollection, ReadStream stream, Function callback) function

Creates and adds a audio to a presentation from stream.

Parameters

NameTypeDescription
audiocollectionAudioCollectionlink to self
streamReadStreamStream to add audio from.
callbackFunctioncallback(error, result) - Callback to be called when the method has completed

Result

Audio


addAudioFromStream (AudioCollection audiocollection, ReadStream stream, int loadingStreamBehavior, Function callback) function

Creates and adds a audio to a presentation from stream.

Parameters

NameTypeDescription
audiocollectionAudioCollectionlink to self
streamReadStreamStream to add video audio from.
loadingStreamBehaviorintThe behavior which will be applied to the stream.
callbackFunctioncallback(error, result) - Callback to be called when the method has completed

Result

Audio


addAudio(byte[] audioData) function

Creates and adds a audio to a presentation from byte array.

Parameters

NameTypeDescription
audioDatabyte[]Audio bytes.

Result

Audio