JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old September 6th, 2006, 06:04 PM
colton22's Avatar
colton22 colton22 is offline
\ ^_^ / - *Local Friend*
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Location: near chicago, Illinois
Posts: 469 colton22 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 1 h 36 m 37 sec
Reputation Power: 12
Send a message via AIM to colton22 Send a message via MSN to colton22 Send a message via Yahoo to colton22
<OBJECT> In NN, FF, exc.

How Can I Get NN, FF, and others to compile the <OBJECT> Tag?

what i need it for is so i can play music in the other browsers, the main thing i need to do is change the music file after it has been created.

i currently do this by object.filename=""; and need to do the equivlent in other browsers as obeously shown in my website.

does anyone know how to accomplish this task??


colton22

Reply With Quote
  #2  
Old September 7th, 2006, 08:58 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,886 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 19 m 35 sec
Reputation Power: 18
What does your object tag look like?
Are you using an APPLET or osmething?

I'm nervously refraining from my rant against HTML multimedia on websites... but I'll hold back
__________________
Daryl's Homepage | My Blogroll | My Profile | Firefox supporter!
DevArticles Forum Moderator

"The net is a waste of time, and that's exactly what's right about it." -- William Gibson

Reply With Quote
  #3  
Old September 7th, 2006, 06:26 PM
colton22's Avatar
colton22 colton22 is offline
\ ^_^ / - *Local Friend*
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Location: near chicago, Illinois
Posts: 469 colton22 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 1 h 36 m 37 sec
Reputation Power: 12
Send a message via AIM to colton22 Send a message via MSN to colton22 Send a message via Yahoo to colton22
well, what my object tag is, is the following...

<OBJECT NAME='Player' ID='Player' CLASSID='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95'></OBJECT>

i access it though...

document.Player.filename="newfile.mp3";
document.Player.play();


colton22

Reply With Quote
  #4  
Old September 8th, 2006, 09:28 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,886 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 19 m 35 sec
Reputation Power: 18
Try using document.getElementById('Player') instead of document.Player
It's the proper DOM way to do it.

Reply With Quote
  #5  
Old September 8th, 2006, 06:04 PM
colton22's Avatar
colton22 colton22 is offline
\ ^_^ / - *Local Friend*
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Location: near chicago, Illinois
Posts: 469 colton22 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 1 h 36 m 37 sec
Reputation Power: 12
Send a message via AIM to colton22 Send a message via MSN to colton22 Send a message via Yahoo to colton22
my NN will not build the object at all, there is no error as far as i know about it, here is my code...
Code:
<html>
<body>
<OBJECT NAME='Player' WIDTH="300" HEIGHT="300" ID='Player' CLASSID='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95'></OBJECT>
<SCRIPT>
window.document.getElementById('Player').filename=  "play.mp3";
window.document.getElementById('Player').play();
</SCRIPT>
</body>
</html>


colton22

Reply With Quote
  #6  
Old September 11th, 2006, 10:25 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,886 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 19 m 35 sec
Reputation Power: 18
First, allow me to point out:
Quote:
According to the survey page What we really hate on the web, 41.9% of survey respondents will avoid sites that automatically play music; 71.1% strongly dislike sites that automatically play music.
Why Playing Music on your Web Site is a Bad Idea by A. Gulez


Try this (using quicktime plugin):
Code:
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
        codebase="http://www.apple.com/qtactivex/qtplugin.cab"
        width="200" height="16">
  <param name="src" value="audio.mp3" />
  <param name="autoplay" value="true" />
  <param name="pluginspage" value="http://www.apple.com/quicktime/download/" />
  <param name="controller" value="true" />
  <!--[if !IE]> <-->
    <object data="audio.mp3" width="200" height="16" type="video/quicktime">
      <param name="pluginurl" value="http://www.apple.com/quicktime/download/" />
      <param name="controller" value="true" />
    </object>
  <!--> <![endif]-->
</object>


Try this (using Windows Media plugin):
Code:
<object type="video/x-ms-wmv" 
  data="http://www.sarahsnotecards.com/catalunyalive/ 
fishstore.wmv" 
  width="320" height="260">
  <param name="src" 
    value="http://www.sarahsnotecards.com/catalunyalive/ 
fishstore.wmv" />
  <param name="autostart" value="true" />
  <param name="controller" value="true" />
</object>


I stole these examples from:
http://wiki.dreamhost.com/index.php/Object_Embedding (quicktime)
http://www.alistapart.com/articles/byebyeembed (windowsmedia)
Comments on this post
colton22 agrees: thanks man!

Reply With Quote
  #7  
Old September 11th, 2006, 04:27 PM
colton22's Avatar
colton22 colton22 is offline
\ ^_^ / - *Local Friend*
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Location: near chicago, Illinois
Posts: 469 colton22 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 1 h 36 m 37 sec
Reputation Power: 12
Send a message via AIM to colton22 Send a message via MSN to colton22 Send a message via Yahoo to colton22
alright thanks man for searching for this code, your a real help, lol, thanks!!!!



+1 on your rep...

colton22

Reply With Quote
  #8  
Old September 12th, 2006, 05:14 PM
colton22's Avatar
colton22 colton22 is offline
\ ^_^ / - *Local Friend*
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Location: near chicago, Illinois
Posts: 469 colton22 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 1 h 36 m 37 sec
Reputation Power: 12
Send a message via AIM to colton22 Send a message via MSN to colton22 Send a message via Yahoo to colton22
hey one more thing, are there any other players other than quicktime and wmp ? the reason why i am asking is because my netscape needs plugins for both and wmp plugin is not avalible.

colton22

Reply With Quote
  #9  
Old September 13th, 2006, 09:19 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,886 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 19 m 35 sec
Reputation Power: 18
I'm sure there's open source players and plugins. I've had a few installed on Linux, but i'm not sure if they're Windows compatable.. On Linux I used the Mplayer browser plugin... but a quick Google search didn't seem to return any results for Windows.

A greater question is why Netscape? Honestly, I don't think it has much market share anymore. (I have proof with my company's website logs )

Reply With Quote
  #10  
Old September 18th, 2006, 04:37 PM
colton22's Avatar
colton22 colton22 is offline
\ ^_^ / - *Local Friend*
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Location: near chicago, Illinois
Posts: 469 colton22 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 1 h 36 m 37 sec
Reputation Power: 12
Send a message via AIM to colton22 Send a message via MSN to colton22 Send a message via Yahoo to colton22
ok another problem with this...

with the plugins needed in firefox i cant expect that player to be universal between browsers, is there any player i can?? i dont know actionscript 2.0 or 1.0 so i cant use an swf file to make the sound as they select it, i need some kind of player that can be used in any browser.

any sugestions??

colton22

Reply With Quote
  #11  
Old September 19th, 2006, 10:08 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,886 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 19 m 35 sec
Reputation Power: 18
As you've already deduced, Flash might be your best answer... however, I wouldn't worry too much what the client has... if they don't want to watch your videos, that's their problem. Quicktime and Windows Media are by far the most popular players around... RealMedia perhaps coming in second (uh, third?)

Reply With Quote
  #12  
Old September 20th, 2006, 03:56 PM
colton22's Avatar
colton22 colton22 is offline
\ ^_^ / - *Local Friend*
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Location: near chicago, Illinois
Posts: 469 colton22 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 1 h 36 m 37 sec
Reputation Power: 12
Send a message via AIM to colton22 Send a message via MSN to colton22 Send a message via Yahoo to colton22
yea, i was thinking about flash, but i dont know anything with flash, what i ultimatly need is a swf file to import one paremeter which name is like musicsrc, and then the flash file access it, and play the song off that src.

im not sure how this would work though, but it beats making a seperate flash file for each song!!! lol

if anyone could make this kind of thing that would be awsome.

thanks

colton22

Reply With Quote
  #13  
Old September 25th, 2006, 06:33 PM
colton22's Avatar
colton22 colton22 is offline
\ ^_^ / - *Local Friend*
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Location: near chicago, Illinois
Posts: 469 colton22 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 1 h 36 m 37 sec
Reputation Power: 12
Send a message via AIM to colton22 Send a message via MSN to colton22 Send a message via Yahoo to colton22
posting for swf help...

if anyone can create a swf file that will use a parameter named musicsrc and extract the value, which will be a http:// src and play that http:// file, (will be mp3) this would be very very appreciated.

i know i am asking for a lot here but i know i can be done with actionscript, i don't know actionscript.

thanks in advance to anyone who attempts this task,

colton22

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > <OBJECT> In NN, FF, exc.


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap