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
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | fix_ie_double_load.patch | 833 bytes | Moxide |
| #13 | video.js | 1.14 KB | steveg430 |
| #6 | video.module v1.16.rtf | 63.7 KB | blackrain |
Comments
Comment #1
blackrain commentedCould someone help with this please, as I have the same problem, but only in IE works fine in Mozilla.
Comment #2
blackrain commentedSorry 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
Comment #3
sdwells commentedI'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?
Comment #4
Darryl-1 commentedI 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
Comment #5
Darryl-1 commentedAnyone happen to know how to obtain older versions of video.module? :)
All I can find is the current version.
-Darryl
Comment #6
blackrain commentedI think this might help to find a older version http://drupal.org/node/32504
Comment #7
Darryl-1 commentedI 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
Comment #8
fax8 commentedvideo 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
Comment #9
blackrain commentedHi
Is there a way of fixing this?
Comment #10
steveg430 commentedThe 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.
Comment #11
blackrain commentedI 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).
Comment #12
steveg430 commentedok, 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('\n{
document.writeln('
');
}
}
Comment #13
steveg430 commentedTo avoid confusion: This is the video.js
Comment #14
blackrain commentedWELL DONE! Works fine for me, I guess a lot of people owe you a BIG thank you.
Comment #15
Darryl-1 commentedWorks 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
Comment #16
blackrain commentedYes! Quicktime works fine.
Comment #17
ThaboGoodDogs commentedThanks, works great now. The bug was in IE my XP machine.
Comment #18
Moxide commentedHello,
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.
Comment #19
Moxide commentedComment #20
tom friedhof commentedMoxide, your patch fixed my issue with two video's being embeded in IE. How does this get commited?
Comment #21
seaneffel commentedI'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.
Comment #22
hypertext200