LAB-6340: Advanced Java ME Programming - Streaming Video From Server to Your Device Lukas Hasik, Fabiola Galleros Rios Software Engineer, Mobility Pack QE Sun Microsystems Inc. http://www.sun.com 2007 JavaOne SM Conference LAB-6340
Goal of Your Talk What Your Audience Will Gain Gain the experience with the successful tools, technologies and the best practices to seamlessly build wireless application consuming web service using the Java ME and Java EE technologies. 2007 JavaOne SM Conference Session 6340 2
How Instructor-Led Hands-on Lab Works Instructors will guide you through whenever appropriate You will do the lab by reading the lab document that is displayed on your screen after log-in The hard-copy of the lab document is also provided Feel free to get help from on-site proctors 2007 JavaOne SM Conference LAB-6340
Quick Walk-through If you have not logged in, log in with Username: 6340 password: javaone07 Online lab document gets displayed All necessary software (Java TM SE, NetBeans TM IDE 5.5, NetBeans Mobility Pack 5.5, Sun Java System Application Server) and lab files are already installed on your lab machine 2007 JavaOne SM Conference Session 6340 4
Quick Walk-through Read introduction of each exercise Proceed with Steps to follow of each exercise Instructor will do quick demo on how to do the first exercise 2007 JavaOne SM Conference Session 6340 5
Lab Format Instructor led lab This lab is for 120 mins 3 exercises + optional exercise for experienced users You can follow the instructor or do the exercises by yourself. Exercises have to be done in order 1, 2, 3 2007 JavaOne SM Conference Session 6340 6
4 Exercises 1. Play the video on device create a midlet playing video 2. Connect to a web service, stream a video from the server 3. Create Webservice client without JSR172 4. Modify the clients (optional) 2007 JavaOne SM Conference Session 6340 7
Exercise 1: Play the video on device Create a Mobile Project. Create a MIDP Canvas to play a video. Add Custom Component to the palette. Create a new Visual Visual MIDlet. Create UI and add player logic to the application Build and run the project 2007 JavaOne SM Conference Session 6340 8
Exercise 2: Connect to a web service, stream a video from a server Deploy webservice to the application server Create new application PlayRecordsApp Generate new J2ME Web Service Client Add VideoCanvas to the Sample MIDlet Add player logic to the videocanvas Run the project 2007 JavaOne SM Conference Session 6340 9
Exercise 3: Create Webservice client without JSR172 Simulate an Emulator Platform Without JSR172 Create new Web Project and new web service client Create Mobile Client to Web Application Filtering Sources Reuse the visual midlet for both solutions Modify the sample midlet from JSR172 2007 JavaOne SM Conference Session 6340 10
Exercise 4: Modify the clients (optional) Add new form for the addrecord method of the webservice Modify the VideoCanvasProject to real library Add an image to all WaitScreens Setup obfuscator to decrease the size of your application Setup API permissions Deploy project Setup proxy server for WTK 2007 JavaOne SM Conference Session 6340 11
DEMO Exercise 1, Exercise 2 2007 JavaOne SM Conference Session 6340 12
Summary You know how to play a video in MIDlet You are able to use JSR 172 Web Services API You can use the Mobile Client to Web Application when your device doesn't support JSR 172 Mobility Pack is the best 2007 JavaOne SM Conference Session 6340 13
For More Information List http://mobility.netbeans.org 2007 JavaOne SM Conference Session 6340 14
Q&A 2007 JavaOne SM Conference Session 6340 15
Finishing Up Fill up the survey form Log out 2007 JavaOne SM Conference Session 6340 16
YOUR LOGO HERE LAB-6340: Advanced Java ME Programming - Streaming Video From Server to Your Device Lukas Hasik, Fabiola Galleros Rios Software Engineer, Mobility Pack QE Sun Microsystems Inc. http://www.sun.com 2007 JavaOne SM Conference LAB-6340