Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
Ti
Media
AudioPlayer
Interface AudioPlayer
Hierarchy
Proxy
AudioPlayer
Index
Properties
STATE_BUFFERING
STATE_INITIALIZED
STATE_PAUSED
STATE_PLAYING
STATE_STARTING
STATE_STOPPED
STATE_STOPPING
STATE_WAITING_FOR_DATA
STATE_WAITING_FOR_QUEUE
allowBackground
autoplay
bitRate
bubbleParent
bufferSize
idle
paused
playing
progress
state
url
volume
waiting
Methods
addEventListener
applyProperties
fireEvent
getAllowBackground
getAutoplay
getBitRate
getBubbleParent
getBufferSize
getIdle
getPaused
getPlaying
getProgress
getState
getUrl
getVolume
getWaiting
isPaused
isPlaying
pause
play
release
removeEventListener
setBitRate
setBubbleParent
setBufferSize
setPaused
setUrl
setVolume
start
stateDescription
stop
Properties
public
STATE_BUFFERING
:
number
public
STATE_INITIALIZED
:
number
public
STATE_PAUSED
:
number
public
STATE_PLAYING
:
number
public
STATE_STARTING
:
number
public
STATE_STOPPED
:
number
public
STATE_STOPPING
:
number
public
STATE_WAITING_FOR_DATA
:
number
public
STATE_WAITING_FOR_QUEUE
:
number
public
allowBackground
:
boolean
public
autoplay
:
boolean
public
bitRate
:
number
public
bubbleParent
:
boolean
public
bufferSize
:
number
public
idle
:
boolean
public
paused
:
boolean
public
playing
:
boolean
public
progress
:
number
public
state
:
number
public
url
:
string
public
volume
:
number
public
waiting
:
boolean
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
getAllowBackground
(
)
:
boolean
Returns
boolean
public
getAutoplay
(
)
:
boolean
Returns
boolean
public
getBitRate
(
)
:
number
Returns
number
public
getBubbleParent
(
)
:
boolean
Returns
boolean
public
getBufferSize
(
)
:
number
Returns
number
public
getIdle
(
)
:
boolean
Returns
boolean
public
getPaused
(
)
:
boolean
Returns
boolean
public
getPlaying
(
)
:
boolean
Returns
boolean
public
getProgress
(
)
:
number
Returns
number
public
getState
(
)
:
number
Returns
number
public
getUrl
(
)
:
string
Returns
string
public
getVolume
(
)
:
number
Returns
number
public
getWaiting
(
)
:
boolean
Returns
boolean
public
isPaused
(
)
:
boolean
Returns
boolean
public
isPlaying
(
)
:
boolean
Returns
boolean
public
pause
(
)
public
play
(
)
public
release
(
)
public
removeEventListener
(
name
:
string
, callback
:
(...args: any[]) => any
)
Parameters
name:
string
callback:
(...args: any[]) => any
public
setBitRate
(
bitRate
:
number
)
Parameters
bitRate:
number
public
setBubbleParent
(
bubbleParent
:
boolean
)
Parameters
bubbleParent:
boolean
public
setBufferSize
(
bufferSize
:
number
)
Parameters
bufferSize:
number
public
setPaused
(
paused
:
boolean
)
Parameters
paused:
boolean
public
setUrl
(
url
:
string
)
Parameters
url:
string
public
setVolume
(
volume
:
number
)
Parameters
volume:
number
public
start
(
)
public
stateDescription
(
state
:
number
)
:
string
Parameters
state:
number
Returns
string
public
stop
(
)
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
STATE_BUFFERING
STATE_INITIALIZED
STATE_PAUSED
STATE_PLAYING
STATE_STARTING
STATE_STOPPED
STATE_STOPPING
STATE_WAITING_FOR_DATA
STATE_WAITING_FOR_QUEUE
allowBackground
autoplay
bitRate
bubbleParent
bufferSize
idle
paused
playing
progress
state
url
volume
waiting
addEventListener
applyProperties
fireEvent
getAllowBackground
getAutoplay
getBitRate
getBubbleParent
getBufferSize
getIdle
getPaused
getPlaying
getProgress
getState
getUrl
getVolume
getWaiting
isPaused
isPlaying
pause
play
release
removeEventListener
setBitRate
setBubbleParent
setBufferSize
setPaused
setUrl
setVolume
start
stateDescription
stop
AudioRecorder
Item
MusicPlayer
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