There were a few different attempts at something along these lines in the early 2000s. They weren't that popular.
https://en.m.wikipedia.org/wiki/Flexplay
https://en.m.wikipedia.org/wiki/DIVX