[AC-1767] Type error 'createAudioRecorder' missing
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2014-01-23T06:18:03.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Richard Botting |
Assignee | Ritu Agrawal |
Created | 2014-01-22T16:54:11.000+0000 |
Updated | 2016-03-08T07:40:39.000+0000 |
Description
Steps to Reproduce
I have recently installed Appcelerator (I'm a newbie), but believe I have got the latest. However I have a simpe app with a call:
var recording = Ti.Media.createAudioRecorder();
On running app get error:
Message: Uncaught TypeError: Object # has no method 'createAudioRecorder'.
Detailed stack:
Project built successfully in 2m 20s 110ms
-- Start application log -----------------------------------------------------
[INFO] : TiApplication: (main) [0,0] checkpoint, app created.
[INFO] : TiApplication: (main) [333,333] Titanium 3.2.0 (2013/12/20 10:57 d9182d6)
[INFO] : TiDbHelper: (main) [148,481] No value in database for platform key: 'unique_machine_id' returning supplied default ''
[INFO] : TiDbHelper: (main) [34,515] No value in database for platform key: 'hardware_machine_id' returning supplied default ''
[INFO] : TiApplication: (main) [147,662] Titanium Javascript runtime: v8
[WARN] : linker: libstlport_shared.so has text relocations. This is wasting memory and is a security risk. Please fix.
[WARN] : linker: libkroll-v8.so has text relocations. This is wasting memory and is a security risk. Please fix.
[INFO] : TiRootActivity: (main) [1,1] checkpoint, on root activity create, savedInstanceState: null
[INFO] : TiAnalyticsDb: (main) [110,111] Upgrading Database from 1 to 4
[WARN] : V8Object: Runtime disposed, cannot set property 'userAgent'
[ERROR] : TiExceptionHandler: (main) [3088,3199] ----- Titanium Javascript Runtime Error -----
[ERROR] : TiExceptionHandler: (main) [4,3203] - In app.js:32,26
[ERROR] : TiExceptionHandler: (main) [5,3208] - Message: Uncaught TypeError: Object # has no method 'createAudioRecorder'
[ERROR] : TiExceptionHandler: (main) [5,3213] - Source: var recording = Ti.Media.createAudioRecorder();
[INFO] : I/dalvikvm-heap: Grow heap (frag case) to 4.410MB for 1127536-byte allocation
[ERROR] : V8Exception: Exception occurred at app.js:32: Uncaught TypeError: Object # has no method 'createAudioRecorder'
[INFO] : I/dalvikvm-heap: Grow heap (frag case) to 7.525MB for 2731536-byte allocation
[WARN] : linker: libtiverify.so has text relocations. This is wasting memory and is a security risk. Please fix.
[INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = com.vt.recordSimple.RecordsimpleActivity@b1d48c98
[INFO] : Choreographer: Skipped 96 frames! The application may be doing too much work on its main thread.
[INFO] : Choreographer: Skipped 48 frames! The application may be doing too much work on its main thread.
[INFO] : Process: Sending signal. PID: 1700 SIG: 9
[ERROR] Application Installer abnormal process termination. Process exit value was 1
Actual Result
Error on running - see above
Expected Result
No errors on running
Attachments
[~richard49bc] This error indicates that you are using this method for Android platform. However, this method is supported only on iOS platform as documented below. http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Media-method-createAudioRecorder