Page 3 of 3

change src on audio component to local storage var?

Posted: Tue Mar 12, 2013 7:34 pm
by Don

Hi Marina,

I sent details in email to: a href="mailto:support@tiggzi.com" rel="nofollow"support@tiggzi.com/a


change src on audio component to local storage var?

Posted: Tue Mar 12, 2013 8:25 pm
by Kateryna Grynko

Hi Don,
Thank you. We got details, I will update.


change src on audio component to local storage var?

Posted: Tue Mar 12, 2013 9:36 pm
by Kateryna Grynko

In Audio component properties, tick "Auto Play".
On image click, JavaScript that we adviced runs.
Replace it with the following code:
codevar cell = $(this).parents('.cell-wrapper');
var vmailurl = $('[name="voicemail_msg_link"]', cell).eq(0).text();

var player = $('[name="voicemail_player"]');
player.empty();
player&#46;append('<source src="'+ vmailurl +'" type="audio&#47;wav">');
player[0]&#46;play();
/code


change src on audio component to local storage var?

Posted: Tue Mar 12, 2013 11:05 pm
by Don

Hi Katya,

Sorry... still nothing happens.
I replaced with your above code and ticked Auto Play in the audio component.

I have re-confirmed that the full URL is in voicemail_msg_link.
I have also re-confirmed that the url does return and play the wav file when visited directly.


change src on audio component to local storage var?

Posted: Wed Mar 13, 2013 9:56 am
by Maryna Brodina

Hello! On page Voicemail:

1) check Auto Play for voicemail_player;
2) on Complete REST_voicemail run JS:

codeTiggzi('voicemail_player')&#46;eq(0)&#46;empty();/code

3) on Click event on image (with dynamic) run JS code:

codevar cell = $(this)&#46;parents('&#46;cell-wrapper');
var vmailurl = $('[name="voicemail_msg_link"]', cell)&#46;eq(0)&#46;text();
var player = Tiggzi('voicemail_player')&#46;eq(0);
player&#46;empty()&#46;append('<source src="'+ vmailurl +'" type="audio&#47;wav">');
player[0]&#46;play();
showSpinner();
player&#46;on('canplay', function () {
hideSpinner();
});/code


change src on audio component to local storage var?

Posted: Thu Mar 14, 2013 1:48 am
by Don

Sorry, that does not work either.

Now I get a shaded white overlay and an endless wait circle.

The entire app seems to crash and I have to exit out of it.
Even going back to the main page still has the white overlay and endless wait circle.


change src on audio component to local storage var?

Posted: Thu Mar 14, 2013 4:49 pm
by Kateryna Grynko

Hi Don,

On what browser and what device do you test your app?


change src on audio component to local storage var?

Posted: Thu Mar 14, 2013 5:26 pm
by Kateryna Grynko

Also... http://developer.android.com/intl/ru/...
Here is the table that contains the list of audio formats supported by Android.
i.e. if file is not played on device then Android version is not appropriate.


change src on audio component to local storage var?

Posted: Sat Mar 23, 2013 5:42 am
by Don

Hi Katya,

wav files are clearly supported and you have re-confirmed this in the link provided.

I also know wav files work, as one of the issues above was that it would only play the first url know matter which was selected.

Anyways... as this was clearly not working... I changed the design and now use a popup to play the audio file. This works.

If you ever get the other to work, it is the preferred method, instead of having popup.