How to transfer audio from server to client, with webpage, &

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

How to transfer audio from server to client, with webpage, &

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:55 pm

by Andrew >> Sat, 10 Dec 2005 3:01:57 GMT

Hello Everyone:

I was hoping to receive a bit of feedback regarding this question:
When using the HTML Generation system to convert JADE Forms into Web Pages, which will be displayed by a webserver connected to the JADE application server...

1) Would it be possible to place an "audio" object in the JADE Form's design ( for eventual conversion into a web page element) that will playback the audio file on the client side? It appears that the file can either be transferred to the client side or read directly from server storage.

I certainly wish that there were more online resources available on the JADE language and it's capabilities. The JADE "HTML Generation with JADE Forms" whitepaper on this technology do not appear to elaborate on how to transfer an audio file to the client (to play the file from cache on the client side or from webserver storage across the network). However, the instructions in the whitepaper do enable a local audio file ( that already exists on the client side ) to be played by a converted JADE Form web page as an OBJECT or IMG element.

Thank you all for your advisories.

Regards,

-Andrew Campbell

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: How to transfer audio from server to client, with webpage, &

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:55 pm

by Jade Support >> Tue, 13 Dec 2005 20:03:50 GMT

The audio plugin runs on the client machine, so the audio file must be transferred from the server if it isn't already on client machine, however, it may just be a 'temporary' transfer to the client cache while it plays, then gets removed.

If you're wanting to know how to put the audio file on the web page from within JADE (not just the HTML syntax), please see the documentation for the WebHTML class in the JADE Encyclopaedia of Classes and Types (Volume 2) PDF.

As far as the HTML, if the audio is to be requested by the user, a simple <a> link to the audio file may be sufficient:

<a href="http://mysite/music/elvis1.wav">Click to listen</a>

If the sound file is on the client machine, then the 'href' would be set to the local file name, but this is generally dangerous, as you don't generally know where a user may have a file stored.

Jade Support.


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 1 guest