- Implement writeToFile function.
1-1 spawn a thread for downloading.
1-2 add new function in event listener, it will execute when downloading is finished or failed. - Modify play functions, it will return boolean value.
true: play success
false: play failed.