To moderators: i just posted this problem but im now an step ahead.
Wanted to edit/delete previous entry but couldn't fin how.


I have got the following function:

function tts() {
        var videoElement = $(document.createElement('video'));
        videoElement.setAttribute('src','anim1.ogg');

        videoElement.observe("loadeddata",
                function() {
                        $('response').innerHTML="";
                        $('response').appendChild(videoElement);
                }, true);

        videoElement.observe("ended",
                function() {
                        $('response').innerHTML =
                                "<img src=\"electric_sheep.jpg\" alt=\"avatar\" 
/>"
                }, true);

        videoElement.play();
}

This works just fine on FF and Chrome, but does not work on IE. I got
the annoying "Object does not support this property or method" error
when i reach the "videoElement.play();" line.

I know IE does not support <video>, but mine does thanks to kaltura
library. This code works:

    <video id="mivi">
        <source type="video/h264" src="electric_sheep.mp4" />
      </video>

so i guess the error is coming from somewhere else.

Suggestions?

Thanks you :)

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to