Web/Javascript
NSPlay.Rate = argSpeed; 동영상 속도조절
aucd29
2013. 9. 26. 21:29
function onClickFastPlay( argSpeed ) {
if( Math.abs( argSpeed ) != Math.abs( NSPlay.Rate ) ) {
prevMPPosition = NSPlay.CurrentPosition;
NSPlay.Stop();
NSPlay.CurrentPosition = prevMPPosition;
NSPlay.Rate = argSpeed;
NSPlay.Play();
}
}
if( Math.abs( argSpeed ) != Math.abs( NSPlay.Rate ) ) {
prevMPPosition = NSPlay.CurrentPosition;
NSPlay.Stop();
NSPlay.CurrentPosition = prevMPPosition;
NSPlay.Rate = argSpeed;
NSPlay.Play();
}
}