TVML vs Custom App for Apple TVOS

前端 未结 3 782
执笔经年
执笔经年 2020-12-30 03:48

Are there any advantage of using TVML over custom App (media based App not a game) for Apple TVOS? From what I read from Apple\'s documentation I could not figure out any su

相关标签:
3条回答
  • 2020-12-30 04:04

    It is true that you have more flexibility with custom UIKit code. With enough time, you could potentially create an app that behaves similarly to a TVML/TVJS app...but why reinvent the wheel?

    There are certain advantages to using TVML Templates, even if you are primarily a Swift/Obj-C developer.

    1. TVML templates provide a familiar experience for the user. Have you ever used the Netflix TV app, or HBO GO, or iTunes? They all use TVML Templates and have a distinct look and feel to them. This cuts down drastically on design time.
    2. Templates are incredibly easy to implement, even with very little JavaScript experience. Auto-layout is taken care of for you. Lazy loading images occurs automatically. The behavior of every UI element on the screen has already been taken care of by Apple.
    3. The templates are structured yet customizable. Templates are plug and play, but you can still customize certain aspects of the UI elements Styles and Attributes
    4. You can host your TVML/TVJS files on a web server. This allows you to make changes to your app without your user needing to download an update to your app.
    5. You can mix and match TVML with custom UIKit. Want Custom behavior with UIKit sometimes, but for standard views, you'd prefer a template? Why choose? You can have BOTH in the same app. Check out my answer here that describes how: How To Mix UIKit and TVML Within One App

    When in doubt, try it out! Mess around with the Catalog App from Apple and see if you like TVML templates. You might surprise yourself.

    0 讨论(0)
  • 2020-12-30 04:08

    MSK

    The primary advantage of TVML is that it is all javascript which appeals to a broader base of developers.

    Not sure about your second question regarding developing templates via UIKit

    0 讨论(0)
  • 2020-12-30 04:11

    Having already built an application using TVML/JS and now working on a native application I would say that the Javascript option is aimed more towards beginners or basic applications.

    TVML applications provide an easier, faster way to build standard applications with common features/user interface. We used it to rapidly build a prototype of an application. Now that we've launched the application and it's getting some uplift (featured in What to Watch and Top Free Apps UK) we are now rebuilding it natively to add additional features such as analytics, crash reporting, custom interfaces and other bits to increase re-circulation and custom recommendations.

    @shirefriendship's answer provides a good explanation to the benefits of TVML applications and I think this is a good option for beginners, prototype applications or even basic applications.

    Native applications provide alot more control over how the application looks, works and feels. Having access to most of the iOS SDK's allows you to do more such as integrating Cloudkit, develop 2D & 3D games and more.

    Once we have finished development of our native TV application I'll update the answer with some more information such as development time between the two different versions, features in the application etc.

    UPDATE: To answer your second question, yes you can pretty much develop ANY user interface / template using UIKit, the TVML templates provide user interfaces that would be commonly used / quite handy. Using UIKit you could replicate or customize any of the pre-defined templates or build something completely new.

    0 讨论(0)
提交回复
热议问题