Flash Lite Tips and Tricks – Alessandro Pace, Forum Nokia ...

2,681 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,681
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Good morning/afternoon/evening! My name is…
  • Good morning/afternoon/evening! My name is…
  • Flash Lite Tips and Tricks – Alessandro Pace, Forum Nokia ...

    1. 1. Flash Lite Tips and Tricks Alessandro Pace Mobile Architect
    2. 2. Biography <ul><li>Mobile Architect, expertise Flash Lite since 2004 </li></ul><ul><li>Forum Nokia Champion since 2006 </li></ul><ul><li>Manager of the Boston Adobe Mobile and Devices User Group: flashmobilegroup.org </li></ul><ul><li>Founder & organizer of Mobile Monday Boston </li></ul><ul><li>Blogs at biskero.org , flashlite4nokia.com </li></ul><ul><li>Site at biskero.com </li></ul>
    3. 3. Goal <ul><ul><li>Learn some key points on Flash Lite content development on the Nokia S60/S40 Platforms </li></ul></ul>At the end of this session, you will …
    4. 4. Agenda for today <ul><li>Understand the development cycle </li></ul><ul><li>Flash Lite; which platform, what version? </li></ul><ul><li>Flash Lite content creation – key points </li></ul><ul><li>Flash Lite and Media </li></ul><ul><li>Flash Lite and packaging </li></ul><ul><li>Flash Lite version detection </li></ul><ul><li>Flash Lite and OMA DRM </li></ul>
    5. 5. Understand the Flash Lite development cycle <ul><li>Nokia & Flash Lite content types </li></ul><ul><ul><li>S60: standalone, screensaver and browser </li></ul></ul><ul><ul><li>S40: all the above + wallpaper </li></ul></ul><ul><li>Flash IDE + Device Central emulator </li></ul><ul><ul><ul><li>Allows you to develop content for all Flash Lite versions and Flash Lite content types </li></ul></ul></ul><ul><ul><ul><li>Device Central: 70-80% of work </li></ul></ul></ul><ul><li>Flash Lite testing </li></ul><ul><ul><li>Remote Device Access (RDA), S60/S40 Nokia SDK </li></ul></ul><ul><ul><li>Tip : get both S60 and S40 devices for testing all content types </li></ul></ul>Content type, IDE and Testing
    6. 6. Flash Lite; which platform, what version ? <ul><li>Nokia supports all the Flash Lite player versions </li></ul><ul><ul><li>S60 3 rd Edition </li></ul></ul><ul><ul><ul><ul><li>Flash Lite 1.1 </li></ul></ul></ul></ul><ul><ul><li>S60 3 rd Edition FP1 </li></ul></ul><ul><ul><ul><ul><li>Flash Lite 2.0 </li></ul></ul></ul></ul><ul><ul><li>S60 3 rd Edition FP2 & S60 5 th Ed. </li></ul></ul><ul><ul><ul><ul><li>Flash Lite 3.0 </li></ul></ul></ul></ul><ul><ul><li>S40 3 rd Edition FP1 </li></ul></ul><ul><ul><ul><ul><li>Flash Lite 1.1 </li></ul></ul></ul></ul><ul><ul><li>S40 3 rd Edition FP2 </li></ul></ul><ul><ul><ul><ul><li>Flash Lite 2.0 </li></ul></ul></ul></ul><ul><ul><li>S40 5 th Edition and FP1 </li></ul></ul><ul><ul><ul><ul><li>Flash Lite 2.1 + 3.0 (latest) </li></ul></ul></ul></ul><ul><ul><li>S40 6 th Edition </li></ul></ul><ul><ul><ul><ul><li>Flash Lite 3.0 </li></ul></ul></ul></ul><ul><ul><li>Tip 1 : there some exceptions, i.e. E66, E71 have Flash Lite 3 </li></ul></ul><ul><ul><li>Tip 2 : no new Nokia handsets with Flash Lite 1.1/2.0, but millions out there! </li></ul></ul>Nokia S60 and S40 support Flash Lite 1.1, 2.0, 2.1, 3.0
    7. 7. Flash Lite content creation – key points <ul><li>Memory </li></ul><ul><ul><ul><li>Standalone up to 4 Mbytes, screensaver/wallpaper up to 1 Mbytes </li></ul></ul></ul><ul><ul><ul><li>Garbage Collector (GC) use memory, runs every 60 seconds and for > 20% memory increase </li></ul></ul></ul><ul><li>FSCommands API to create one SWF to “fit ALL” </li></ul><ul><ul><li>FSCommand2(&quot;GetSoftKeyLocation&quot;); </li></ul></ul><ul><ul><ul><ul><li>-1: Not supported 0: Soft keys on top 1: Soft keys on left 2: Soft keys on bottom 3: Soft keys on right </li></ul></ul></ul></ul><ul><li>Use System.capabilities </li></ul><ul><ul><li>System.capabilities.audioMIMETypes </li></ul></ul><ul><ul><li>System.capabilities.imageMIMETypes </li></ul></ul><ul><ul><li>System.capabilities.videoMIMETypes </li></ul></ul>Memory, FSCommands and System.capabilities
    8. 8. Flash Lite content creation – key points cont. <ul><li>Optimize graphics to best render on specific mobile phone model </li></ul><ul><ul><li>Color depth: 16/24 bit </li></ul></ul><ul><ul><li>Use images for complex animations: less CPU cycles </li></ul></ul><ul><ul><li>Use most common fonts or pixel fonts </li></ul></ul><ul><li>Multiple SWF architecture for more complex content </li></ul><ul><ul><li>Extend content features: for example multi-level games </li></ul></ul><ul><ul><li>Memory optimization </li></ul></ul><ul><li>Tip : create “Master SWF” to load other SWFs </li></ul>How to architect more complex Flash Lite content
    9. 9. Flash Lite and Media: sound <ul><li>Flash Lite 1.1 </li></ul><ul><ul><li>Device sound, midi sounds </li></ul></ul><ul><ul><li>Trick : getURL() API to download/stream audio, i.e. .mp3/.aac </li></ul></ul><ul><li>Flash Lite 2.x </li></ul><ul><ul><li>Audio API local/remote (no streaming), in memory playback </li></ul></ul><ul><ul><li>Trick : use video API to stream a .3gp file with audio and no video ! </li></ul></ul><ul><li>Flash Lite 3.0 </li></ul><ul><ul><li>mp3 streaming using Flash Media Server (rtmp:// protocol) </li></ul></ul><ul><ul><li>Tip : Nokia default streaming protocol is rtsp:// </li></ul></ul>Different sound capabilities based on Flash Lite version
    10. 10. Flash Lite and Media: video <ul><li>Flash Lite 1.1 </li></ul><ul><ul><li>Trick : getURL() API to download/stream video (i.e. .3gp/.mp4) </li></ul></ul><ul><li>Flash Lite 2.x: it uses the device video player within the Flash Lite content for playback </li></ul><ul><ul><li>Video API, local/embedded/streaming (rtsp://) </li></ul></ul><ul><ul><li>Trick : use loadMovie API to load (http) an embedded .3gp video into a .swf. In memory playback! </li></ul></ul><ul><li>Flash Lite 3.0 </li></ul><ul><ul><li>Flash Video (.flv) local/progressive download/embedded/streaming </li></ul></ul><ul><ul><li>Streaming via Flash Media Server (rtmp:// protocol) </li></ul></ul><ul><ul><li>Tip : some of the latest Nokia S60 devices support FLV video playback </li></ul></ul>Different video capabilities based on Flash Lite version
    11. 11. Flash Lite: audio, video API <ul><li>// Load and Play Audio track </li></ul><ul><li>var audiotrack:Sound = new Sound(); </li></ul><ul><li>audiotrack.onLoad = function(success) { </li></ul><ul><li>if (success == true) { </li></ul><ul><li>audiotrack.start(); </li></ul><ul><li>trace(&quot;audio track loaded&quot;); </li></ul><ul><li>} else { </li></ul><ul><li>trace(&quot;Error loading audiotrack&quot;); </li></ul><ul><li>} </li></ul><ul><li>}; </li></ul><ul><li>// Load Audio Track Object </li></ul><ul><li>audiotrack.loadSound(&quot;nokiabrandmusic.aac&quot;,false); </li></ul>Sample code to playback local media // Load and Play FLV Video var nokiaVideo:NetConnection = new NetConnection(); nokiaVideo.connect(null); var videoFLV:NetStream = new NetStream(nokiaVideo); videoFLV.play(&quot;nseriesad.flv&quot;); NokiaFLV.attachVideo(videoFLV); // Load and Play 3GP Video video3gp.play(&quot;nseriesad.3gp&quot;);
    12. 12. DEMO Flash Lite and Audio/Video
    13. 13. Flash Lite and Firmware update <ul><li>Latest firmware introduce Flash Lite 3 and WRT </li></ul><ul><ul><li>Nokia N95 </li></ul></ul><ul><ul><li>Nokia N95 8GB </li></ul></ul><ul><ul><li>Nokia N95 NAM </li></ul></ul><ul><ul><li>Nokia E90 </li></ul></ul><ul><ul><li>Nokia N82 </li></ul></ul>Get newer version of the Flash Lite player Tip : these phones are Flash Lite 2.0 enabled
    14. 14. Flash Lite and Packaging <ul><li>Nokia Packaging and Flash Lite </li></ul><ul><ul><ul><ul><li>x-epoc/x-sisx-app .sis </li></ul></ul></ul></ul><ul><ul><ul><ul><li>x-epoc/x-sisx-app .sisx </li></ul></ul></ul></ul><ul><ul><ul><ul><li>application/java-archive .jar </li></ul></ul></ul></ul><ul><ul><ul><ul><li>application/x-nokia-widgets .wgz </li></ul></ul></ul></ul><ul><ul><ul><ul><li>application/vnd.nokia.flashlite-archive .nfl </li></ul></ul></ul></ul><ul><li>Third Party packaging + lib extension tools </li></ul><ul><ul><li>KuneryLite/SWFPack - .sis packaging + lib extension for S60 </li></ul></ul><ul><ul><li>SWF2Go - .sis packaging for S60 </li></ul></ul><ul><ul><li>Janus - .sis packaging for S60 (Open Source) </li></ul></ul><ul><ul><li>Flyer Framework - .sis packaging + lib extension (PyS60) for S60 (Open Source) </li></ul></ul><ul><ul><li>Jarpa - .jar packaging + lib extension (J2ME) for S60/S40 (Open Source) </li></ul></ul><ul><ul><li>SWF2NFL - .nfl (AIR packaging tool) for S40 5 th Ed FP1+ </li></ul></ul><ul><ul><li>W-d-get-it - .nfl and .wgz packaging + OMA DRM 1.0 FLock </li></ul></ul>Setup web server for OMA DRM content delivery
    15. 15. Flash Lite version detection for delivery <ul><li>WURFL (Wireless Universal Resource File): is an XML configuration file which contains information about capabilities and features of many mobile devices </li></ul><ul><li>WURFL is based on User Agent Profile information </li></ul><ul><li>API: JAVA, PHP, Perl, Ruby, Python, .Net, XSLT, C++ </li></ul><ul><li>It includes Flash Lite capabilities </li></ul><ul><li>WURFL-Flash Lite discussion group: http:// tech.groups.yahoo.com/group/wurflflashlite / </li></ul>Set up a mobile site to distribute Flash Lite content Source: http://wurfl.sourceforge.net
    16. 16. Flash Lite and WURFL cont. <ul><li>Nokia N95 firmware 10.0.014 </li></ul><ul><ul><li>Mozilla/5.0 (Symbianos/9.2; U; Series60/3.1 NokiaN95/ 10.0.014 ; Profile/MIDP-2.0 Configuration/CLDC-1.1) AppleWebKit/413 (KHTML, like Gecko) Safari/413 </li></ul></ul><ul><li><group id=&quot;flash_lite&quot;> </li></ul><ul><li><capability name=&quot;flash_lite_version&quot; value=&quot; 2_0 &quot;/> </li></ul><ul><li><capability name=&quot;fl_wallpaper&quot; value=&quot;false&quot;/> </li></ul><ul><li><capability name=&quot;fl_screensaver&quot; value=&quot;true&quot;/> </li></ul><ul><li><capability name=&quot;fl_standalone&quot; value=&quot;true&quot;/> </li></ul><ul><li><capability name=&quot;fl_browser&quot; value=&quot;true&quot;/> </li></ul><ul><li><capability name=&quot;fl_sub_lcd&quot; value=&quot;false&quot;/> </li></ul><ul><li></group> </li></ul>Compare UA string from mobile site to the one in WURFL Source: http://wurfl.sourceforge.net <ul><li>Nokia N95 firmware 21.0.016 </li></ul><ul><ul><li>Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 NokiaN95/ 21.0.016 Profile/MIDP-2.0 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML, like Gecko) Safari/413 </li></ul></ul><ul><li><group id=&quot;flash_lite&quot;> </li></ul><ul><li><capability name=&quot;flash_lite_version&quot; value=“ 3_0 &quot;/> </li></ul><ul><li><capability name=&quot;fl_wallpaper&quot; value=&quot;false&quot;/> </li></ul><ul><li><capability name=&quot;fl_screensaver&quot; value=&quot;true&quot;/> </li></ul><ul><li><capability name=&quot;fl_standalone&quot; value=&quot;true&quot;/> </li></ul><ul><li><capability name=&quot;fl_browser&quot; value=&quot;true&quot;/> </li></ul><ul><li><capability name=&quot;fl_sub_lcd&quot; value=&quot;false&quot;/> </li></ul><ul><li></group> </li></ul>
    17. 17. Flash Lite and OMA DRM 1.0 <ul><li>“Symbian Signed defines Passive Content (PC) as any SIS file that does not contain any executable (active) components.” </li></ul><ul><li>OMA DRM 1.0: </li></ul><ul><ul><li>Forward lock </li></ul></ul><ul><ul><li>Combined Delivery </li></ul></ul><ul><ul><li>Separate Delivery </li></ul></ul><ul><li>Use Nokia Multimedia Internet ToolKit 4.1 tool to apply OMA DRM 1.0 </li></ul><ul><ul><ul><ul><li>application/x-shockwave-flash </li></ul></ul></ul></ul>Flash Lite is considered passive content, like a jpeg or mp3
    18. 18. Flash Lite and OMA DRM 1.0 cont. Nokia Multimedia Internet Toolkit 4.1
    19. 19. Flash Lite and OMA DRM 1.0 cont. <ul><li>MIME types to be defined on the web server </li></ul><ul><ul><ul><ul><li>application/vnd.oma.drm.rights+xml .dr </li></ul></ul></ul></ul><ul><ul><ul><ul><li>application/vnd.oma.drm.rights+wbxml .drc </li></ul></ul></ul></ul><ul><ul><ul><ul><li>application/vnd.oma.drm.content .dcf </li></ul></ul></ul></ul><ul><ul><ul><ul><li>application/vnd.oma.drm.message .dm </li></ul></ul></ul></ul><ul><ul><ul><ul><li>application/vnd.oma.drm.dd+xml .dd </li></ul></ul></ul></ul><ul><li>Tip : Nokia mobile phone browser support Flash Lite content </li></ul>Setup web server for OMA DRM content delivery
    20. 20. DEMO OMA DRM 1.0 Flash Lite protected content http://www.biskero.org/nokia/drm/
    21. 21. Call for Action Utilize global intelligence – visit community.forum.nokia.com
    22. 22. For More Information <ul><li>Forum Nokia resources </li></ul><ul><ul><li>Forum Nokia developer information: http:// www.forum.nokia.com </li></ul></ul><ul><ul><li>Community page: http://community.forum.nokia.com </li></ul></ul><ul><ul><li>Forum Nokia Flash Lite Wiki and Discussions </li></ul></ul><ul><ul><li>Adobe Mobile and Devices http:// www.adobe.com /mobile </li></ul></ul><ul><ul><li>My blogs: </li></ul></ul><ul><ul><ul><li>www.biskero.org </li></ul></ul></ul><ul><ul><ul><li>www.flashlite4nokia.com </li></ul></ul></ul><ul><li>Tip : Join the Boston Adobe Mobile and Devices User Group www.flashmobilegroup.org it’ FREE !!! </li></ul>
    23. 23. Forum Nokia Thank You Alessandro Pace [email_address] www.biskero.org www.biskero.com

    ×