duration update
create one function for src changing