TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Apple TV Markup Language

108 点作者 hharnisch超过 9 年前

14 条评论

jerf超过 9 年前
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 未加载
0x0超过 9 年前
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 未加载
philo23超过 9 年前
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?
usaphp超过 9 年前
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>
drhack超过 9 年前
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 未加载
tcdent超过 9 年前
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 未加载
ezioamf超过 9 年前
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>
ihsw超过 9 年前
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 未加载
nickchuck超过 9 年前
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 未加载
Xero超过 9 年前
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 未加载
ericcholis超过 9 年前
Curious on why they chose an XML-like syntax rather than something like JSON
评论 #10200147 未加载
pbreit超过 9 年前
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?
mrfusion超过 9 年前
So what&#x27;s an example of something you could build with this?
评论 #10199802 未加载
bcruddy超过 9 年前
Another mark up language? Why? What was wrong with HTML here?
评论 #10199759 未加载
评论 #10199693 未加载
评论 #10200221 未加载
评论 #10200148 未加载