add wait_user_login
add rand file name
first implemente all function beat 0.1 ,add access to mysql and put video file to right path