Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24665] Android: Fix inaccessible Ti.Media constants

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-06-05T21:52:23.000+0000
Affected Version/sRelease 6.0.4
Fix Version/sRelease 6.1.1
ComponentsAndroid
Labelsn/a
ReporterGary Mathews
AssigneeYordan Banev
Created2017-05-08T14:21:57.000+0000
Updated2017-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

Comments

  1. Gary Mathews 2017-05-08

    master: https://github.com/appcelerator/titanium_mobile/pull/9031
  2. Gary Mathews 2017-06-05

    6_1_X: https://github.com/appcelerator/titanium_mobile/pull/9110
  3. Lokesh Choudhary 2017-06-05

    FR Passed for master & backport PR.
  4. Abir Mukherjee 2017-06-07

    Fixes are seen in theses builds, therefore closing ticket: 6.1.1.v20170607112801 6.2.0.v20170607113235

JSON Source