I'm not sure of how to use the code-form...

Let's take an example :

<code>
video = Video()
# let's make a test to be sure that the browser could read the file :
if video.canPlayType('video/ogv'):
    video.setSrc('toto.ogv')
elif video.canPlayType('video/mp4'):
    video.setSrc('toto.mp4')
video.play()
</code>

I know it could be done automaticaly by the browser if i use addSrc, but i
want to be able to change the source of the Video, so i think i'm oblige to
use setSrc.

-- 



Reply via email to