mirror of https://github.com/axmolengine/axmol.git
change the seek to time
This commit is contained in:
parent
400b2d7663
commit
44c37c676e
|
@ -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);
|
||||
}},
|
||||
|
|
Loading…
Reference in New Issue