Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-28105

Android: AudioRecorder "recording" and "stopped" properties return the wrong state values

    Details

    • Story Points:
      3
    • Sprint:
      2020 Sprint 19, 2020 Sprint 20, 2020 Sprint 21

      Description

      Summary:
      The following Ti.Media.AudioRecorder properties return the wrong values...

      • "recording" never returns false after calling pause() or stop().
      • "stopped" never returns false ever. It always returns true.

      Steps to reproduce:

      1. Create a "Classic" app.
      2. Add the below permission to the "tiapp.xml".
      3. Use attached AudioRecorderStatusTest.js for the "app.js".
      4. Build and run on Android.
      5. Notice the label "Stopped: true". (This is wrong. It should be false.)
      6. Tap on the "Start Recording" button.
      7. Tap on the "Pause Recording" button.
      8. Notice the label "Recording: true" does not become false. (This is wrong.)
      9. Tap on the "Resume Recording" button.
      10. Tap on the "Stop Recording" button.
      11. Notice the label "Recording: true" does not become false. (This is wrong.)

      <ti:app>
      	<android>
      		<manifest>
      			<uses-permission android:name="android.permission.RECORD_AUDIO"/>
      		</manifest>
      	</android>
      </ti:app>
      

      Expected Result:
      Only 1 of the below properties should be true at a time...

      • "recording" - only true after calling start() or resume()
      • "paused" - only true after calling pause()
      • "stopped" - only true after creation or after calling stop()

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              jquick Joshua Quick
              Reviewer:
              Gary Mathews
              Tester:
              Satyam Sekhri
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration