tag embed doesn't work with javascript when I use the properties .src and .play

RESOLVED INCOMPLETE

Status

()

Core
Plug-ins
RESOLVED INCOMPLETE
12 years ago
a year ago

People

(Reporter: mega69, Unassigned)

Tracking

1.8 Branch
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

12 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4

This happens with javascript when I try to change the music.
Example: if I write a function that catch the value of a select (form) for change the property src of embed, it doesn't work.
This work with IE, but only with bgsound instead of embed
I tried also in another way: I wrote several functions that changed the innerHTML of a div, with a new tag embed for each... This work, but only for a little seconds: in a few moments, the music stop(!) and mozilla ask to me to install a plugin that doesn't exist...  

Reproducible: Always

Steps to Reproduce:
1.function music(any) { document.getElementById("myembed").src=any[any.selectedIndex].value; }
2.<form><select onChange="music(this);">
<option value="music1.mp3">1st music</option>
<option value="music2.mp3">2st music</option>
</select>
</form>
3.<embed src="#" autoplay="true" hidden="true" />

Actual Results:  
Nothing.
With inner HTML the music stops in a few seconds...

Expected Results:  
The music should change when I select an option.

My extensions:
Google preview
Ie tab 
Greasemonkey
Customize Google
FirefoxMenuButtons
DownThemAll
Image Zoom
IE view 
Tab Mix Plus

My theme:
Orbit Yellow 2006
(Reporter)

Comment 1

12 years ago
Sorry, I wrote any[any.selectedIndex].value instead of any.options[any.selectedIndex].value
However, it's the same...
it doesn't work.
Component: Plugin Finder Service → Plug-ins
Product: Firefox → Core
QA Contact: plugin.finder → plugins
Version: unspecified → 1.8 Branch

Comment 2

9 years ago
Well, 3 years after this note the problem is still not fixed. 

This code...

<input type="button" value="Spiel" onClick="document.getElementById('ersteaud').play();" ondblclick="document.getElementById('ersteaud').stop();">

<embed type="audio" id="ersteaud" autostart="false" loop="false" src="1.mp3" hidden="true"></embed>

... works fine with IE (!) but there's hardly andy reaction in FF. I would be thankfull if a FF-employee set the status to CONFIRMED and help solving this problem

Comment 3

a year ago
Resolving old bugs which are likely not relevant any more, since NPAPI plugins are deprecated.
Status: UNCONFIRMED → RESOLVED
Last Resolved: a year ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.