|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
||||
|
||||
|
<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 |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
||||
|
||||
|
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 |
|
#4
|
||||
|
||||
|
Try using document.getElementById('Player') instead of document.Player
It's the proper DOM way to do it. |
|
#5
|
||||
|
||||
|
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 |
|
#6
|
||||
|
||||
|
First, allow me to point out:
Quote:
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) |
|
#7
|
||||
|
||||
|
alright thanks man for searching for this code, your a real help, lol, thanks!!!!
![]() +1 on your rep... colton22 |
|
#8
|
||||
|
||||
|
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 |
|
#9
|
||||
|
||||
|
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 ) |
|
#10
|
||||
|
||||
|
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 |
|
#11
|
||||
|
||||
|
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?)
|
|
#12
|
||||
|
||||
|
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 |
|
#13
|
||||
|
||||
|
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 |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > <OBJECT> In NN, FF, exc. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|