|
Hi,
when I embed the Windows Media Player in the following way (sorry for the wrapped lines...), the indicated file always starts automatically, although the default value of the parameter autostart is false. It doesn't help neither, when I'm setting the autostart parameter explicitlay to false:
<object width="240" height="62" id="MediaPlayer" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab##Version=6,4,5,715" type="application/x-oleobject">
<embed id="nsmedia" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" filename="Stdtstr01.mp3" name="MediaPlayer" uimode="mini" width="240" height="62" />
Does anybody know how to disable the autostart function here?
Wolfgang (Berlin, Germany)
|
|
|
|
|
I use
<embed filename="your_file" width="240" height="62" autostart="true" autoplay="true" />
|
|
|
|
|
Hmm, doesn't work on my side. No matter which values I'm assigning to the autostart and autoplay parameter, the player always starts automatically. Doesn't it do so on your side?
Wolfgang
|
|
|
|
|
Is true, not work with your code, but if you write this only (inside body), work!
<embed id="nsmedia" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"
filename="your_file" name="MediaPlayer" uimode="mini" width="240" height="62" autostart="true" autoplay="true" />
I try this with a avi file and run, i quit autostart and autoplay and run (i don't know ), sample
<embed id="nsmedia" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"
filename="myfile.avi" name="MediaPlayer" uimode="mini" width="240" height="62" autostart="true" autoplay="true" />
|
|
|
|
|
Seems a bit crazy, but when I'm trying exactly your example:
<embed id="nsmedia" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" filename="MyFile.mp3" uimode="mini" width="240" height="62" autostart="true" autoplay="true" />
it keeps autoplaying / autostarting as ever! Did you try it also with a mp3 file?
Thanks for your efforts...
Wolfgang
|
|
|
|
|
Hi!
Before, excuse to me, but i was a few busy in my work.
Yes, i do, i was use the same code to play mp3 in a web document.
<embed id="nsmedia" type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"
filename="C:\Documents and Settings\PEISA 009\Mis documentos\Mi música\ERA 2\Divano.mp3"
name="MediaPlayer" uimode="mini" width="240" height="62" autostart="true" autoplay="true" />
this code start media player plugin and play de music.
|
|
|
|
|
Hi Manuel,
well, your code works, but on my side the player starts automatically. How do I switch off this feature? I just want to enable the user to start the player manually.
Greetings from Germany,
Wolfgang
|
|
|
|
|
sorry for not response very much speed, well, i only change autostart and autoplay attributes to false and the mp3 file load in stop action, sample.
<embed id="nsmedia" type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"
filename="C:\Documents and Settings\PEISA 009\Mis documentos\Mi música\ERA 2\Divano.mp3"
name="MediaPlayer" uimode="mini" width="240" height="62" autostart="false" autoplay="false" />
|
|
|
|
|
This is my situation.
I sit at computer A.
Friend sits at computer B.
My computer A does not have conenction to the internet.
Friend's computer B has connection to the internet.
Both are connected to each other through LAN.
Friend's computer B has apache installed on it.
How can my computer A get to access the internet via Friend's computer B?
(I guess this is what we call setting up a proxy)
ASP - AJAX is SEXY. PERIOD.
|
|
|
|
|
If you're using a suitable operating system, you could always enable internet sharing. See here[^] for guidance.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Why not plug the modem into the router?
Brad
Australian
- Bradml on "The ADOTD"
Hey all, did you just use/read an acronym? Pots it HERE, at the ADOTD[^]
|
|
|
|
|
Actually, this is in a company with a restricted environment.
The only thing I can do is somehow instruct Apache on my friend's comp to accept my requests and fecth me the pages from the friend's comp itself.
Any idea on how this can be done?
ASP - AJAX is SEXY. PERIOD.
|
|
|
|
|
Luckily i have a very easy solution for you:
PHProxy[^]
Install that on your mates machine (using PHP of course) and you are done.
One other solution is CGIproxy, but you will need to look for the location. It is much faster but not as customizable and easy to use.
Brad
Australian
- Bradml on "MVP Status"
If this was posted in a programming board please rate my answer
|
|
|
|
|
is it possible to screen scrape websites using cookies? if so please help me doing that? how to know what the cookie values are and how to append them in the url?
|
|
|
|
|
No thank goodness. This would be the holy grail for Spyware authors.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
There are some who call me... Timm?
http://curl.haxx.se/
|
|
|
|
|
I'm looking for insite into why IE works and Firefox doesn't
with my very simple test web page.
I have two frames. The onload event in Frame A calls a javascript
function in Frame B. That call works fine in both browsers. The
javascript function in Frame B is supposed to update a text box in
Frame B. This part fails when using Firefox. Which doesn't make
sense to me, because both the js function and the text box are in
the same html file and same frame.
The call from Frame A (which works on both browsers) is:
function myfunc() {
parent.frameB.testText();
}
In frame B, the called function is:
var i = 1;
function testText() {
i += 1;
parent.frameB.testform.textbox.value = i;
}
The error is "parent.frameB.testform has no properties"
Removing the "parent.frameB" prefix and just using
"testform.testbox.value" also works in IE but not in Firefox.
But the error message changes to "ReferenceError: testform
not defined."
I've also tried the following without sucess:
top.frameB.testform.textbox.value = i
document.parent.frameB.testform.textbox.value = i
document.top.frameB.testform.textbox.value = i
Any ideas on what I'm doing wrong?
|
|
|
|
|
Try: parent.document.getElementById("frameB").document.getElementById("textbox").value
Or even just: getElementById("textbox").value
Edit: Ok, it's been a while since i've used frames. That probably won't work, at least not without other changes. Try: parent.frames["frameB"].document.getElementById("textbox").value Last modified: 14mins after originally posted -- caveat
----
It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.
--Raymond Chen on MSDN
|
|
|
|
|
Neither one works.
Using getElementById("textbox").value I get error message:
ReferenceError: getElementId is not defined.
Using parent.document.getElementById("frameB").document.getElementById("textbox").value
I get error: TypeError: parent.document.getElementById("frameB") has no properties.
|
|
|
|
|
SeeCwriter wrote: ReferenceError: getElementId is not defined.
Missing a "By" in there?
----
It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.
--Raymond Chen on MSDN
|
|
|
|
|
That was a typo in my post. The code was correct.
But adding the prefix "document" makes it work.
document.getElementById("textbox").value = i; // WORKS!
Thanks!
|
|
|
|
|
Either of these should work:
document.testform.textbox.value = i;<br />
document.forms['testform'].textbox.value = i;<br />
document.getElementById('textbox').value = i;<br />
document.getElementById('testform').textbox.value = i;
Make sure that you get the case right. Javscript is case sensetive, so TextBox and textbox are not the same.
---
single minded; short sighted; long gone;
|
|
|
|
|
You're right! Thanks for the help.
Getting "document" in the place was the key.
|
|
|
|
|
A follow up question if I may. I notice that you put the strings in single-quotes. It works with either single or double quotes. Is there a reason to use one form over the other?
|
|
|
|
|
If you write code inside an html tag, it's easier to use apostrophes than quotes.
Compare this:
<input type="button" onclick="alert('Hello world.');">
To this:
<input type="button" onclick="alert("Hello world." );">
---
single minded; short sighted; long gone;
|
|
|
|