Flash Lite Tips and Tricks – Alessandro Pace, Forum Nokia

Embed Size (px)

DESCRIPTION

 

Text of Flash Lite Tips and Tricks – Alessandro Pace, Forum Nokia

  • 1. Flash Lite Tips and Tricks Alessandro Pace Mobile Architect
  • 2. Biography
    • Mobile Architect, expertise Flash Lite since 2004
    • Forum Nokia Champion since 2006
    • Manager of the Boston Adobe Mobile and Devices User Group: flashmobilegroup.org
    • Founder & organizer of Mobile Monday Boston
    • Blogs at biskero.org , flashlite4nokia.com
    • Site at biskero.com
  • 3. Goal
      • Learn some key points on Flash Lite content development on the Nokia S60/S40 Platforms
    At the end of this session, you will
  • 4. Agenda for today
    • Understand the development cycle
    • Flash Lite; which platform, what version?
    • Flash Lite content creation key points
    • Flash Lite and Media
    • Flash Lite and packaging
    • Flash Lite version detection
    • Flash Lite and OMA DRM
  • 5. Understand the Flash Lite development cycle
    • Nokia & Flash Lite content types
      • S60: standalone, screensaver and browser
      • S40: all the above + wallpaper
    • Flash IDE + Device Central emulator
        • Allows you to develop content for all Flash Lite versions and Flash Lite content types
        • Device Central: 70-80% of work
    • Flash Lite testing
      • Remote Device Access (RDA), S60/S40 Nokia SDK
      • Tip : get both S60 and S40 devices for testing all content types
    Content type, IDE and Testing
  • 6. Flash Lite; which platform, what version ?
    • Nokia supports all the Flash Lite player versions
      • S60 3 rd Edition
          • Flash Lite 1.1
      • S60 3 rd Edition FP1
          • Flash Lite 2.0
      • S60 3 rd Edition FP2 & S60 5 th Ed.
          • Flash Lite 3.0
      • S40 3 rd Edition FP1
          • Flash Lite 1.1
      • S40 3 rd Edition FP2
          • Flash Lite 2.0
      • S40 5 th Edition and FP1
          • Flash Lite 2.1 + 3.0 (latest)
      • S40 6 th Edition
          • Flash Lite 3.0
      • Tip 1 : there some exceptions, i.e. E66, E71 have Flash Lite 3
      • Tip 2 : no new Nokia handsets with Flash Lite 1.1/2.0, but millions out there!
    Nokia S60 and S40 support Flash Lite 1.1, 2.0, 2.1, 3.0
  • 7. Flash Lite content creation key points
    • Memory
        • Standalone up to 4 Mbytes, screensaver/wallpaper up to 1 Mbytes
        • Garbage Collector (GC) use memory, runs every 60 seconds and for > 20% memory increase
    • FSCommands API to create one SWF to fit ALL
      • FSCommand2("GetSoftKeyLocation");
          • -1: Not supported 0: Soft keys on top 1: Soft keys on left 2: Soft keys on bottom 3: Soft keys on right
    • Use System.capabilities
      • System.capabilities.audioMIMETypes
      • System.capabilities.imageMIMETypes
      • System.capabilities.videoMIMETypes
    Memory, FSCommands and System.capabilities
  • 8. Flash Lite content creation key points cont.
    • Optimize graphics to best render on specific mobile phone model
      • Color depth: 16/24 bit
      • Use images for complex animations: less CPU cycles
      • Use most common fonts or pixel fonts
    • Multiple SWF architecture for more complex content
      • Extend content features: for example multi-level games
      • Memory optimization
    • Tip : create Master SWF to load other SWFs
    How to architect more complex Flash Lite content
  • 9. Flash Lite and Media: sound
    • Flash Lite 1.1
      • Device sound, midi sounds
      • Trick : getURL() API to download/stream audio, i.e. .mp3/.aac
    • Flash Lite 2.x
      • Audio API local/remote (no streaming), in memory playback
      • Trick : use video API to stream a .3gp file with audio and no video !
    • Flash Lite 3.0
      • mp3 streaming using Flash Media Server (rtmp:// protocol)
      • Tip : Nokia default streaming protocol is rtsp://
    Different sound capabilities based on Flash Lite version
  • 10. Flash Lite and Media: video
    • Flash Lite 1.1
      • Trick : getURL() API to download/stream video (i.e. .3gp/.mp4)
    • Flash Lite 2.x: it uses the device video player within the Flash Lite content for playback
      • Video API, local/embedded/streaming (rtsp://)
      • Trick : use loadMovie API to load (http) an embedded .3gp video into a .swf. In memory playback!
    • Flash Lite 3.0
      • Flash Video (.flv) local/progressive download/embedded/streaming
      • Streaming via Flash Media Server (rtmp:// protocol)
      • Tip : some of the latest Nokia S60 devices support FLV video playback
    Different video capabilities based on Flash Lite version
  • 11. Flash Lite: audio, video API
    • // Load and Play Audio track
    • var audiotrack:Sound = new Sound();
    • audiotrack.onLoad = function(success) {
    • if (success == true) {
    • audiotrack.start();
    • trace("audio track loaded");
    • } else {
    • trace("Error loading audiotrack");
    • }
    • };
    • // Load Audio Track Object
    • audiotrack.loadSound("nokiabrandmusic.aac",false);
    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("nseriesad.flv"); NokiaFLV.attachVideo(videoFLV); // Load and Play 3GP Video video3gp.play("nseriesad.3gp");
  • 12. DEMO Flash Lite and Audio/Video
  • 13. Flash Lite and Firmware update
    • Latest firmware introduce Flash Lite 3 and WRT
      • Nokia N95
      • Nokia N95 8GB
      • Nokia N95 NAM
      • Nokia E90
      • Nokia N82
    Get newer version of the Flash Lite player Tip : these phones are Flash Lite 2.0 enabled
  • 14. Flash Lite and Packaging
    • Nokia Packaging and Flash Lite
          • x-epoc/x-sisx-app .sis
          • x-epoc/x-sisx-app .sisx
          • appli

Recommended

View more >