KA-CHING!
We got it. The try/catch was the last idea we needed. Here is the relevant code:
<script language ="JavaScript">
<!--
function TryPlay ()
{
var erroredout = false;
try {
MuteMe(document.movie1);
PlayIt(document.movie1);
MuteMe(document.movie2)...
True; I saw that doc and messed about with this idea a bit. It seemed to me that these calls were parallel to the SetMute call and would therefore fail in the same way if the object were in the same condition.
In other words, if instead of asking the object to mute, I asked it if it were ready...
Yeah, thanks for the suggestion but tried that too... it doesn't throw an error or anything, but doesn't mute the movies either.
Sorry stormbind, I don't have a new laptop for you. But anyway I put up that experiment also, just on principle...
http://www.bangstart.com/test/movies/testmovies4.php
Yes, I tried onLoad on the body. No, it didn't work.
I just tried it again to be certain. It actually seems to work on occasion, but usually I get unidentified error on line 30, which is the line with the object reference.
Try it:
http://www.bangstart.com/test/movies/testmovies3.php
That's exactly the problem. I don't know when "once the movie has loaded" is. I have tried onLoad on the object, the embed, and the page, and even when they fire, the call doesn't work.
It begins working at some point, as the user can click on the links and they always work. And of course the...
My Goal: Start a quicktime movie embedded on a page, but with the sound muted.
The Problem: Can mute sound under user action, but not automatically. Whenever I try to use the SetMute(), I get unidentified errors (which I take to mean that the object is not in a full state of existence, or...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.