The goal is to create a online cinema. The user selects the film, after which the film begins downloaded to the server and, in parallel, is played to the user. You need to implement as changing the video format on the fly if unsupported by the browser. The stream must not be interrupted to pause the movie fix / change the resolution of the stream. Using libraries to stream from torrents (webtorrent, pulsar, peerflix ... ) is prohibited.