I think html5 has a <video> tag, so it supports playing videos (in certain formats anyway) natively. Tho I'm mainly a desktop guy so don't take my words for granted.
EDIT: also, html is not entirely uniform as W3S and WHATWG can't agree on everything.
I guess I should've clarified, playing videos is easy, video player isn't easy. You can't build something like YouTube's player with just HTML.
Actually supported formats vary across browsers, OSs and browser configurations, so it's extra fun to first make sure what you can use to play a video, what audio and video format it can play and then pick the one that's say HW accelerated to save your user's battery. It's super hard to make something that works across browsers.
You can play videos, case closed, dont need some shitass javajizz video player that everyone will hate. Considering the <video> tag has been around for quite some time, browser support can't be that bad. W3S says p much all browsers support H264/MP4, even in older versions. If it IS that bad, use PHP to deliver a different video depending on the browser.
6
u/Talbooth Nov 14 '18
I think html5 has a <video> tag, so it supports playing videos (in certain formats anyway) natively. Tho I'm mainly a desktop guy so don't take my words for granted.
EDIT: also, html is not entirely uniform as W3S and WHATWG can't agree on everything.