I'm not sure if this is a problem with the media plugin (malsup.com)
or with swfobject, but in IE only, and only with flash content, there
is a runtime error when the <a> tags are inside <p> tags. So this
below will work for the .wmv file but fall down on the flv.

<p><a class="video" href="video/secondary-assessment-effective-
questioning.wmv">Effective
                    Questioning (from Teachers' TV)</a></p>
<p><a href="video/test-flv.flv" class="video">Test flv video</a></p>

The jquery is simply:

$(document).ready(function() {
        $('.video').media( { width: 320, height: 260, autoplay: false,
                                                flashvars: { skin: 
'video/snel-skin.swf' }
                                                } );
        $('.audio').media( { width: 320, height: 100, autoplay: false,
                                                flashvars: { skin: 
'video/snel-skin.swf' }
                                                } );
});

Any ideas?

Matthew

Reply via email to