Global

Methods

getCurItem() → {Object}

This method is used to get the current item.

Returns:

return current item object.

Type
Object

getCurrentItemIndex() → {Number}

This method is used to get the index of current item *

Returns:

returns current item index.

Type
Number

getItems() → {Object}

This method is used to get the list of all items.

Returns:

return items object.

Type
Object

getItemsLength() → {Number}

This method is used to get length of items *

Returns:

returns length of items.

Type
Number

getNextItem() → {Object}

This method returns next item when repeat mode is on

Returns:

return next item.

Type
Object

getRepeatMode() → {String}

This method is used to get repeat mode*

Returns:

return repeat mode string.

Type
String

next() → {Object}

Set a next item to a current one of PlayList. REPEAT_ONE: Next audio OR Random audio in case shuffle ON REPEAT_NO : Does not play previous audio REPEAT_ALL : Next audio OR Random audio in case shuffle ON

Returns:

A current item of PlayList, if a next item is not existed, return null.

Type
Object
Example
audioObj.next();

prev() → {Object}

This method returns previous item when repeat mode is on*

Returns:

return previous item.

Type
Object

prev() → {Object}

Set a previous item to a current one of PlayList. REPEAT_ONE: Previous audio OR Random audio in case shuffle ON REPEAT_NO : Does not play previous audio REPEAT_ALL : Previous audio OR Random audio in case shuffle ON

Returns:

A current item of PlayList, if a previous item is not existed, return null.

Type
Object
Example
audioObj.prev();

setItems(items)

This method is used to set the list of all items

Parameters:
Name Type Description
items Object

object contains playlist items.

setRepeatMode(repeatMode)

This method is used to set repeat mode*

Parameters:
Name Type Description
repeatMode String

none,one and all