On Fri, Aug 17, 2012 at 3:16 PM, Renaud Chénard <[email protected]> wrote: > 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>
would you be able to submit a small pull request implementing this change? seems pretty straight forward. -- C Anthony --
