Commit 53610808 authored by Bui's avatar Bui

loop from preview position

parent 9d8a5f37
...@@ -20,8 +20,12 @@ function SongSelect(){ ...@@ -20,8 +20,12 @@ function SongSelect(){
var no_delay = first_open ? 0 : 300; var no_delay = first_open ? 0 : 300;
_preview.currentTime = _preview.duration/2-10; _preview.currentTime = _preview.duration/2-10;
_preview.loop = true;
_preview.volume = 0.5; _preview.volume = 0.5;
_preview.addEventListener('ended', function(){
this.currentTime = this.duration/2-10;
this.play();
}, false);
_preview_to = setTimeout(function(){ _preview_to = setTimeout(function(){
_preview.play(); _preview.play();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment