play() or replay()

Topics: Windows 8 JavaScript
Jul 18, 2013 at 8:20 AM
Hi all,

I have a question with playerframework for Windows 8 javascript.
What is difference between play() and replay() method? And if I want a button to seek back at start time of video (0:00) and then play the video which method should I use?
Thanks.
Coordinator
Jul 18, 2013 at 9:10 PM
play() will cause playback to start or resume when paused.
replay() will cause playback to seek backwards 5 seconds (think instant replay)
What you want is:
currentTime = 0;
play(); (not needed if already playing but won't hurt)
Jul 19, 2013 at 5:59 AM
Thanks. I will try it.