I found the solution. It was issue with my video file. "The MOOV atom, an important piece of metadata needed to make it progressively playable, was located at the end of the file. It needed to be at the beginning".
I used "qt-faststart" program to arrange atoms and it is working.