TPESystem/Media/VideoThumbnail: Difference between revisions

Line 27: Line 27:
For item#2, memory usage could be reduced in gecko implementations by setting "width" and "height".  <br>
For item#2, memory usage could be reduced in gecko implementations by setting "width" and "height".  <br>
</UL>
</UL>
<br>
<u>Example</u>: <br>
        var video = document.createElement('video'); <br>
        video.mozCreateThumbnail(time, width, height); <b>//new</b> <br>
        video.src = url;  <br>
        video.ongetthumbnail = function() { <b>//new</b><br>
          :<br>
            captureFrame(video, metadata,callback);<br>
          :<br>
        }<br>
20

edits