createURLPlayer
createURLPlayer(request: , parameters: ): Creates a new Player instance with specified audio file URL. You can attach media streams later via the Player.sendMediaTo or VoxEngine.sendMediaBetween methods.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. The supported file formats are: mp3, ogg, flac, and wav (mp3, speex, vorbis, flac, and wav codecs respectively). Maximum file size is 10 Mb.
You can attach media streams later via the Player.sendMediaTo or VoxEngine.sendMediaBetween methods. 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 incoming stream always replaces the previous one.
Parameters
request:
URL player request
parameters:
OptionalOptional. URL player parameters
Returns
type: