Air Native Player provides access to a native music player on a basic interaction level.
Example:
Place an element on the page. The element must be visible on the page.
Element fields
Name | Description | Type |
Track Type (Required) | Bubble Track Data Type | App Type |
ID (Required) | The track id | Text |
URL (Required) | The tracking URL | Text, File |
Title (Required) | The track title | Text |
Artist (Required) | The track artist | Text |
Duration | The duration in seconds | Number |
Album | The track album | Text |
Description | The track description | Text |
Genre | The track genre | Text |
Artwork | The artwork URL | Text, Image, File |
Player widget on Android.
Player widget on iOS.
States
Name | Description | Type |
Current Track ID | Bubble unique_id of current playable track | Text |
Is Playing | Player playback state | Yes/No |
Repeat Mode | Queue repeat mode | Enum Text |
Repeat Mode Types:
Name | Description |
Off | Doesn't repeat. |
Track | Loops the current track. |
Queue | Repeats the whole queue. |
Actions
1. Play
Play the current queue. If the track is passed in action - the queue will be replaced with the passed track.
Field name | Field description | Field type |
track | Track to be played | Track Type |
2. Pause
Pause current track
3. Play Next Track
Skips to the next track in the queue.
4. Play Prev Track
Skips to the previous track in the queue.
5. Add to Queue
Add one track to the queue end
Field name | Field description | Field type |
Track | Track to be added to the end of the queue | Track Type |
6. Set queue
Replace all queues with new ones
Field name | Field description | Field type |
Tracks | List of tracks as a new queue | List of Track Type |
7. Set Player Volume
Sets the volume of the player (non-system sound level)
Field name | Field description | Field type |
volume | The volume in a range from 0 to 100 | Number |
8. Set Repeat Mode
This action sets the repeat mode.
Field name | Field description | Field type |
Mode | The repeat mode | Enum Text |
Repeat Mode Types:
Name | Description |
Off | Doesn't repeat. |
Track | Loops the current track. |
Queue | Repeats the whole queue. |
9. Get Current Player State
Get current track id and status if available
Events
Name | Description |
Start Playing | Triggered when the player started the playback |
Is Paused | Triggered when a player is paused |
Is Ready | Triggered when a player is loaded |
Track Change | Triggered when the track is changed |
Player State Returned | Triggered when Get Current Player State action returns data |