I have only heard of using pictures to do the background, have not heard the use of video can also do background. This is not, the first few days there is really such a demand. So hurried on the Internet to check the information, found that there is really such a play abroad.
Now pick it up for the reference of the guys, maybe it will be useful when it.
Preview the results first:
The video is downloaded from the world, a very small section of MP4, and then use canvas to write a sentence: Animation over video!
This sentence is floating on the video above, and video playback, text will move, video pause, text also paused, to do seamless feeling.
Interested can go here to download source files: Https://github.com/bjtqti/xxt/tree/master/canvas-video
I only did the test on the ipad,pc, Android on the video support is not very good, temporarily give up.