hello, when a user presses 'play' the file plays back twice simultaneously.
there is a slight delay so what you see is the file playing with the sound of the second playback following behind
:o
a picture's worth a 1000 words [or 2 videos at once is worth loads of words] so see what i mean here:
http://world-mag.net/blog/?q=node/182
this is a small vid called JCC but they all do it

Comments

blackrain’s picture

Could someone help with this please, as I have the same problem, but only in IE works fine in Mozilla.

blackrain’s picture

Sorry to be pushie but is there no help for this problem, I have seen more than one post about this issue but no answer. Is there a answer to this?
Iget this Internet Explorer error when playing video
Line: 26
Char: 4
Error: Object dosn't support this property or method
Code: 0
URL:http://ouradverts.com/node/50

sdwells’s picture

I've been having the same problem for quite sometime now and can’t seem to figure out why its happening. It appears as if two instances of the video are playing one on top of the other but because they load separately it causes them to play back at slightly different intervals. Also the problem appears to happen with multiple file types (.mov .wmv etc...) This problem only appears when using internet explorer. Videos play back fine (only once) while using firefox. My only thought on the situation is that it must be the plug-in coding used which differentiates between IE and Firefox but any amount of my simple messing with the scripts has been bringing bad results for me. Does anyone know of a way to fix this problem or what is causing it?

Darryl-1’s picture

I don't know the answer to the problem but one way to find it is to use older versions of video.module to determine at what point the bug was introduced to video.module

I would guess that you could compare the two versions and see what the offending code is.
I will give this a try and see what I can come up with (if anything).

-Darryl

Darryl-1’s picture

Anyone happen to know how to obtain older versions of video.module? :)
All I can find is the current version.

-Darryl

blackrain’s picture

StatusFileSize
new63.7 KB

I think this might help to find a older version http://drupal.org/node/32504

Darryl-1’s picture

I think that's just backporting stuff for drupal 4.6

Ideally there should be a timeline of versions somewhere.
Possibly fax8 might have them.

-Darryl

fax8’s picture

video module versions traking is at
http://cvs.drupal.org/viewcvs/drupal/contributions/modules/video/

The issue is definetly a conseguence of the removing of the embed tag.

Fabio

blackrain’s picture

Hi
Is there a way of fixing this?

steveg430’s picture

The only thing I can add to this is that the server logs record that the video is being requested by drupal twice.
When you play the video it asks twice to run active x.
I looked at the module file and am wondering if it's the video.js to blame. However, i deleted lines in video.js to no avail.

blackrain’s picture

I think that this is a problem that many dont know about, since I have played videos on many drupal sites that use the Video Module and have notice the same thing in IE. I do hope that someone will find an answer to this soon (fingers cross).

steveg430’s picture

ok, i think i've fixed this but need feedback to sure it's ok [i've tested using my own ie 6 on 3 pcs and the dreadful firefox on 1 pc]
If i'm wrong it still must be a step in the right direction?
The video plays back correctly now [not twice] plus no errors are listed by the browser.
Rather than mess about with the module itself i deleted the following from video .js

// Fix for the "Click to interact with ActiveX control" message on IE
var objects = document.getElementsByTagName( 'object' );
for ( var i = 0; i < objects.length; i++ ) {
var obj = objects[ i ];
var clone = obj.cloneNode( true );
var parent = obj .parentNode;
var sibling = obj .nextSibling;
parent.removeChild( obj );
parent.insertBefore( clone, sibling );
clone.outerHTML = clone.outerHTML;
}

therefore, the new video.js is as follows [in full]:

// $Id: video.js,v 1.1 2006/06/18 14:16:10 fax8 Exp $
/**
* @file
* This file contains some useful functions which fixes different
* Internet Explorer strange behaviours.
* This file is inclueded at each video play.
* See functions video_play and theme_video_get_script on video.module
* file for more informations.
*
* @author Fabio Varesano
*/

//We do this code only on Internet Explorer.
if (document.all) {

function InsertQuicktimeVideo(vidfile, height, width)
{
document.writeln('

'); document.writeln(''); document.writeln(''); document.writeln(''); document.writeln('\n

');
}

}

steveg430’s picture

StatusFileSize
new1.14 KB

To avoid confusion: This is the video.js

blackrain’s picture

WELL DONE! Works fine for me, I guess a lot of people owe you a BIG thank you.

Darryl-1’s picture

Works here as well thanks to steveg430!

I tested on Firefox 1.5.0.6 and IE6 with both static and streaming WMV files.
The only difference I notice is that you need to click on the embeded player (WMP) once to take
control of it and then again to actually change a setting (pause/play/volume/timeline etc). I'm pretty sure it didn't do that before. But at least it's not playing 3 times under each other.

Can anyone else confirm that Quicktime works? I haven't tested it yet.

-Darryl

blackrain’s picture

Yes! Quicktime works fine.

ThaboGoodDogs’s picture

Thanks, works great now. The bug was in IE my XP machine.

Moxide’s picture

StatusFileSize
new833 bytes

Hello,
I think the original video.js should work.
One problem seems to be located in video.module, theme_video_get_script function.
The attached patch just removes the "defer" attribute in the script statement which inserts video.js.

Could anyone test this patch (against 4.7 1.0), using the original video.js ?
I only tested it with wmv media.

Moxide’s picture

Status: Active » Needs review
tom friedhof’s picture

Moxide, your patch fixed my issue with two video's being embeded in IE. How does this get commited?

seaneffel’s picture

I've got this problem on two sites, both on same host. Has this code been added, tested, approved? Please advise - I have found it very difficult to patch files from a Mac.

hypertext200’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.