Thanks a lot for your answer.
In fact, i discover that to make the `canPlayType' work, you have to call
it from the element.
Here is the way i use it :
<code>
self.video = Video()
self.format='mp4'
vid = self.video.getElement()
if hasattr(vid,'canPlayType'):
if vid.canPlayType('video/mp4; codecs="avc1.42E01E,
mp4a.40.2"')=="probably":# in 'probably maybe'.split():
self.format='mp4'
if vid.canPlayType('video/ogg; codecs="theora"')=="probably":#
in 'probably maybe'.split():
self.format='ogv'
</code>
--