Can't Change QuickTime Movie

Nov 25, 2010

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.

View 2 Replies


ADVERTISEMENT

Howto Change Quicktime Src With Javascript?

Dec 27, 2005

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?

View 15 Replies View Related

How To Dynamically Change A Flash Movie?

Jul 20, 2005

I want to dynamically change a flash movie in an html page. Following
code is working fine in IE, but netscape 4 and 6 it is not working.
Can any one rectify the error:

View 2 Replies View Related

Preloading A Movie While Playing Another Movie

Oct 11, 2005

I have several movie clips and would wish to play them in sequence.
There is possible to use the SetQTNEXTUrl property for the quicktime
plugin, but it creates a black gap between the clips.

Is it possible to use to player objects and swap between them. So that
I hide one player and reveal another when one clip stops?

View 3 Replies View Related

Quicktime And JS - What Am I Missing?

Jun 20, 2007

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.

View 1 Replies View Related

How To Hide QuickTime Object?

Dec 30, 2005

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:

View 6 Replies View Related

Playing Quicktime Movies

Jul 20, 2005

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?

View 1 Replies View Related

Javascript & Quicktime Problem

Dec 28, 2005

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:

View 1 Replies View Related

Quicktime QT_WriteOBJECT Problem

May 7, 2006

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:

View 2 Replies View Related

Getting Quicktime Plugin To Work With IE 8?

Oct 24, 2010

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.

View 1 Replies View Related

JQuery :: Looking For Plugin To Detect Quicktime?

Apr 26, 2009

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 Related

Dynamically Create Quicktime Video?

Apr 29, 2009

I'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]....

View 1 Replies View Related

Test For Quicktime Plugin Launch .mov

Jun 13, 2008

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 Related

Pop Up Flash Movie

Apr 18, 2006

I have a pop-up flash movie, it works great. Here is the code :

<SCRIPT LANGUAGE="JavaScript">

function jumpUp(URL) {
window.open(URL,
"w"+(new Date()).getTime(),
"width=194,height=146,top=440,top=288");
}

</script>

AND

<a href="javascript: jumpUp('webmovies/flash.swf')">preview</a>

What I am finding out is that is opens a new window, which is great,
but it loops - now I converted the video in Flash MX, but it doesn't
allow me to change the loop properties of the flash video, only the
HTML properties. Is there a quick fix for this using this javascript?

View 1 Replies View Related

WMP Advert/clip Before Movie

Jun 30, 2007

I have a query to do with windows media player. I am not sure whether what I want is done using JavaScript, but it is my best guess.

Basically, I was wondering how some websites have an advert clip or there logo appear before the actual video. The advert runs then it seems the player loads another movie.

View 3 Replies View Related

JS Flash Movie Not Playing?

Feb 11, 2009

I have a website that I just inserted a flash JS movie into... The site looks fine, and it even says that the movie is loading, but after that... NOTHING... I tried removing the <noscript> tags, but nothing seems to be working.

View 15 Replies View Related

Play Movie Online

Dec 20, 2006

I have a video file which I wanna show at my site. Please help me out how can I show running video? I dont know if it is a right place.

View 2 Replies View Related

How To Run Multiple Movie Clips Continously

Jul 20, 2005

i have 4 movie clips. i am able to run the first clip with autostart a
soon as the webpage opens. i am running the movie clips under window
media player.

Question 1:i want to run all the movie clips continously one afte
another.

Question 2: how to stop clip1 and run clip3(user selection).
the movie should run under the same media player, on the same page.

i am using the following code:

View 1 Replies View Related

Random Movie Display Script?

Oct 5, 2009

I have a Javascript which I'm using to display one of four Flash SWF files randomly. These need to be actually displayed twice, so I'm basically calling the script twice.This works great aside from one thing- occasionally the same movie appears in both scripts, for example the first instance picks movie 3 of 4 and th second instance does the same.What I need is to somehow make sure that if the first instance of the script picks movie x then the second script will pick any movie EXCEPT movie x.

This is the script as it stands:

<script language="JavaScript">
// Generate a Random Number
var randomnumber = Math.round(Math.random()*3);

[code].....

View 4 Replies View Related

How To Call Javascript When Movie Is Finished?

Jun 12, 2002

I have the following windows media player object integrated in a page. How to call a javascript action when the movie is finished?

View 2 Replies View Related

Reload A Flash Movie With Script?

May 24, 2006

I would like to know how do I reload a flash movie. But it is not simply rewind, it is to change the swf file and the browser refresh the movie and play it.

Here is the code that I am using to play the first flash movie code...

What I want is to change the "tvscreen.swf" to "newtvscreen.swf" and play it.

I managed to change the src in embed tag, but the flashmovie did not load.

View 4 Replies View Related

How To Start Flash Movie In Html

May 11, 2011

how to insert a flash movie in my web page and a button to start it. I designed this page:

HTML Code:
http://irancad.com/sampasd/news/newsedit.aspx?ID=290
and the html code is:

[code]....

View 13 Replies View Related

Detecting If Flash Movie Playing Or Has Stopped..

Jul 23, 2005

pls how do I detect if .swf movie is playing or has stopped? .swf is in
a pop-up, I would like to trigger a window.close() once Flash movie has
stopped playing..

View 2 Replies View Related

Write Script That Will Display A Flash Movie?

Dec 5, 2009

I must admit that I'm a newbie in writing javascript.

Can anyone help me with a script that will enable me to display a flash movie on one of my sites.

View 4 Replies View Related

When Click On Movies Below It Should Load Movie To Player

Jan 1, 2011

I have this script:URL...that takes latest movies from youtube channel.When you click on the movies below it should load the movie to the playerit works well on Firefox but not on IE or Google Chrome

View 1 Replies View Related

Flash Movie Transparently Over My Existing HTML Page

Jul 23, 2005

This is what I'm trying to do. I'm trying to load a flash movie
transparently over my existing html page (not covering the full
screen, but 75% of it), so it is kind of similar to a "splash screen"
in the respect it is to be an introductory screen.

I already have a flash movie made (although for some reason
WMODE=TRANSPARENT isn't working), but we'll get to that in a sec. I
also already have all the html for the playing the movie and
displaying my page. The html to display the page is made up of a
bunch of table rows within a <DIV> tag.

During onLoad of the <body> element, I call a javascript method to
actually play the flash. The flash does play, but what happens is
that instead of playing on top of the existing page, it plays at the
top of the page and if you scroll down, there is the rest of the html
page (the tables and stuff). I dont want it at the top, but to
actually overlay the tables until it finishes playing, then to go away
automatically.

I'm struggling with the html part of this. I know browsers render
from top to bottom, but I dont know how to display over the existing
stuff.

I toyed with the idea of making the flash into a popup in a new window
(window.open), but to make it look right, I'd have to make it a
transparent window, borderless, etc... and I'm not sure thats the
right way to do it either.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved