Sun Microsystems — Technical Presentation (2007)
17 slides from Sun Microsystems's technical presentation, 2007
Slide 1: LAB-6340: Advanced Java ME Programming - Streaming Video From Server to Your Device
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 JavaOneSM Conference | LAB-6340 |
Slide 2: Goal of Your Talk
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 JavaOneSM Conference | Session 6340 | 2
Slide 3: How Instructor-Led Hands-on Lab Works
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 JavaOneSM Co
Slide 4: Quick Walk-through
Quick Walk-through ● If you have not logged in, log in with ● Username: 6340 ● password: javaone07 ● Online lab document gets displayed ● All necessary software (JavaTM SE, NetBeansTM IDE 5.5, NetBeans Mobility Pack 5.5, Sun Java System Application Server) and lab files are already installed on your
Slide 5: Quick Walk-through
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 JavaOneSM Conference | Session 6340 | 5
Slide 6: Lab Format
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 JavaOneSM Conference | Session 6340 | 6
Slide 7: Exercises
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 JavaOneSM Conference | Session 6340 | 7
Slide 8: Exercise 1: Play the video on device
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 JavaOneSM Conference | Session 6340
Slide 9: Exercise 2: Connect to a web service, stream a video from a server
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 JavaOneS
Slide 10: Exercise 3: Create Webservice client without JSR172
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 200
Slide 11: Exercise 4: Modify the clients (optional)
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 ser
Slide 12: DEMO
DEMO Exercise 1, Exercise 2 2007 JavaOneSM Conference | Session 6340 | 12
Slide 13: Summary
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 JavaOneSM Conference | Session 6340 | 13
Slide 14: For More Information
For More Information List ● http://mobility.netbeans.org 2007 JavaOneSM Conference | Session 6340 | 14
Slide 15: Q&A
Q&A 2007 JavaOneSM Conference | Session 6340 | 15
Slide 16: Finishing Up
Finishing Up ● Fill up the survey form ● Log out 2007 JavaOneSM Conference | Session 6340 | 16
Slide 17: LAB-6340: Advanced Java ME Programming - Streaming Video From Server to Your Device
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 JavaOneSM Conference | LAB-6340 |