Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
Ti
Media
MusicPlayer
Interface MusicPlayer
Hierarchy
Proxy
MusicPlayer
Index
Properties
bubbleParent
currentPlaybackTime
nowPlaying
playbackState
repeatMode
shuffleMode
volume
Methods
addEventListener
applyProperties
fireEvent
getBubbleParent
getCurrentPlaybackTime
getNowPlaying
getPlaybackState
getRepeatMode
getShuffleMode
getVolume
pause
play
removeEventListener
seekBackward
seekForward
setBubbleParent
setCurrentPlaybackTime
setQueue
setRepeatMode
setShuffleMode
setVolume
skipToBeginning
skipToNext
skipToPrevious
stop
stopSeeking
Properties
public
bubbleParent
:
boolean
public
currentPlaybackTime
:
number
public
nowPlaying
:
Item
public
playbackState
:
number
public
repeatMode
:
number
public
shuffleMode
:
number
public
volume
:
number
Methods
public
addEventListener
(
name
:
string
, callback
:
(...args: any[]) => any
)
Parameters
name:
string
callback:
(...args: any[]) => any
public
applyProperties
(
props
:
Dictionary
)
Parameters
props:
Dictionary
public
fireEvent
(
name
:
string
, event
:
Dictionary
)
Parameters
name:
string
event:
Dictionary
public
getBubbleParent
(
)
:
boolean
Returns
boolean
public
getCurrentPlaybackTime
(
)
:
number
Returns
number
public
getNowPlaying
(
)
:
Item
Returns
Item
public
getPlaybackState
(
)
:
number
Returns
number
public
getRepeatMode
(
)
:
number
Returns
number
public
getShuffleMode
(
)
:
number
Returns
number
public
getVolume
(
)
:
number
Returns
number
public
pause
(
)
public
play
(
)
public
removeEventListener
(
name
:
string
, callback
:
(...args: any[]) => any
)
Parameters
name:
string
callback:
(...args: any[]) => any
public
seekBackward
(
)
public
seekForward
(
)
public
setBubbleParent
(
bubbleParent
:
boolean
)
Parameters
bubbleParent:
boolean
public
setCurrentPlaybackTime
(
currentPlaybackTime
:
number
)
Parameters
currentPlaybackTime:
number
public
setQueue
(
queue
:
Item
)
Parameters
queue:
Item
public
setQueue
(
queue
:
Item
[]
)
Parameters
queue:
Item
[]
public
setQueue
(
queue
:
PlayerQueue
)
Parameters
queue:
PlayerQueue
public
setRepeatMode
(
repeatMode
:
number
)
Parameters
repeatMode:
number
public
setShuffleMode
(
shuffleMode
:
number
)
Parameters
shuffleMode:
number
public
setVolume
(
volume
:
number
)
Parameters
volume:
number
public
skipToBeginning
(
)
public
skipToNext
(
)
public
skipToPrevious
(
)
public
stop
(
)
public
stopSeeking
(
)
Globals
Global
Ti
Ti.Android
Ti.Android.Calendar
Ti.App
Ti.App.iOS
Ti.Calendar
Ti.Cloud
Ti.Contacts
Ti.Contacts.Tizen
Ti.Database
Ti.Facebook
Ti.Filesystem
Ti.Geolocation
Ti.Geolocation.Android
Ti.Map
Ti.Media
Ti.Network
Ti.Network.Socket
Ti.Platform
Ti.UI
Ti.UI.Android
Ti.UI.MobileWeb
Ti.UI.iOS
Ti.UI.iPad
Ti.UI.iPhone
Ti.XML
AUDIO_FILEFORMAT_3GP2
AUDIO_FILEFORMAT_3GPP
AUDIO_FILEFORMAT_AIFF
AUDIO_FILEFORMAT_AMR
AUDIO_FILEFORMAT_CAF
AUDIO_FILEFORMAT_MP3
AUDIO_FILEFORMAT_MP4
AUDIO_FILEFORMAT_MP4A
AUDIO_FILEFORMAT_WAVE
AUDIO_FORMAT_AAC
AUDIO_FORMAT_ALAW
AUDIO_FORMAT_APPLE_LOSSLESS
AUDIO_FORMAT_ILBC
AUDIO_FORMAT_IMA4
AUDIO_FORMAT_LINEAR_PCM
AUDIO_FORMAT_ULAW
AUDIO_HEADPHONES
AUDIO_HEADPHONES_AND_MIC
AUDIO_HEADSET_INOUT
AUDIO_LINEOUT
AUDIO_MICROPHONE
AUDIO_MUTED
AUDIO_RECEIVER_AND_MIC
AUDIO_SESSION_MODE_AMBIENT
AUDIO_SESSION_MODE_PLAYBACK
AUDIO_SESSION_MODE_PLAY_AND_RECORD
AUDIO_SESSION_MODE_RECORD
AUDIO_SESSION_MODE_SOLO_AMBIENT
AUDIO_SPEAKER
AUDIO_UNAVAILABLE
AUDIO_UNKNOWN
CAMERA_FRONT
CAMERA_REAR
DEVICE_BUSY
MEDIA_TYPE_PHOTO
MEDIA_TYPE_VIDEO
MUSIC_MEDIA_GROUP_ALBUM
MUSIC_MEDIA_GROUP_ALBUM_ARTIST
MUSIC_MEDIA_GROUP_ARTIST
MUSIC_MEDIA_GROUP_COMPOSER
MUSIC_MEDIA_GROUP_GENRE
MUSIC_MEDIA_GROUP_PLAYLIST
MUSIC_MEDIA_GROUP_PODCAST_TITLE
MUSIC_MEDIA_GROUP_TITLE
MUSIC_MEDIA_TYPE_ALL
MUSIC_MEDIA_TYPE_ANY_AUDIO
MUSIC_MEDIA_TYPE_AUDIOBOOK
MUSIC_MEDIA_TYPE_MUSIC
MUSIC_MEDIA_TYPE_PODCAST
MUSIC_PLAYER_REPEAT_ALL
MUSIC_PLAYER_REPEAT_DEFAULT
MUSIC_PLAYER_REPEAT_NONE
MUSIC_PLAYER_REPEAT_ONE
MUSIC_PLAYER_SHUFFLE_ALBUMS
MUSIC_PLAYER_SHUFFLE_DEFAULT
MUSIC_PLAYER_SHUFFLE_NONE
MUSIC_PLAYER_SHUFFLE_SONGS
MUSIC_PLAYER_STATE_INTERRUPTED
MUSIC_PLAYER_STATE_PAUSED
MUSIC_PLAYER_STATE_PLAYING
MUSIC_PLAYER_STATE_SEEK_BACKWARD
MUSIC_PLAYER_STATE_SEEK_FORWARD
MUSIC_PLAYER_STATE_STOPPED
NO_CAMERA
NO_VIDEO
QUALITY_HIGH
QUALITY_LOW
QUALITY_MEDIUM
UNKNOWN_ERROR
VIDEO_CONTROL_DEFAULT
VIDEO_CONTROL_EMBEDDED
VIDEO_CONTROL_FULLSCREEN
VIDEO_CONTROL_HIDDEN
VIDEO_CONTROL_NONE
VIDEO_CONTROL_VOLUME_ONLY
VIDEO_FINISH_REASON_PLAYBACK_ENDED
VIDEO_FINISH_REASON_PLAYBACK_ERROR
VIDEO_FINISH_REASON_USER_EXITED
VIDEO_LOAD_STATE_PLAYABLE
VIDEO_LOAD_STATE_PLAYTHROUGH_OK
VIDEO_LOAD_STATE_STALLED
VIDEO_LOAD_STATE_UNKNOWN
VIDEO_MEDIA_TYPE_AUDIO
VIDEO_MEDIA_TYPE_NONE
VIDEO_MEDIA_TYPE_VIDEO
VIDEO_PLAYBACK_STATE_INTERRUPTED
VIDEO_PLAYBACK_STATE_PAUSED
VIDEO_PLAYBACK_STATE_PLAYING
VIDEO_PLAYBACK_STATE_SEEKING_BACKWARD
VIDEO_PLAYBACK_STATE_SEEKING_FORWARD
VIDEO_PLAYBACK_STATE_STOPPED
VIDEO_REPEAT_MODE_NONE
VIDEO_REPEAT_MODE_ONE
VIDEO_SCALING_ASPECT_FILL
VIDEO_SCALING_ASPECT_FIT
VIDEO_SCALING_MODE_FILL
VIDEO_SCALING_NONE
VIDEO_SOURCE_TYPE_FILE
VIDEO_SOURCE_TYPE_STREAMING
VIDEO_SOURCE_TYPE_UNKNOWN
VIDEO_TIME_OPTION_EXACT
VIDEO_TIME_OPTION_NEAREST_KEYFRAME
appMusicPlayer
audioLineType
audioPlaying
audioSessionMode
availableCameraMediaTypes
availableCameras
availablePhotoGalleryMediaTypes
availablePhotoMediaTypes
averageMicrophonePower
bubbleParent
canRecord
isCameraSupported
peakMicrophonePower
systemMusicPlayer
volume
Android
AudioPlayer
AudioRecorder
Item
MusicPlayer
bubbleParent
currentPlaybackTime
nowPlaying
playbackState
repeatMode
shuffleMode
volume
addEventListener
applyProperties
fireEvent
getBubbleParent
getCurrentPlaybackTime
getNowPlaying
getPlaybackState
getRepeatMode
getShuffleMode
getVolume
pause
play
removeEventListener
seekBackward
seekForward
setBubbleParent
setCurrentPlaybackTime
setQueue
setRepeatMode
setShuffleMode
setVolume
skipToBeginning
skipToNext
skipToPrevious
stop
stopSeeking
Sound
VideoPlayer
addEventListener
applyProperties
beep
createAudioPlayer
createAudioRecorder
createItem
createMusicPlayer
createSound
createVideoPlayer
fireEvent
getAppMusicPlayer
getAudioLineType
getAudioPlaying
getAudioSessionMode
getAvailableCameraMediaTypes
getAvailableCameras
getAvailablePhotoGalleryMediaTypes
getAvailablePhotoMediaTypes
getAverageMicrophonePower
getBubbleParent
getCanRecord
getIsCameraSupported
getPeakMicrophonePower
getSystemMusicPlayer
getVolume
hideCamera
hideMusicLibrary
isMediaTypeSupported
openMusicLibrary
openPhotoGallery
previewImage
queryMusicLibrary
removeEventListener
requestAuthorization
saveToPhotoGallery
setAudioSessionMode
setAvailableCameraMediaTypes
setAvailablePhotoGalleryMediaTypes
setAvailablePhotoMediaTypes
setAverageMicrophonePower
setBubbleParent
showCamera
startMicrophoneMonitor
stopMicrophoneMonitor
switchCamera
takePicture
takeScreenshot
vibrate