Re: MP3 or audio file and Openbase
Re: MP3 or audio file and Openbase
- Subject: Re: MP3 or audio file and Openbase
- From: Chuck Hill <email@hidden>
- Date: Thu, 29 Jun 2006 14:58:44 -0700
Yes, it is possible. I know many WO sites that do things like this.
It is just hard to understand all the pieces the first time.
You need two things:
1. The WO components / HTML to define the plugin in HTML
2. A direct action (this is easiest, I think) so you have a URL to
dynamically return the MP3 data (see downloading below)
Then use the direct action URL as the src (I think that is the one)
in the EMBED tag.
I think you can do this all in one step with WOEmbeddedObject, but
this way is probably easier to understand.
Chuck
On Jun 29, 2006, at 2:48 PM, Gilles MATHURIN wrote:
In fact, yes i'd like to use a plugin to play the MP3 files, which
come from the database… i begin to think that it is not possible
using a database… :-/
Début du message réexpédié :
De : Gilles MATHURIN <email@hidden>
Date : 29 juin 2006 17:29:17 GMT-04:00
À : Chuck Hill <email@hidden>
Objet : Rép : MP3 or audio file and Openbase
Thanx for the ressource adress, beside, when i clik on the link
you provide me, the browser download an m3u.file launched by
iTunes next, this i don't want, i would like to implement in a
dynamic way the type of link you can see here :
http://homepage.mac.com/golden.ears/SoftSite/Docs/Media.html
Where the song extract come from the database and played in
another window by the Quicktime plug-in or whatever plugin who
deals with mp3 file.
i hope being clear in my explanation.
Gilles.
Le 29 juin 06 à 17:02, Chuck Hill a écrit :
Why are you using WOEmbeddedObject? Are you using a plugin to
play the MP3 files? If so, the functionality from that will
depend on the plugin you are using and the browser.
If you want the users to click a link to play the music like here:
http://www.amazon.com/gp/product/B000BG1PHA/104-7083027-7290363
Then you need to provide a link to "download" the MP3. Search for
'download' on http://wocode.com for code examples of how to do this.
Chuck
On Jun 29, 2006, at 1:45 PM, Gilles MATHURIN wrote:
I am sorry for the mistake in my post , i clicked the wrong
thread (Unable to find entity for object) :-(
Here the message :
Concerning my problem : i use a WOEmbeddedObject to show the mp3
files, and yes they all end in .mp3, i set the mime-type of the
WOEmbeddedObject to "audio/mpeg" it supposes to work well this
way, but apparently i am wrong :-/
I didn't specify a "content-type" header unless it's specifying
a "mime-type" do so…
Thanks for help.
Gilles.
--
Coming sometime... - an introduction to web applications using
WebObjects and Xcode http://www.global-village.net/wointro
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden