Rate this page:

createURLPlayer

Copy URL
createURLPlayer(request: 

URLPlayerRequest

,
parameters:

URLPlayerParameters

):

Player

Creates a new Player (audio 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.
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

Returns