FAXL3: ActionStartAudioProgressivePlay
From fringDocumentation
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:
| Required | Direction | Name | Type | Description |
| Required | IN | URl | string | Contains a URL to the audio data. |
| Required | OUT | TransactionIdName | string/ref | Name of the FAXL variable that will store the ID of the audio transaction. |
| Required | IN | ActionsName | string/ref | The actions to be executed when audio event happened. |
| Required | OUT | EventName | string/ref | Name of the FAXL variable that will store the event of the audio transaction. See Audio events below. |
| Required | IN | Prefetch | boolean | Notification about need of pre-fetch the audio or start the play immidiatly after caching level is enough. |
| Required | IN | CacheLevel | int | The level of cache requered for the audio to be played in Kb. |
- Audio events:
| Name | ID | Description |
| Connection lost | 0 | The connection was lost during playback. It may be connectivity problem or URL may not be available anymore. |
| Incorrect URL | 1 | If the URL doesn’t point to a valid MP3 URL or is unaccessible. |
| Buffering | 2 | Playback entered buffering state. |
| Playback active | 3 | Playback is active, audio is played or after the end of the higher priority event like a call. |
| Playback finished | 4 | Playback has finished. |
| Playback suspended | 5 | Playback 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 done | 6 | Cache 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 finished | 7 | Will 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. |