Don
Posts: 0
Joined: Sun Feb 17, 2013 4:09 pm

change src on audio component to local storage var?

Hi Marina,

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

change src on audio component to local storage var?

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

change src on audio component to local storage var?

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

Don
Posts: 0
Joined: Sun Feb 17, 2013 4:09 pm

change src on audio component to local storage var?

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

change src on audio component to local storage var?

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

Don
Posts: 0
Joined: Sun Feb 17, 2013 4:09 pm

change src on audio component to local storage var?

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

change src on audio component to local storage var?

Hi Don,

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

change src on audio component to local storage var?

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.

Don
Posts: 0
Joined: Sun Feb 17, 2013 4:09 pm

change src on audio component to local storage var?

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.

Return to “Issues”