Re: [WSG] Re: Object Mp3 into FF
Dear Helmut, You have two errors. Line 2: A quoted string cannot be immediately followed by text. It must be followed by a space or the end of the tag. Line 7: The EMBED element cannot be used here. It is not contained in an element that allows its use. Regards, John S. Britsios Accessibility SEO Consultant, Usability Specialist Trainer Webnauts Net Koblenzer Str. 37a D-33613 Bielefeld Germany, EU Telephone: (+49) 0521 - 305 10 20 Cellular: (+49) 0163 - 202 55 61 Email: [EMAIL PROTECTED] Homepage: http://www.webnauts.net Discussion Forums: http://www.webnauts.net/phpBB2/ Designing with Accessibility, Search Engines Usability in Mind - Original Message - From: Helmut Granda [EMAIL PROTECTED] Cc: wsg@webstandardsgroup.org Sent: Wednesday, March 09, 2005 11:16 PM Subject: [WSG] Re: Object Mp3 into FF I dont know if it is ok to post this kind of question here. I am trying to play a simple Mp3 file in the server, it works in IE, and I have read that if something works on IE but not in other browsers it is most likely because it is not writen properly. I have tested it extensibly in my machine and it is working. I have used the deprecated embed tag and the object tag, both work on my computer and on IE on the server, but not on FF. Could some one take a look and help me find where I am making the mistake? Web references are good too. I have been searching for nearly 3 hours in different sites but none that I have found cover mp3, I even found a way around to embed Media Player in FF. Here is my code: OBJECT CLASSID=clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B WIDTH=144HEIGHT=16 CODEBASE=http://www.apple.com/qtactivex/qtplugin.cab; PARAM name=SRC VALUE=MP3%20File.mp3 PARAM name=AUTOPLAY VALUE=true PARAM name=CONTROLLER VALUE=true EMBED SRC=MP3%20File.mp3 WIDTH=144 HEIGHT=16 AUTOPLAY=true CONTROLLER=true PLUGINSPAGE=http://www.apple.com/quicktime/download/; /EMBED /OBJECT TIA, Helmut // I apologize for stealing the previews thread. My mistake. ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help ** ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Re: Object Mp3 into FF
Thanks to John and Matthew to take the time to respond, I have tried all your suggestions, and still it didnt work, BUT I went ahead and uploaded the file to a different server and it works. Now! puts a big ? on my forehead, is there any specific reason or any specific setting that has to be done to enable qt movies to play in any browser? This seems really strange to me since I have the same files in 2 different servers and in one it works only in IE and in the other it works on IE and FF. Any suggestions would be greatly appreciated. Thank you Helmut. John Britsios wrote: Dear Helmut, You have two errors. Line 2: A quoted string cannot be immediately followed by text. It must be followed by a space or the end of the tag. Line 7: The EMBED element cannot be used here. It is not contained in an element that allows its use. Regards, John S. Britsios Accessibility SEO Consultant, Usability Specialist Trainer ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Re: Object Mp3 into FF
Matthew Cruickshank wrote: Helmut Granda wrote: Thanks to John and Matthew to take the time to respond, I have tried all your suggestions, I doubt it. AWWW, thanks for that :-P and still it didnt work, BUT I went ahead and uploaded the file to a different server and it works. The only difference I've ever seen on a server in Firefox is based on the mime-type. Did you really check that as I suggested? What's the difference in the headers between the servers? Server 1: works on IE only HTTP/1.1 200 OK Date: Wed, 09 Mar 2005 23:24:48 GMT Server: Apache/1.3.33 (Unix) Last-Modified: Wed, 09 Mar 2005 20:11:48 GMT ETag: 985415-29b5-422f5884 Accept-Ranges: bytes Content-Length: 10677 Connection: close Server 2:works on IE and FF HTTP/1.1 200 OK Date: Wed, 09 Mar 2005 23:25:03 GMT Server: Apache X-Powered-By: PHP/4.3.10 Connection: close also as a side note, when I deleted the embed tag it would not work in FF only in IE, so I had to place back the embed tag to make it work. Thanks again, Helmut.. ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Re: Object Mp3 into FF
Helmut Granda wrote: Server 1: works on IE only HTTP/1.1 200 OK Date: Wed, 09 Mar 2005 23:24:48 GMT Server: Apache/1.3.33 (Unix) Last-Modified: Wed, 09 Mar 2005 20:11:48 GMT ETag: 985415-29b5-422f5884 Accept-Ranges: bytes Content-Length: 10677 Connection: close Server 2:works on IE and FF HTTP/1.1 200 OK Date: Wed, 09 Mar 2005 23:25:03 GMT Server: Apache X-Powered-By: PHP/4.3.10 Connection: close Huh? So you're saying both servers don't return a Content-Type? What's the url? (and in the meantime complain to the admins of the boxes) The content-length of the first one seems a little small. 10677 bytes is only about a second of audio. also as a side note, when I deleted the DEFANGED_embed tag it would not work in FF only in IE, so I had to place back the DEFANGED_embed tag to make it work. This works for me in Firefox and IE / Quicktime and Media Player, object type=audio/wav data=audio/s001.mp3 param name=filename value=audio/s001.mp3/ /object .Matthew Cruickshank http://holloway.co.nz/ ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Re: Object Mp3 into FF
Matthew Cruickshank wrote: Huh? So you're saying both servers don't return a Content-Type? What's the url? (and in the meantime complain to the admins of the boxes) The content-length of the first one seems a little small. 10677 bytes is only about a second of audio. also as a side note, when I deleted the DEFANGED_embed tag it would not work in FF only in IE, so I had to place back the DEFANGED_embed tag to make it work. This works for me in Firefox and IE / Quicktime and Media Player, object type=audio/wav data=audio/s001.mp3 param name=filename value=audio/s001.mp3/ /object Here are the site tests that I am doing Doesnt work on IE or FF: IE- Fails Server 1 http://www.hamsterballstudios.com/extrafiles/vo/volaunch2.html FF - Fails Server 2 http://www.multimedia247.net/mp3test/volaunch2.html --- IE not working - Same file in different server - Server 1 http://www.hamsterballstudios.com/extrafiles/vo/volaunch3.html FF - Working - Server 2 http://www.multimedia247.net/mp3test/volaunch3.html Thanks for all your help. It is really appreciated. Helmut. ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Re: Object Mp3 into FF
Helmut Granda wrote: Here are the site tests that I am doing Doesnt work on IE or FF: IE- Fails Server 1 http://www.hamsterballstudios.com/extrafiles/vo/volaunch2.html Ok... this site is producing vastly different to the headers you previously posted. There's now - perhaps magically - a content-type. As that was the bit I was asking about I'm guessing you just didn't post that bit last time or something. Christ... The mp3 http://tinyurl.com/6dz8u is sent with these headers (note: text/plain), HTTP/1.1 200 OK Date: Thu, 10 Mar 2005 01:01:59 GMT Server: Apache/1.3.33 (Unix) Last-Modified: Wed, 09 Mar 2005 00:46:13 GMT ETag: 9853fa-1a51f5-422e4755 Accept-Ranges: bytes Content-Length: 1724917 Connection: close Content-Type: text/plain FF - Fails Server 2 http://www.multimedia247.net/mp3test/volaunch2.html The mp3 http://tinyurl.com/44ptd is sent with these headers (note: audio/mpeg, which is more correct) HTTP/1.1 200 OK Date: Thu, 10 Mar 2005 01:04:06 GMT Server: Apache Last-Modified: Wed, 09 Mar 2005 22:53:33 GMT ETag: 57c00d-1a51f5-422f7e6d Accept-Ranges: bytes Content-Length: 1724917 Connection: close Content-Type: audio/mpeg Soget hamsterballstudios.com to return the correct content-type (audio/x-mp3), and then work on the html. This HTML works in Firefox and IE for me, http://www.multimedia247.net/mp3test/volaunch3.html , but fails validation. Get your html to validate - that's half of the problem (well that and the mime headers which have mysteriously reappeared). To get Firefox compatibility there's no need for the older embed tag, provided your object tags are good (previously posted example code works, as do many others). 1. fix your http headers 2. then fix your html .Matthew Cruickshank http://holloway.co.nz/ ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Re: Object Mp3 into FF
Matthew, Thank you very much for taking the time to respond and help. Your links are great resource! One thing is for sure that the server www.multimedia.net will play in IE and FF because it has the mp3 headers correct, while www.hamsterballstudios.com has the headers incorrectly. So to recap. 1. headers in multimedia247.net are set up properly 2. headers in hamsterballstudios.com are not set up correctly 3. code does not validate - solution 1. fix the headers in hamsterballstudios.com 2. fix HTML So my fears that the server in hamsterballstudios.com is not set up correctly which is the clients server. Thanks again, I really appreciate it. Helmut Matthew Cruickshank wrote: Helmut Granda wrote: Here are the site tests that I am doing Doesnt work on IE or FF: IE- Fails Server 1 http://www.hamsterballstudios.com/extrafiles/vo/volaunch2.html Ok... this site is producing vastly different to the headers you previously posted. There's now - perhaps magically - a content-type. As that was the bit I was asking about I'm guessing you just didn't post that bit last time or something. Christ... The mp3 http://tinyurl.com/6dz8u is sent with these headers (note: text/plain), HTTP/1.1 200 OK Date: Thu, 10 Mar 2005 01:01:59 GMT Server: Apache/1.3.33 (Unix) Last-Modified: Wed, 09 Mar 2005 00:46:13 GMT ETag: 9853fa-1a51f5-422e4755 Accept-Ranges: bytes Content-Length: 1724917 Connection: close Content-Type: text/plain FF - Fails Server 2 http://www.multimedia247.net/mp3test/volaunch2.html The mp3 http://tinyurl.com/44ptd is sent with these headers (note: audio/mpeg, which is more correct) HTTP/1.1 200 OK Date: Thu, 10 Mar 2005 01:04:06 GMT Server: Apache Last-Modified: Wed, 09 Mar 2005 22:53:33 GMT ETag: 57c00d-1a51f5-422f7e6d Accept-Ranges: bytes Content-Length: 1724917 Connection: close Content-Type: audio/mpeg Soget hamsterballstudios.com to return the correct content-type (audio/x-mp3), and then work on the html. This HTML works in Firefox and IE for me, http://www.multimedia247.net/mp3test/volaunch3.html , but fails validation. Get your html to validate - that's half of the problem (well that and the mime headers which have mysteriously reappeared). To get Firefox compatibility there's no need for the older embed tag, provided your object tags are good (previously posted example code works, as do many others). 1. fix your http headers 2. then fix your html .Matthew Cruickshank http://holloway.co.nz/ ** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list getting help **
Re: [WSG] Re: Object Mp3 into FF
Helmut Granda wrote: So to recap. 1. headers in multimedia247.net are set up properly 2. headers in hamsterballstudios.com are not set up correctly 3. code does not validate - solution 1. fix the headers in hamsterballstudios.com 2. fix HTML So my fears that the server in hamsterballstudios.com is not set up correctly which is the clients server. Yeah, that's right. As hamsterballstudios.com is sending it as "text/plain" Firefox will pass it to the plugin for "text/plain" rather than the plugin for "audio/x-mp3" or "audio/mpeg". As Firefox can't handle a plugin of "text/plain" nothing will happen. You can see how your Firefox is configured for plugins by typing "about:plugins" into your Firefox address bar -- this will tell you what's installed. But yeah, you need to fix the headers on the server to get Firefox to work. Fixing the headers can be done at the webserver level, or - if you've got PHP installed - you could do something like, ?php $pathToFile = "path"; header ("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header ("Content-Type: audio/x-mp3"); header ("Content-Length: " . filesize($pathToFile)); header ("Content-Disposition: attachment; filename=$pathToFile"); readfile($pathToFile); ? (If you use this, make sure there's no whitespace on either side of the ?php ... ? As for step 2, This HTML works for me on a server that responds to mp3 files with "audio/x-mp3" object type="audio/wav" data="" param name="filename" value="audio/s001.mp3"/ /object ps. the reason why IE works is that it ignores the mime-type, and follows this logic, If the server returns a content-type, IE will remember that. However, IE also runs the beginning of the stream through a 'buffer check' to verify whether the data actually looks like the content-type being passed to it. If IE thinks the content-type is invalid, it'll just ignore it and do whatever else it can to parse the data, including falling back on the extension of the URL given. -- http://msdn.microsoft.com/workshop/networking/moniker/overview/appendix_a.asp .Matthew Cruickshank http://holloway.co.nz/