support repeat play list.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
add first and last function.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>