Hacker News new | past | comments | ask | show | jobs | submit login
Cobalt – lightweight HTML5 application container from YouTube (developers.google.com)
99 points by thefilmore 8 months ago | hide | past | favorite | 19 comments



It seems like it's very specific to YouTube needs. It supports very few HTML elements and CSS properties [1]. If you think HTML5 subset implies something like HTML4 than you're going to be disappointed. It's very much specialised for div-soup-style apps.

[1]: https://developers.google.com/youtube/cobalt/docs/developmen...


I suspect that list isn't exhaustive. Searching the Cobalt repo shows support for more tags, including <img>. It also supports an on-screen keyboard (likely the platform-specific implementation) as well as game controllers and tilt sensors, so there is support for collecting user input.

It is certainly meant to be a constrained platform for apps. Think of it as a subset of electron, intended for "six foot views" (i.e. television).


Yeah, looks like there’s no input or img tags. Very limited!


You'd obviously need images for implementing a YouTube app (e.g. for thumbnails, icons, avatars), and the HTML subset reference[0] lists jpeg, png and webp as supported formats. Is it possible that images are to be shown using the video tag?

[0] https://developers.google.com/youtube/cobalt/docs/developmen...


It could just be CSS backgrounds


A previous thread on Cobalt (22 Nov 2022, 51 comments) - https://news.ycombinator.com/item?id=33706197


Somewhat funny that it has the same name as https://cobalt.tools which lets you download audio and video from many sources including YouTube.


I saw this when looking at how the terrible Virgin Media TV dongle has a YouTube app! Nice to see it being open source!


A click on “Cobalt on partner site”, the second link on the page, leads to a 404. Great job guys.


[flagged]


I have a title ready:

From loved to loathed in 25 years.

Subtitled: How Prabhakar Raghavan, armed with greed and ignorance tanked the world's biggest search engine for the second time.

(Yep, see https://www.wheresyoured.at/the-men-who-killed-google/ )


This code yellow thing is so childish, it is almost unbelievable that one of the biggest companies in the world is managed by a bunch of finance guys thinking they are cool tech kids (which is a concept that doesn't exist anymore, grand part thanks to Google becoming IBM).


Or maybe the downvotes are due to the fact that the web is replete with broken links and it has nothing at all to do with the topic under discussion.


That's a Google page! The biggest authority on links in the world. Google doesn't need their minions to "protect" its reputation by astroturfing HN. What would be useful is if Googlers could fix this broken link and all their broken systems.


This looks like a good way to create your own custom combo of software + hardware for a nostalgic TV, like http://my90stv.com

Put it into a 4:3 CRT tv for maximum authenticity.


Anyone know how this compares to Electron? Is that even the market this tool is in?


In a few words, Cobalt is a de-bloated Chromium designed to run YouTube TV. It's smaller and faster than launching it in the platform's browser.

If you have a smart TV/set-top box/streaming stick/etc bought in the past few years, the YouTube app is most likely running inside Cobalt. You can develop HTML5 applications that can run in Cobalt, but it supports only a subset of html/css/js stuff you'd expect from a browser.


With this Google should release Windows and MacOS app versions of all their iOS and Android apps


Seems pretty awesome actually.


Thisp.looks like a redbean clone




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: