Applications

From DevWiki

Revision as of 14:11, 1 February 2012 by Riegersn (Talk | contribs)
Jump to: navigation, search
This is an overview for Boxee Applications. If your looking for the api documentation: Boxee GUI API, Python API.

Contents


Application Anatomy

Before you start building your application, you must first understand the basic structure and anatomy of every Boxee application. These details remain the same across all platforms and devices.

Directory Structure
A Boxee application is simply a folder which contains a descriptor.xml, python scripts (not required), skin/gui xml files, and images used within the skin.
descriptor.xml
The descriptor is used by Boxee to display application specific information to the user such as title and description. It also tells Boxee how to handle your application, what platforms it should be visible to and where within the application library it should be stored. The descriptor.xml is a required file located in the base of your application directory.
Python
Python code can reside either in the Window XML itself within the <controls> tag wrapped in cdata tags or in the root of your application directory. Multiple scripts can be used. If you choose to save your python script(s) in the root of your application folder you can call it from within your application by using the import function.
  • Python API - Full Python API documentation with examples.
Window XML Files
The skin/Boxee Skin NG/720p/ directory holds all your window xml files. Each one defines the UI for a single window and all have the same basic layout. With each window you can place different controls and define how the user will navigate those controls and the window itself. The structure of the window .xml files can be found on the Window Structure page.
Controls
Controls define everything from buttons, labels, images, lists and more. There are many different types of controls, all which represent UI elements displayed on-screen and most can be interacted with by the user. Each control, as the window it self, has a basic structure with default properties and specific properties which represent its behavior and look.
Media
The skin/Boxee Skin NG/media/ folder stores all your images used within your application. PNG, JPEG and even GIF will work (with limitations) in your application. However we strongly urge you to stick with PNG format. This offers excellent quality with the option of transparency. It scales very well in our UI. Some things to note:
  • Images only stretch, they will not repeat or tile.
  • Images will be packaged with your application. Keep them as small as you can without loosing quality.
  • We can't guarantee that GIFs or JPEG will render properly. Best to stay away.


Examples


Documentation


Submitting Applications

Once you've created your application and you are satisfied with the outcome you need to get it distributed! As of February 27th, 2011, submitting applications to the Boxee Application Library is done using the developers interface on our website. After you submitted your application - the request is then being tracked using JIRA (issue tracking system).


Custom Repository

If you choose not to submit your application to the Boxee repository, you may create and maintain your own. Remember that you will get less exposure if users don't see your content without adding a customer repository.


Debugging

Applications can be ran locally from within Boxee without the need to deploy them into an online repository. Regarding debug logs: Please note that boxee debug logs includes details regarding your operating system, some of your hardware and indexed media, apart from registered operations on Boxee and errors from the latest Boxee session.

Log File Location


Testing

Test repositories are temporarily down, you can follow up in this forum thread.

Before releasing your application to the public, you can invite people to beta test it to work out any issues. Boxee makes this easy for you and your testers. Once your app is uploaded and signed, you’ll be able to invite and manage your testers.

Appedit-testers.jpg

Figure 1. The Testers section in your application details screen

Please note that:


Video Support

Boxee supports just about every type of video format and if you find one we don’t, let us know. From HLS, Flash to raw video formats, its all here. Find out whats supported and whats not and what needs to be done to get it working.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox