change the seek to time

This commit is contained in:
VisualSJ 2015-06-18 11:54:25 +08:00
parent 400b2d7663
commit 44c37c676e
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ var UIVideoPlayerTest = UIScene.extend({
video.resume();
}},
{ name: "SEEKTO", func: function(){
var sec = ((Math.random() * 3) * 100 | 0) / 100;
var sec = ((Math.random() * 59) * 100 | 0) / 100;
cc.log("seekTo %f sec!", sec);
video.seekTo(sec);
}},