The link should probably be the main TVML page rather than one of the template reference pages. https://developer.apple.com/library/prerelease/tvos/document...
Apple TV Markup Language
31–40 of 74 posts
Re: Apple TV Markup Language
#32The link should probably be the main TVML page rather than one of the template reference pages. https://developer.apple.com/library/prerelease/tvos/document...
The (arbitrary) template page linked to has visualizations and code samples. Much better.
Re: Apple TV Markup Language
#33So what's an example of something you could build with this?
Re: Apple TV Markup Language
#34I 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. What's new in the new tvOS SDK is that you can also write native apps in Objective-C/Swift, with a main() function that starts up UIKit, and with access to most of the norm…
I was confused at first because TVML seemed more prominent in the marketing/developer materials. But we just saw a game run on Apple TV so yeah, you could write native apps w/o the TVML.
Re: Apple TV Markup Language
#35I'm a little surprised they're jumping into the literal "TV" namespace so wholeheartedly. Is the future of this ecosystem really exclusively limited to the Television? Gaming is already an explicit part of this, which undoubtedly will include VR, which is theoretically suited to Television-like content. If they do this right, the source code running on your VR gogs will mention "TV" everywhere, much like the the curr…
Re: Apple TV Markup Language
#36I'm a little surprised they're jumping into the literal "TV" namespace so wholeheartedly. Is the future of this ecosystem really exclusively limited to the Television? Gaming is already an explicit part of this, which undoubtedly will include VR, which is theoretically suited to Television-like content. If they do this right, the source code running on your VR gogs will mention "TV" everywhere, much like the the curr…
Gaming is already an explicit part of this"
Presumably people won't be writing games with this simple presentation layer optimized for printing lists of multimedia content - for example TV Shows... Games will (mostly) be written in objC/Swift to the Metal APIs, as will many other apps.
This is just a small portion of the app creation ecosystem for the Apple TV, and since it's geared towards things that traditionally are watched on a TV, I think the name is fine.
--edited to clean up the quote
Re: Apple TV Markup Language
#37If 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.
Why would anyone add complexity to the syntax when you can make it simpler by removing the XML namespace? If you need to add namespaces, then you have already failed.
It can also simplify the code that parses it. With an SVG XML document embedded right in your TV XML document, you can e.g. use your functions that take an SVG node regardless of whether it was the root node of a document or embedded in another document and render it to the screen.
It can also let you do versioning. For instance, let's give a schema like
Then in version 2 you support multiple screens, so now you want
Example #2 should be an error in schema v1, and example #1 should be an error in schema v2Part of that problem is solved with schema versioning and part of it is solved with namespaces.
Re: Apple TV Markup Language
#38If 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.
Why would anyone add complexity to the syntax when you can make it simpler by removing the XML namespace? If you need to add namespaces, then you have already failed.
Re: Apple TV Markup Language
#39If 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.
Why would anyone add complexity to the syntax when you can make it simpler by removing the XML namespace? If you need to add namespaces, then you have already failed.
EDIT: I think someone is probably down-voting me for a technical reason. Would you please explain it?
Re: Apple TV Markup Language
#40I think it's interesting that Apple is promoting making apps that are web based that you wouldn't have to get approval for to make updates. Maybe because it's limited on you can do with TVML but I think it's interesting.
In other words, all of the program logic and display elements are on the Apple TV - only the data that's being retrieved and displayed would be stored server-side - which is no different from any iPhone app that displays server based content today.