createURLPlayer
createURLPlayer(url: string
, parameters: ):
Creates a new audio player with specified audio file URL.After the very first playback, a file is cached; each 'createURLPlayer' instance stores the cache data up to 2 weeks. Note that cache addresses only the URL, without additional headers. The cached file is available for all applications and further sessions.
File download has a timeout of 12 seconds. Reaching this timeout causes the "Timeout is reached" error.
Media streams can later be attached via the Call.sendMediaTo method etc. IMPORTANT: each call object can send media to any number of other calls (media units), but can receive only one audio stream. A new inbound stream always replaces the previous one.
Parameters
url:
string
Url of an audio file. Supported formats are: mp3, ogg & flac (mp3, speex, vorbis and flac codecs respectively). Maximum file size is 10 Mb.
parameters:
OptionalOptional Player parameters: progressivePlayback, loop, onPause, etc.
Returns
type: