FAXL3: ActionStartAudioProgressivePlay

From fringDocumentation

Jump to: navigation, search

ActionStartAudioProgressivePlay

Starts an audio streaming process. May be started in pre-fetch mode (downloading specified amoung of audio data but playing it only after call of ActionContinueAudioProgressivePlay)

element ActionStartAudioProgressivePlay

The following are the elements or building blocks comprising an ActionStartAudioProgressivePlay:

RequiredDirectionNameTypeDescription
RequiredINURlstringContains a URL to the audio data.
RequiredOUTTransactionIdNamestring/refName of the FAXL variable that will store the ID of the audio transaction.
RequiredINActionsNamestring/refThe actions to be executed when audio event happened.
RequiredOUTEventNamestring/refName of the FAXL variable that will store the event of the audio transaction. See Audio events below.
RequiredINPrefetchbooleanNotification about need of pre-fetch the audio or start the play immidiatly after caching level is enough.
RequiredINCacheLevelintThe level of cache requered for the audio to be played in Kb.
  • Audio events:
NameIDDescription
Connection lost0The connection was lost during playback. It may be connectivity problem or URL may not be available anymore.
Incorrect URL1If the URL doesn’t point to a valid MP3 URL or is unaccessible.
Buffering2Playback entered buffering state.
Playback active3Playback is active, audio is played or after the end of the higher priority event like a call.
Playback finished4Playback has finished.
Playback suspended5Playback was suspended because higher priority event such as GSM or fring call happened. After end of event with higher priority streaming is resumed from the place it ended on with state 3 - Playback active.
Pre-fetch done6Cache level amount of data downloaded and ready to start playback. In case of Pre-fetch needed is off playback will start, in case of Pre-fetch needed is on download will suspend and playback will not start until ActionContinueMP3ProgressivePlay.
Download finished7Will be called when download of the track was finished 100% and last piece (or some amount of data – depends on connection speed) was not yet played.

FAXL Syntax

Personal tools