umass89
11-16-2006, 09:31 AM
Hi,
I am looking at the new a/v components in 3.4.x and am having difficulty using the mediastream.play method with the start and pause parameters. For example I would like to show just the first frame of my video on the canvas and then start the video via an onclick event later on.
Here is my snip:
<canvas debug = "true">
<videoview height="500" width= "500" id="v" url="http://localhost:8080/lps-3.4.x/resources/20051210-w50s.flv"/>
<button x= "10" y= "150" text="play" onclick="v.stream.play(1,true)"/>
</canvas>
I have tried onclick="v.stream.play('1',true)" as well.
"v.stream.play()" will start the video but then I do not have a good way to pause it immediately.
Any ideas ? bug ?
Thanks!
I am looking at the new a/v components in 3.4.x and am having difficulty using the mediastream.play method with the start and pause parameters. For example I would like to show just the first frame of my video on the canvas and then start the video via an onclick event later on.
Here is my snip:
<canvas debug = "true">
<videoview height="500" width= "500" id="v" url="http://localhost:8080/lps-3.4.x/resources/20051210-w50s.flv"/>
<button x= "10" y= "150" text="play" onclick="v.stream.play(1,true)"/>
</canvas>
I have tried onclick="v.stream.play('1',true)" as well.
"v.stream.play()" will start the video but then I do not have a good way to pause it immediately.
Any ideas ? bug ?
Thanks!