[TIMOB-24665] Android: Fix inaccessible Ti.Media constants
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-06-05T21:52:23.000+0000 |
Affected Version/s | Release 6.0.4 |
Fix Version/s | Release 6.1.1 |
Components | Android |
Labels | n/a |
Reporter | Gary Mathews |
Assignee | Yordan Banev |
Created | 2017-05-08T14:21:57.000+0000 |
Updated | 2017-06-07T23:45:36.000+0000 |
Description
- Constant values of proxy classes can only be accessed from instances of the proxy and not directly.
*TEST CASE*
Ti.API.info(
'Ti.Media.AudioPlayer.STATE_BUFFERING: ' + Ti.Media.AudioPlayer.STATE_BUFFERING + '\n' +
'Ti.Media.AudioPlayer.STATE_INITIALIZED: ' + Ti.Media.AudioPlayer.STATE_INITIALIZED + '\n' +
'Ti.Media.AudioPlayer.STATE_PAUSED: ' + Ti.Media.AudioPlayer.STATE_PAUSED + '\n' +
'Ti.Media.AudioPlayer.STATE_PLAYING: ' + Ti.Media.AudioPlayer.STATE_PLAYING + '\n' +
'Ti.Media.AudioPlayer.STATE_STARTING: ' + Ti.Media.AudioPlayer.STATE_STARTING + '\n' +
'Ti.Media.AudioPlayer.STATE_STOPPED: ' + Ti.Media.AudioPlayer.STATE_STOPPED + '\n' +
'Ti.Media.AudioPlayer.STATE_STOPPING: ' + Ti.Media.AudioPlayer.STATE_STOPPING + '\n' +
'Ti.Media.AudioPlayer.STATE_WAITING_FOR_DATA: ' + Ti.Media.AudioPlayer.STATE_WAITING_FOR_DATA + '\n' +
'Ti.Media.AudioPlayer.STATE_WAITING_FOR_QUEUE: ' + Ti.Media.AudioPlayer.STATE_WAITING_FOR_QUEUE
);
Ti.API.info(
'Ti.Media.Sound.STATE_BUFFERING: ' + Ti.Media.Sound.STATE_BUFFERING + '\n' +
'Ti.Media.Sound.STATE_INITIALIZED: ' + Ti.Media.Sound.STATE_INITIALIZED + '\n' +
'Ti.Media.Sound.STATE_PAUSED: ' + Ti.Media.Sound.STATE_PAUSED + '\n' +
'Ti.Media.Sound.STATE_PLAYING: ' + Ti.Media.Sound.STATE_PLAYING + '\n' +
'Ti.Media.Sound.STATE_STARTING: ' + Ti.Media.Sound.STATE_STARTING + '\n' +
'Ti.Media.Sound.STATE_STOPPED: ' + Ti.Media.Sound.STATE_STOPPED + '\n' +
'Ti.Media.Sound.STATE_STOPPING: ' + Ti.Media.Sound.STATE_STOPPING + '\n' +
'Ti.Media.Sound.STATE_WAITING_FOR_DATA: ' + Ti.Media.Sound.STATE_WAITING_FOR_DATA + '\n' +
'Ti.Media.Sound.STATE_WAITING_FOR_QUEUE: ' + Ti.Media.Sound.STATE_WAITING_FOR_QUEUE
);
*EXPECTED*
- Numerical values representing each constant
*ACTUAL*
- Undefined value
master: https://github.com/appcelerator/titanium_mobile/pull/9031
6_1_X: https://github.com/appcelerator/titanium_mobile/pull/9110
FR Passed for master & backport PR.
Fixes are seen in theses builds, therefore closing ticket: 6.1.1.v20170607112801 6.2.0.v20170607113235