andrej-szontagh / portfolio-website

Portfolio Website
https://andrej-szontagh.github.io/
GNU General Public License v3.0
0 stars 0 forks source link

Experiment with local & static videos replacement of current youtube player system. #51

Open andrej-szontagh opened 5 years ago

andrej-szontagh commented 5 years ago

YouTube might have the benefit of having fast servers all over the world and ability to cache videos for faster loading but on the other hand it takes forever just for the single player to start and chances are there will be a very low traffic on the website so the videos are unlikely being cached or loaded much faster.

If the static local loading provide faster initialization it could actually load faster overall and also we will have much better control over the content.

andrej-szontagh commented 5 years ago

This really might be a more reliable solution. The price to pay is possible slow loading speed.

We can consider making two versions of the videos. Half-res and full-res or maybe even cut the half-res video in half to make it load very fast and then load full-res videos in background.

This way we can have full control over playback and appearance. Also loading might be a lot more reliable than YouTube that might decide to not play the video, also we can get rid of ugly black buffering screen.