外文翻译--开发丰富的多媒体应用与J2ME.doc
-
资源ID:95983
资源大小:77KB
全文页数:14页
- 资源格式: DOC
下载积分:5积分
扫码快捷下载
会员登录下载
微信登录下载
微信扫一扫登录
- 扫描成功!重扫
- 请在手机上确认支付
手机扫码下载
请使用微信 或支付宝 扫码支付
• 扫码支付后即可登录、下载文档,同时代表您同意《人人文库网用户协议》
• 扫码过程中请勿刷新、关闭本页面,否则会导致文档资源下载失败
• 支付成功后,可再次使用当前微信或支付宝扫码免费下载本资源,无需再次付费
友情提示
2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
4、本站资源(1积分=1元)下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
|
外文翻译--开发丰富的多媒体应用与J2ME.doc
外文翻译中文+英文14页2651字数外文文献:DevelopRichMultimediaAppswithJ2METheportabilityofJ2MEacrossplatformscanbeusedtocreatemultimediaappsthattakefulladvantageoftheblisteringconnectivityspeedsprovidedby3Gnetworks.Tuesday,March03,2009SunMicrosystemsclaimsthatJavaMEisthemostubiquitousapplicationplatformformobiledevices,deployedonmorethanabillionsets.Apartfromthegreatadvantageofportabilityacrossdevicesalongwithrobustsecurity,JavaMEprovidesarichsetofAPIsfortodaysmultimediaandwebenabledmobilehandsets.Someoftheusefullibraries/APIsprovidedbytheJavaMEplatformare:WirelessMessagingAPIMobileMediaAPIJAXPXMLParserLocationAPIMobile3DGraphicsPaymentAPIInthearticle“CreatingAppsforMobiles”,publishedinPCQJan09,weexploredtheJ2MEdevelopmenttoolstocreateasimpleapplication.WewillcontinuetheexplorationbycreatingatinyvideoplayerusingtheMobileMediaAPI。MobileMediaAPI(JSR135)TheMobileMediaAPIprovidesaninterfacetothemultimediacapabilitiesofthemobiledevicerunningJ2ME.Thisincludesthespeaker(orheadset),microphone,LCDScreen(forvideo)andCamera(ifavailable).ThepackagenamefortheMobileMediaAPIis:"javax.microedition.media".Thebuildingblocksofthesystemconsistof-Manager,PlayerandControl.TheManageristhetoplevelcontrollerforthemultimediaresources.J2MEapplicationsusetheManagertocreateandmanagePlayersandquerystatusandpropertiesofthePlayers.ThePlayersactuallyplaythemultimediacontent.TheControlinterfaceisusedtoimplementthedifferentcontrolsaPlayermighthave,suchasVolumeControltoincrease/decreasethevolume.CreateatinyvideoplayerapplicationInthisarticlewewillgothroughthestepsofcreatingaprojectusingtheMobileMediaAPIandthendevelopthecoderequiredtocreatetheplayer.PleaserefertothePCQJan09issue(alsoavailableonlineatpcquest.com)fortheproceduretoinstallthetools.YoucantestthisapplicationontheEmulator,buttouseitonamobiledevice,youwillneedadataconnectionsuchasGPRSortheblazingfast3G.Wewillstartbycreatingaprojectwiththefollowingdetails:Thetoolkitwillcreatetheprojectandshowthepathswhereyouhavetocreatethesourcefiles.CreatingthesourcefileforPCQ_PlayerApplicationWenowwritethecodetoprovidethedesiredfunctionalitytoyourapplication:packagecom.j2me.part1;importjavax.microedition.lcdui.*;importjavax.microedition.midlet.MIDlet;importjavax.microedition.media.*;importjavax.microedition.media.control.*;publicclassPCQ_PlayerextendsMIDletimplementsCommandListenerprivateDisplaydisplay;privateFormform;VideoPlayervPlayer;publicPCQ_Player()display=Display.getDisplay(this);form=newForm("PCQPlayer");publicvoidstartApp()form.addCommand(newCommand("Exit",Command.EXIT,1);form.setCommandListener(this);vPlayer=newVideoPlayer(display,form,"http:/createapoll.net/guest/R1.mpg");Threadrunner=newThread(vPlayer);runner.start();publicvoidpauseApp()publicvoiddestroyApp(booleanunconditional)publicvoidcommandAction(Commandcommand,Displayabledisp)vPlayer.playerClose();destroyApp(true);notifyDestroyed();classVideoPlayerimplementsRunnable,PlayerListenerFormform;Playerplayer;Displaydisplay;Stringurl;publicVideoPlayer(Displaydisplay,Formform,Stringurl)this.display=display;this.form=form;this.url=url;publicvoidrun()tryAlertalert=newAlert("Buffering.");/Downloadtakestimealert.setTimeout(Alert.FOREVER);/sodisplaymessage