BOXEE apps API

1,725 views

Published on

part of a workshop i did at NYU ITP

Published in: Technology, Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,725
On SlideShare
0
From Embeds
0
Number of Embeds
21
Actions
Shares
0
Downloads
16
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

BOXEE apps API

  1. 1. BOXEE boxee apps 101 aka designing the future of tv   [email_address] @idancohen
  2. 2. what boxee is all about
  3. 3. boxee applications
  4. 4. how applications are built <ul><li>  </li></ul><ul><li>  </li></ul><ul><li>data </li></ul><ul><li>  </li></ul><ul><li>GUI </li></ul><ul><li>  </li></ul><ul><li>logic </li></ul><ul><li>playback </li></ul>
  5. 5. structure <ul><li>index file </li></ul><ul><li>~/Library/Application Support/BOXEE/UserData/profiles/<me>/sources.xml </li></ul><ul><li><source>   </li></ul><ul><li><name>APPLICATION NAME</name>  </li></ul><ul><li><path>app://APPLICATION ID</path>  </li></ul><ul><li><thumbnail>APPLICATION THUMBNAIL LOCATION</thumbnail>  </li></ul><ul><li></source> </li></ul><ul><li>  </li></ul><ul><li>app location </li></ul><ul><ul><li>~/Library/Application Support/BOXEE/UserData/apps/<appid> </li></ul></ul><ul><li>descriptor.xml </li></ul><ul><li>skin/Boxee Skin NG/720p </li></ul><ul><li>skin/Boxee Skin NG/media </li></ul>
  6. 6. descriptor file <ul><li>index file </li></ul><ul><ul><li>~/Library/Application Support/BOXEE/UserData/profiles/<me>/sources.xml </li></ul></ul><ul><li><app> <id>pandora</id> <name>Pandora</name> <version>1.0</version> <description>Pandora Radio</description> <thumb>http://dir.boxee.tv/apps/pandora/thumb.png</thumb> <media>music</media> <copyright>Boxee</copyright> <email>support@boxee.tv</email> <type>skin</type> <platform>all</platform> <minversion>0.9.11</minversion> <startWindow>14000</startWindow> </app> </li></ul>
  7. 7. skin file <ul><li><window type=&quot;window&quot; id=&quot;14000&quot;>     <defaultcontrol always=&quot;true&quot;>111</defaultcontrol>     <allowoverlay>no</allowoverlay>     <controls>         <control type=&quot;group&quot;>             <control type=&quot;image&quot;>                 <posx>0</posx>                 <posy>0</posy>                 <width>1280</width>                 <height>720</height>                 <texture>black.png</texture>             </control>             <control type=&quot;button&quot; id=&quot;200&quot;>                 <posx>846</posx>                 <posy>142</posy>                 <width>404</width>                 <height>236</height> </li></ul>
  8. 8. skin file <ul><li>controls </li></ul><ul><ul><li>window </li></ul></ul><ul><ul><li>group </li></ul></ul><ul><ul><li>grouplist </li></ul></ul><ul><ul><li>image </li></ul></ul><ul><ul><li>label </li></ul></ul><ul><ul><li>button </li></ul></ul><ul><ul><li>list/panel </li></ul></ul><ul><ul><li>multiimage </li></ul></ul><ul><ul><li>scrollbar </li></ul></ul>
  9. 9. controls <ul><li>basics </li></ul><ul><ul><li>type </li></ul></ul><ul><ul><li>id </li></ul></ul><ul><ul><li>--- </li></ul></ul><ul><ul><li>posx </li></ul></ul><ul><ul><li>posy </li></ul></ul><ul><ul><li>width </li></ul></ul><ul><ul><li>height </li></ul></ul><ul><ul><li>texture/label - $INFO </li></ul></ul>
  10. 10. control events <ul><li>basics </li></ul><ul><ul><li>onright </li></ul></ul><ul><ul><li>onleft </li></ul></ul><ul><ul><li>onup </li></ul></ul><ul><ul><li>ondown </li></ul></ul><ul><ul><li>onclick </li></ul></ul>
  11. 11. more <ul><li>visible </li></ul><ul><ul><li>Control.IsVisible </li></ul></ul><ul><ul><li>Control.HasFocus </li></ul></ul><ul><ul><li>and + </li></ul></ul><ul><ul><li>or | </li></ul></ul><ul><ul><li>SetVisible </li></ul></ul><ul><ul><li>SetHidden </li></ul></ul><ul><ul><li>RunApp(app://APP ID/14001) </li></ul></ul><ul><li>  </li></ul>
  12. 12. sources <ul><li>any application in the apps folder - grep grep grep </li></ul><ul><li>http://developer.boxee.tv/boxee-applications/   </li></ul><ul><li>  </li></ul><ul><li>http://developer.boxee.tv/2009/04/14/building-your-first-boxee-app/   </li></ul><ul><li>http://developer.boxee.tv/2009/05/19/songza-application/ </li></ul><ul><li>  </li></ul><ul><li>me [email_address] | @idancohen </li></ul><ul><li>shawn [email_address] | @boxee_api </li></ul>

×