76
Views
10
Comments
Solved
[Audio Record Plugin Sample] Cant Save Audio
Question
audio-record-plugin-sample
Mobile icon
Forge asset by Henrique Batista

hey guys i managed to do the plugin,it does record now but problem is that it doesnt want to save can anyone help here?...after recording i try to save but it gives me this message..."cannot assign a javascript string with value to an output parameter of type integer check the javascript node 'OpenAudioRecorder" of the action 'RecordAudio'. please help me solve this problem please..

UserImage.jpg
Davidk
Solution

You can either change the code in the Javascript node "OpenAudioRecorder" or... as Henrique says... change the error_code parameter Data Type to Text.  Either way... it's a change to the AudioRecordPlugin.

UserImage.jpg
Davidk

I'm not sure if this is the issue... but... there is an error in the Javascript code.  The code is currently reading...

$parameters.error_code = output.error_code || "";

and it should be...

$parameters.error_code = output.error_code || 0;

UserImage.jpg
MUSGADO

Davidk wrote:

I'm not sure if this is the issue... but... there is an error in the Javascript code.  The code is currently reading...

$parameters.error_code = output.error_code || "";

and it should be...

$parameters.error_code = output.error_code || 0;


hey David thanks for reply...so how can i change The Code to whats right ?

UserImage.jpg
Davidk

You have the Plugin installed... found in your "Application in Development" page.  Open the Plugin and then double-click on the Javascript Node named "OpenAudioRecorder".  You'll see the code.

2017-07-05 22-17-18
Henrique Batista
Staff

Hey MUSA,

Like David said, you'll need to change the plugin code.

Alternatively you can change the output parameter from integer to text, it solves the issue too.

Cheers

UserImage.jpg
MUSGADO

Thank you Both of you ...@Henrique which output parameter should i change to text...please bare with me a little im kind of a slow leaner...thank you.

UserImage.jpg
Davidk
Solution

You can either change the code in the Javascript node "OpenAudioRecorder" or... as Henrique says... change the error_code parameter Data Type to Text.  Either way... it's a change to the AudioRecordPlugin.

2017-07-05 22-17-18
Henrique Batista
Staff

Yup, 

Exactly like Davidk said!

You should mark that as the solution!


UserImage.jpg
MUSGADO

thank you thank you guys mwaaa i love you thanks guys ...enjoy your day thank you

UserImage.jpg
MUSGADO

hi @Henrique and @DavidK i fixed that problem thank you but when i try to play the audio i get the messages at the images check them out...?

audio pro.png
2017-07-05 22-17-18
Henrique Batista
Staff

Hi Musa,

That's nothing to do with the plugins, that's a DB error.

You're trying to associate media with a User but you're sending theUser identifier as null.

If you add a breakpoint on your action, you'll see that exception.

Hope it helps

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.