Quicktime And JS - What Am I Missing?
Jun 20, 2007I created the simplest embed QT movie page, and for starters, want to
get the version. An HREF event works fine, but otherwise I get a
fabulous "Unspecified error". I'm using MSIE6 WinXP SP2.
I created the simplest embed QT movie page, and for starters, want to
get the version. An HREF event works fine, but otherwise I get a
fabulous "Unspecified error". I'm using MSIE6 WinXP SP2.
is it possible to hide qtvr <object...> (or even change its size to 1 pixel rectangle)?
I need to hide qtvr from the page dynamically, if .mov source is empty.
For example:
I have a webpage with thumbnail images that I want to be able to click on to play associated Quicktime movie files in either IE or Netscape. I'm having difficulty finding any HTML or Javascript code for doing this, and was wondering if this is not an easy thing to do. Is there
some special code needed for detecting Netscape Quicktime plugins, and what about IE?
I do a lot of php and need now a bit of javascript to control a narration on a website which is run as an mp3 thru the quicktime plug-in. The plug-in is working fine and I've written javascript to pause and play the narration through the pages own button.
The next task was to get it to move to the next slide after the narration has finished, so I decided to do a javascript re-direct after the time returned by the int GetDuration() command which the apple site says returns the length of the movie. Code:
I'm trying to use the QT_WriteOBJECT function script as recommended by Apple, but I'm having no luck in getting my .mov file to show up. My popup html file appears, but with no movie. Here is the Apple site where I've found the technique:
http://developer.apple.com/internet/ieembedprep.html
I'm using the AC_QuickTime.js file.
Here is the code that rests within the head section:
<script src="[path]/AC_QuickTime.js" language="JavaScript" type="text/javascript"></script>
Here is my code that sits on my quicktime movie page: Code:
Purpose: To create a page that plays different movies depending on which link the user clicks on. Only one player is displayed to play all the movies. Right now the links are text for my convenience but eventually they'll be images.
Problem: I can't get the player to change to the second movie. I'm doing this in JavaScript. Here I'm showing it to you as inline script, but it doesn't work as a function call either.
Question: How do I get this page to change the movie in the player based on the user's click?
I've tried this 2 different ways: creating the playing with manual code and creating it with an Apple-supplied function call.
This is how I create the player manually:
HTML Code:
<object CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab" WIDTH="640" HEIGHT="370" id="movie1">
<PARAM NAME="src" VALUE="video/movie1.mp4" />
[Code]....
When I create the player using the Apple supplied function, I get no error message and it also doesn't change the movie. The existing movie just keeps playing. I created a bunch of other links to do things like stop the movie, start the movie, rewind the movie, and retrieve the movie URL, and these work in IE for the manual coding but not for the Apple supplied function call. I also tested both versions on the other 4 major browsers. None of them change the movie either, but for the Apple supplied function they will all start the movie, stop the movie and rewind the movie from JavaScript. I can give you that information as well.
I'm running my web page on IE8+9 with Windows Home via Boot Camp.
My JS code is:
if (QuicktimeIsPresent)
{
var song = PlaySong('200', '50', '#9cceff', 'false', 'false', 'tunes/taps.mov')
document.write (song)
}
The JS code for PlaySong is:
function PlaySong(width, height, bgcolor, autostart, loop, songloc)
{
var play = ''
[code]....
For IE8+9, the quicktime crescendo/midi control shows .. but when I click the play button on it, it almost immediately stops.Other Windows browsers(Firefox and Safari and IE 7) play just fine, together with all Macintosh browsers.
I'm trying to change src of quicktime embedded object with javascript:
<html><body>
<script language="JavaScript">
function Exchange()
{
document.qtvr.src = "sample2.pano";
document.embeds["mov"].src = "sample2.mov";
}
</script>
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
width="600" height="400"
codebase="http://www.apple.com/qtactivex/qtplugin.cab" id="qtvr">
<param name="autoplay" value="true">
<param name="controller" value="true">
<param name="pluginspage"
value="http://www.apple.com/quicktime/download/indext.html">
<param name="target" value="myself">
<param name="type" value="video/quicktime">
<param name="src" value="sample1.pano">
<embed src="sample1.mov" width="600" height="400" autoplay="true"
controller="true" border="0"
pluginspage="http://www.apple.com/quicktime/download/indext.html"
target="myself" type="video/quicktime" name="mov"></embed>
</object>
<a href="#" onclick="javascript:Exchange()">exchange</a>
</body></html>
but IE said that "document.embeds.mov.src is not object", and image
isn't changed ( IE,Mozilla) when user click on the link "exchange".
What is wrong, how to do this correctly?
I'm looking for a jquery plugin (or vanilla method) for detecting quicktime, so I can decide whether to embed a QT movie or not. Did some googling, but most of the methods seems really old and I didn't see any jQuery plugins dedicated to detection.
View 1 Replies View RelatedI'm attempting to dynamically create a QuickTime embedded movie. I'm including the AC_Quicktime.js script which contains methods for creating the embedded movie easily and putting it into an existing DIV. This is working correctly, however the movie will not load. Here's the code that I'm using.
Code:
function loadMovie() {
var objectTxt = QT_GenerateOBJECTText_XHTML('poster.jpg', '100%', '100%','','controller','true','autoplay','true','showlogo','true','moviename','stream', 'obj#ID', 'stream', 'cache','false','href','rtsp://192.168.20.105:554
[Code]....
My code tests for existence of Quicktime plugin.If the plugin is installed. A sample .mov should play but does not.The <h2> header does appear on screen, nothing else, no errors.
View 1 Replies View RelatedBasically does anybody know what the answer is for when you visit a web site
(more so with IE 6 and WinXP) and some of the pics (gifs/jpgs) don't appear.
Instead the white box with the red cross takes it's place until you
right-click on the pic and select Show Pictures.
Once you do this the pictures show up for the remainder of the session.
It appears to be pics that are repeated such as thumbnails for nav link
lists and I just can't seem to fix it with HTML code. It seems to be a
browser issue, as the pics intermittantly load or don't load (until you
click Show Pictures from the floating menu).
I have a very simple javascript codes with a following lines inside:
............................
var str = "";
.. . . . . . . . . .
str = String(new Date()); // #1
str += fobj.elements[i].name + "=" + fobj.elements[i].value +
"&"; // #2
str += fobj.elements[i].name + "=" +
encodeURIComponent(fobj.elements[i].value) + "&"; // #3
str = 'Test' // #4
............................
1) If I commented out the line #3 everything works OK.
2) If I leave this line in my script, lines #1 and #2 have no
problems, but the line #3 failed (without any trace) and I never reach
the line #4.
It seems the global function "encodeURIComponent()" is missing (by the
way, the global functions "String()" and "Date()" are not missing and
they returns a correct value).
How I can fix this problem?
The script below allows me to link to a file and as the user clicks to
download, the 'File Download' windows appears as normal, and the user can
download...
The original page is then redirected to a new page..
This works, but it also opens a blank page..
How can this be chaged to stop the blank page from opening... ?
<script type="text/javascript">
function functionname(thefile){
document.location.href="somepage.html"
newwindow = window.open(thefile)
newwindow.close
}
</script>
<a href="#" onclick="functionname('filename.zip')">wqe</a>
This code is from a No Redirect Bookmarklet used with Firefox.The code works great as a bookmarklet but fails when used in a button code like this:loadURI("Bookmarklet Code Here");When I evaluate it using JavaScript Command I getan error popup window stating "SyntaxError: missing variable name"I assume it is caused by this part:vark,x,t,i,j,p;How can I eliminate the error?No Redirect Bookmarklet Code:
javascript:(function(){var%20k,x,t,i,j,p;%20for(k=0;x=document.links[k];k++){t=x.href.replace(/[%]3A/ig,':').replace(/[%]2f/ig,'/');i=t.lastIndexOf('http');if(i>0){%20t=t.substring(i);%20j=t.indexOf('&');%20if(j>0)t=t.substring(0,j);%20p=/https?://[^s]*
[code]....
i tried coding a different login page but it didnt work and it was very messy so i am making another one the problem is when the incorrect user or password is inserted it is supposed to display an error message saying "wrong username and password" when instead it just gives me a blank page any ideas on why my error message wont show?? my code is
<?php
$username = '$_post["username"]';
$password = '$post["password"]';
[code].....
find this error please
$(function() {
$(".clickcal2").editable("ajax.php", {
indicator : "<img src='../images/indicator.gif'>",
[code]...
I am getting a missing variable name error in this line, can someone help me figure what is wrong with it?
Code JavaScript:
var button_remover = '<input type="button" value="X" class="field_remove" onclick="remove_field(' + field_name, + 'this)" /><br/>';
I have added an image rotator to my website using Java Script.The box for the rotator shows up on the published site but not the pictures.When I click on the box it links to the pictures I have added, and I know they are rotating because it changes every time I click on it.Also, the code does not seem to be showing up when I view the source of the page.
View 6 Replies View RelatedI am new to java, I am having trouble on outputting the num2 on the screen. I could not see any errors indicated the problem on the program(Eclipse). However, the program just miss scan the num2. I was trying to sort the number and output them from smallest to largest.
[Code]...
I was just told that one of the four navigation buttons on our site (www dot improper dot com) is not showing up for people here at my office (who are all on Windows XP + Firefox 3.07).
[Code]...
I've ammended my code now so that I'm using objects, constructors and prototypes.
If I use the standard constructor.prototype.functionname = (){......} type of setup it works okay.
However I'm now experimenting with overwriting the prototype with a literal. As in the code below. i.e. constructor.prototype = {functionname : function() .......
Doing it this way my first new object instance fails. The subsequent new objects are fine.
I ran a check on the properties of the 1st object with '!hasOwnProperty and name in' and the result is that the prototype (or pointer to a prototype) is missing.
So the first new object of FontTrans (oH) has
Code:
1 property is Heading
.
.
9 property is Delay
[Code].....
Don Gosselin's JavaScript Fourth Edition is a tiresome read and I have been unable to put together the necessary tools that Don teaches to find the answers that I want to make the following function work.
function calculate()
var shipping = 0;
var total = 0; {
if (document.forms[0].hand_tool.value != document.forms[0].hand_tool.value == true)
(document.forms[0]item1.value == 20); {
[Code]...
I'm getting error missing ) after argument list from the below code, let me know what is wrong with the below code:
View 9 Replies View Relatedthis.delete = function(obj){
..
Is that it ? I can't have delete ? Or can this be written in some other way, including delete ?
I have tried this using both frames and window.open(). In either case, if the new content comes from a different site than the original (or comes from a site and original is a local file) the document object is inaccessible. The new window object seems to have no document and no all[] or just about anything else useful. If the new content came from the same site (or local computer) as the original, everything seems to be where it belongs. I have looked all over and can find no references to this problem. Is this some security issue that everybody but me knows about?
I am seeing this on IE 6.0.2800.1106. The files are created in notepad
so there should be no surprises there.
--
spc