Re: MP3 or audio file and Openbase
I thanks you for the method you gave me and for all the ressources links too. I managed to have the WOEmbeddedObject play the MP3 file in Safari, i had to add a Binding : type = audio/mpeg to it in WOBuilder. Now it works great in every browser, with {data mimetype} But i think i'll do it your way anyway, because of the changes in the way IE deals with embedded object since he has lost his lawsuit. So i'll be able to integrate the necessary Javascript in the WO components / HTML… well i think i'll be able to … :-) Thanks again. Great to have this mailing-list for newbie to this amazing tool WebObject is ! Le 29 juin 06 à 17:58, Chuck Hill a écrit : 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 PROTECTED] Date : 29 juin 2006 17:29:17 GMT-04:00 À : Chuck Hill [EMAIL PROTECTED] 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: MP3 or audio file and Openbase
On Jun 29, 2006, at 6:16 AM, Gilles MATHURIN wrote: Hi, everyone I am working on a project of a little music label website driven by a database. I must add that i am new to WO and generally speaking to dynamic website conception. I have done only static website still and add a little base in OO programming and Java. So i have worked on it for about 3 weeks, and while i have made a pretty good EOModel, experiment it with D2W and the WOComponent thanx to the Apple tutorial and all of the great stuff i have found on the web (special thanxs to david.codeferous.com, http:// homepage.mac.com/kelleherk/iblog/ , and the WO wiki !!) i succeed in manipulate the textual information, and the pictures stored in my database, but i'm very frustrating with the audio file. I manage to upload them in the database but they won't display and play in the website, i only got the Quicktime Icon on Safari. Meanwhile the same code let me hear the sound on Camino. Anyone can give me some clue to deal with that ? It sounds like the content-type header you are sending is not correct for the audio files or that the files are not recognized by the browser. Do the file names all end in .mp3 or something else? What is the code you are using to download the audio files? Chuck -- 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: Re: MP3 or audio file and Openbase
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. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: MP3 or audio file and Openbase
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. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill% 40global-village.net This email sent to [EMAIL PROTECTED] -- 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: MP3 or audio file and Openbase
or http://en.wikibooks.org/wiki/Programming:WebObjects/Web_Applications/ Development/Examples/Return_a_File and http://en.wikibooks.org/wiki/Programming:WebObjects/Web_Applications/ Development/Database_vs_Filesystem has some information that might be helpful On Jun 29, 2006, at 5:02 PM, Chuck Hill wrote: 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. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill% 40global-village.net This email sent to [EMAIL PROTECTED] -- 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/mschrag% 40mdimension.com This email sent to [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: MP3 or audio file and Openbase
I was trying to find that migrated WODev content and could not. Is there a useful search (e.g. focused on this one wiki book) feature in that Wiki that I am missing? I used to use the Search in Pierre's site all the time! Chuck On Jun 29, 2006, at 2:09 PM, Mike Schrag wrote: or http://en.wikibooks.org/wiki/Programming:WebObjects/ Web_Applications/Development/Examples/Return_a_File and http://en.wikibooks.org/wiki/Programming:WebObjects/ Web_Applications/Development/Database_vs_Filesystem has some information that might be helpful On Jun 29, 2006, at 5:02 PM, Chuck Hill wrote: 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. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill% 40global-village.net This email sent to [EMAIL PROTECTED] -- 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/mschrag% 40mdimension.com This email sent to [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill% 40global-village.net This email sent to [EMAIL PROTECTED] -- 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: MP3 or audio file and Openbase
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 PROTECTED] Date : 29 juin 2006 17:29:17 GMT-04:00 À : Chuck Hill [EMAIL PROTECTED] 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: MP3 or audio file and Openbase
There's gotta be, but I can't find the link at the moment ... I'll post on the admin questions page about it. ms On Jun 29, 2006, at 5:16 PM, Chuck Hill wrote: I was trying to find that migrated WODev content and could not. Is there a useful search (e.g. focused on this one wiki book) feature in that Wiki that I am missing? I used to use the Search in Pierre's site all the time! Chuck On Jun 29, 2006, at 2:09 PM, Mike Schrag wrote: or http://en.wikibooks.org/wiki/Programming:WebObjects/ Web_Applications/Development/Examples/Return_a_File and http://en.wikibooks.org/wiki/Programming:WebObjects/ Web_Applications/Development/Database_vs_Filesystem has some information that might be helpful On Jun 29, 2006, at 5:02 PM, Chuck Hill wrote: 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. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill% 40global-village.net This email sent to [EMAIL PROTECTED] -- 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/mschrag% 40mdimension.com This email sent to [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill% 40global-village.net This email sent to [EMAIL PROTECTED] -- 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 (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: MP3 or audio file and Openbase
Just use http://www.google.com/search?hl=enlr=q=download+site% 3Aen.wikibooks.org%2Fwiki%2FProgramming%3AWebObjectsbtnG=Search? Am 30.06.2006 um 00:49 schrieb Mike Schrag: There's gotta be, but I can't find the link at the moment ... I'll post on the admin questions page about it. ms On Jun 29, 2006, at 5:16 PM, Chuck Hill wrote: I was trying to find that migrated WODev content and could not. Is there a useful search (e.g. focused on this one wiki book) feature in that Wiki that I am missing? I used to use the Search in Pierre's site all the time! Chuck ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com