TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Apple TV Markup Language

108 pointsby hharnischover 9 years ago

14 comments

jerfover 9 years ago
If any of the authors are reading, you really ought to consider putting this into an XML namespace. It can just be a mysterious invocation to most users today, but if you need to extend this in the future (inline SVG? inline XHTML?), it'll save your bacon to have done it in the first version.
评论 #10199772 未加载
评论 #10201137 未加载
0x0over 9 years ago
I believe this XML+JS thing was the only way to write apps for the old Apple TV. Various postings on the internet seem to suggest this from way back; the old SDK was probably only ever available to a select few handpicked appletv channel partners.<p>What&#x27;s new in the new tvOS SDK is that you can also write native apps in Objective-C&#x2F;Swift, with a main() function that starts up UIKit, and with access to most of the normal iOS APIs (like OpenGL, SceneKit, etc etc).
评论 #10199783 未加载
评论 #10200159 未加载
philo23over 9 years ago
This should be theoretically compatible with React right? I wonder if Netflix are using this + React for their Apple TV app or if they&#x27;re doing something entirely different... There is a &lt;divTemplate&gt; option so perhaps its through that?
usaphpover 9 years ago
This is what looks like a css: <a href="https:&#x2F;&#x2F;developer.apple.com&#x2F;library&#x2F;prerelease&#x2F;tvos&#x2F;documentation&#x2F;LanguagesUtilities&#x2F;Conceptual&#x2F;ATV_Template_Guide&#x2F;ITMLStyles.html" rel="nofollow">https:&#x2F;&#x2F;developer.apple.com&#x2F;library&#x2F;prerelease&#x2F;tvos&#x2F;document...</a>
drhackover 9 years ago
Oh look, it&#x27;s XAML for an Apple device.<p>That&#x27;s only half-sarcastic; it does seem to be a similar but much-simplified markup language that learned a lot from HTML5. Will be interesting to watch it develop.<p>As others have commented, though, XML without namespaces is not a fun ride (in my humble experience).<p>[0] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Extensible_Application_Markup_Language" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Extensible_Application_Markup_...</a>
评论 #10202289 未加载
tcdentover 9 years ago
I&#x27;m a little surprised they&#x27;re jumping into the literal &quot;TV&quot; namespace so wholeheartedly.<p>Is the future of this ecosystem really exclusively limited to the Television?<p>Gaming is already an explicit part of this, which undoubtedly will include VR, which is theoretically suited to Television-like content.<p>If they do this right, the source code running on your VR gogs will mention &quot;TV&quot; everywhere, much like the the current OS running their desktops and mobile devices references a defunct company.
评论 #10199680 未加载
评论 #10200545 未加载
评论 #10199703 未加载
评论 #10199857 未加载
评论 #10199852 未加载
ezioamfover 9 years ago
The main problem is that we are still using XML to do component definition and composition. We need to better language (no, json and yaml are not the answer).<p>I am working on a new language concept (still at early thinking) but the alert template document would be defined as:<p><pre><code> alert#update_available [ &#x2F;&#x2F;Composition is separated from definition btn#update, btn#cancel ] alert { &#x2F;&#x2F;All alert elements are defined as alertTemplate type: alertTemplate } btn { &#x2F;&#x2F;All btn elements are define as button type: button } alert#update_available { &#x2F;&#x2F;Define the title and description for the alert with ID update_available title: Get the latest tvOS version description: Get the latest tvOS version } btn#update { text: Update Now } btn#cancel { text: Cancel } &#x2F;&#x2F;We could override the settings like CSS (@language = &quot;pt_br&quot;) { &#x2F;&#x2F;If variable language is pt_br override the content with Brazilian Portuguese texts btn#update { text: Atualize Agora } btn#cancel { text: Cancelar } }</code></pre>
ihswover 9 years ago
The link should probably be the main TVML page rather than one of the template reference pages.<p><a href="https:&#x2F;&#x2F;developer.apple.com&#x2F;library&#x2F;prerelease&#x2F;tvos&#x2F;documentation&#x2F;LanguagesUtilities&#x2F;Conceptual&#x2F;ATV_Template_Guide&#x2F;index.html" rel="nofollow">https:&#x2F;&#x2F;developer.apple.com&#x2F;library&#x2F;prerelease&#x2F;tvos&#x2F;document...</a>
评论 #10201335 未加载
评论 #10199791 未加载
评论 #10199794 未加载
评论 #10199793 未加载
nickchuckover 9 years ago
I think it&#x27;s interesting that Apple is promoting making apps that are web based that you wouldn&#x27;t have to get approval for to make updates. Maybe because it&#x27;s limited on you can do with TVML but I think it&#x27;s interesting.
评论 #10199891 未加载
Xeroover 9 years ago
So it&#x27;s just HTML?<p>Is there a reason (legal or otherwise) that they can&#x27;t just use HTML?
评论 #10200106 未加载
评论 #10199654 未加载
评论 #10199713 未加载
评论 #10199652 未加载
评论 #10199665 未加载
评论 #10200167 未加载
评论 #10199677 未加载
评论 #10200194 未加载
评论 #10199687 未加载
评论 #10199653 未加载
ericcholisover 9 years ago
Curious on why they chose an XML-like syntax rather than something like JSON
评论 #10200147 未加载
pbreitover 9 years ago
So if you&#x27;re building a simple media app, can you just use the templates and JavaScript without much or any Swift&#x2F;ObjectiveC? Sort of like Roku and Sonos?
mrfusionover 9 years ago
So what&#x27;s an example of something you could build with this?
评论 #10199802 未加载
bcruddyover 9 years ago
Another mark up language? Why? What was wrong with HTML here?
评论 #10199759 未加载
评论 #10199693 未加载
评论 #10200221 未加载
评论 #10200148 未加载