




已阅读5页,还剩50页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1,Chapter32Multimedia:Audio,Video,SpeechSynthesisandRecognition,Outline32.1Introduction32.2AddingBackgroundSoundswiththeBGSOUNDElement32.3AddingVideowiththeIMGElementsDYNSRCProperty32.4AddingAudioorVideowiththeEMBEDElement32.5UsingtheWindowsMediaPlayerActiveXControl32.6MicrosoftAgentControl32.7RealPlayerActivexControl32.8EmbeddingVRMLinaWebpage32.9UsingStreamingMedia,2,32.1Introduction,MultimediaPerformanceintensiveInternetbandwidthandprocessorspeedCarefullydesignmultimedia-basedWebapplicationsMultimediafileslargeSometechnologiesrequirecompletedownloadStreamingmediaAudioandvideofilescanbeginplayingwhilefilesaredownloading,3,32.2AddingBackgroundSoundswiththeBGSOUNDElement,BGSOUNDelementSpecifictoIEPlaceinHEADsectionEndingtagoptionalFourpropertiesSRCURLofaudioclipLOOP-1(default)loopsuntiluserbrowsesdifferentWebpageorclicksStopbuttonPositiveintegerspecifiesnumberoftimestoloopNegativevalues(otherthan1)andzeroplaycliponce,4,32.2AddingBackgroundSoundswiththeBGSOUNDElement,Fourproperties(continued)BALANCERangefrom10000to10000-10000:soundonlyfromleftspeaker10000:soundonlyfromrightspeaker0:default,soundbalancedbetweenleftandrightspeakersCannotbesetviascriptingVOLUMEBetween10000(minimumvolume)and0(maximumvolume)Default:0,1.1EmbedaudiofilewithBGSOUNDelement1.2DefinefunctionchangePropertiestoupdatetousersinput1.3UseparseInttoconvertinput,7,DemonstratingbackgroundaudiowithBGSOUND,8,32.3AddingVideowiththeIMGElementsDYNSRCProperty,IncludevideowithIMGelementUseDYNSRC(dynamicsource)attributeinsteadofSRCDYNSRCattributespecifictoIESTARTpropertyfileopen:videostartsplayingassoonasitloadsmouseover:videoplayswhenuserpositionsmouseovervideo,1.1EmbedvideousingDYNSRCpropertyofIMGelement1.2SetSTARTtomouseovertohavevideoplaywhenuserfirstpositionscursorovervideo,10,PlayingavideowiththeIMGelementsDYNSRCproperty,11,32.4AddingAudioorVideowiththeEMBEDElement,EMBEDelementEmbedsmediaclipinWebpageAllowsgraphicaluserinterfacetogiveusercontroloverclipBrowseroftenincludesGUIofplayerregisteredtohandlemediatypeWindowsMediaPlayerHIDDENpropertyPreventGUIfrombeingdisplayedGUIdisplayedbydefaultLOOPpropertyLoopclipforever,EmbedaudioclipusingEMBEDelement,14,EmbeddingaudiowiththeEMBEDelement,EmbedvideoclipusingEMBEDelement,16,EmbeddingvideowiththeEMBEDelement,17,32.5UsingtheWindowsMediaPlayerActiveXControl,WindowsMediaPlayerActiveXcontrolAccesstorangeofmediaformatsEmbedusingOBJECTelementParameters:FileNameSpecifiesfilecontainingmediaclipAutoStartBooleanforwhetherclipshouldstartplayingwhenitloadsShowControlsBooleanforwhethercontrolsshouldbedisplayedLoopBooleanforwhetherclipshouldloopinfinitelyMethods:PlayPause,1.1DefinefunctiontoggleVideotoplay/pausevideo1.2EmbedWindowsMediaPlayerActiveXcontrolforvideoclipusingOBJECTelement1.3Specifyparametersforcontrol,1.4EmbedaudioclipusingWindowsMediaPlayerActiveXcontrolwithOBJECTelement1.5Createbuttontoallowusertoplay/pausevideo,20,UsingtheOBJECTelementtoembedtheWindowsMediaPlayerActiveXcontrolinaWebpage,21,32.6MicrosoftAgentControl,MicrosoftAgentControlInteractiveanimatedcharactersFourpredefined:PeedytheParrotGenieMerlinRobbytheRobotMouseandkeyboardinteractionsSpeech(iftext-to-speechengineinstalled)LernoutandHauspieTruVoicetext-to-speechengineSpeechrecognition(ifspeechrecognitionengineinstalled)CreatecharacterswithMicrosoftCharacterEditorandMicrosoftLinguisticSoundEditingTool,1.1EmbedMicrosoftAgentusingOBJECTelement1.2EmbedLernoutandHauspieTruVoiceTTSengineusingOBJECTelement1.2.1CODEBASEspecifiesURLtodownloadcontrolandversionofcontrol1.3ScriptPeedytointeractwithuser,1.4DefinefunctionloadAgenttoloadMicrosoftAgentcharacter1.5LoadvariousanimationsforPeedy1.5.1UseGetmethodtodownloadstatesforcharacter,1.6CreateTABLEofitemsforPeedytodescribe,28,DemonstratingMicrosoftAgentandtheLernoutandHauspieTruVoiceTTSengine,29,DemonstratingMicrosoftAgentandtheLernoutandHauspieTruVoiceTTSengine,30,DemonstratingMicrosoftAgentandtheLernoutandHauspieTruVoiceTTSengine,31,32.6MicrosoftAgentControl,MicrosoftAgentActiveXcontrolsEmbeddedintoWebpagesCODEBASEpropertySpecifiesURLtodownloadnecessarysoftwareCharacterscollectionLoadmethodCharactermethodCharacterobjectGetmethod,Enhancepreviousexampletoincludevoicerecognition1.1IncludeMicrosoftSpeechRecognitionEnginewithOBJECTtag,Optionalwordsorphrasesenclosedinbrackets,1.2AddvoicecommandswithCommandscollectionsAddmethod,1.3CommandsobjectspropertiesCaption,VoiceandVisible,40,MicrosoftVoiceRecognitionEngineandMicrosoftAgent,41,MicrosoftVoiceRecognitionEngineandMicrosoftAgent,42,MicrosoftVoiceRecognitionEngineandMicrosoftAgent,43,32.6UsingMicrosoftAgentControl,OthereventsforMicrosoftAgentcontrol,44,32.6UsingMicrosoftAgentControl,OtherpropertiesofCharactersobject,45,32.7RealPlayerActiveXControl,EMBEDRealPlayerAddstreamingaudioinWebpageAttributes:TYPEMIMEtypeofembeddedfileWIDTHandHEIGHTSpecifydimensionsofcontrolAUTOSTARTBooleanforwhetheraudioshouldstartplayingwhenpageloadsCONTROLSSpecifieswhichcontrolsavailabletouserPlaybutton,Pausebutton,volumecontrol,etc.SRCLocationofstreamingaudio,1.1UseJavaScripttodynamicallychangestation,1.2InsertRealPlayerusingEMBEDelement,48,EmbeddingRealPlayerinaWebpage,49,32.8EmbeddingVRMLinaWebpage,VRMLVirtualRealityModelingLanguageMarkuplanguageforspecifying3DobjectsandscenesPurelytextVRMLfilesknownasworldsEndin.wrlfileextensionUseEMBEDelementtoplace.wrlfileIEandNetscapehavedownloadableplug-insforVRMLControlsallowyoutorotateworld,walkaroundorchangedirection,1.UseEMBEDelementtoincludeVRMLfileinaWebpage,51,EmbeddingVRM
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 陕西省汉中市宁强县2024-2025学年八年级下学期7月期末考试数学试卷(含答案)
- 湖北省武汉市东湖高新区2024-2025学年八年级下学期期末考试英语试卷(含答案无听力原文及音频)
- 恶劣天气安全的应急预案范文
- 绿色旅游的市场需求与前景分析
- DB64-T 1919-2023 无线电固定监测站机房及配套设施建设规范
- 2025年城镇公寓购房合同范本
- 永年燃气安全知识培训课件
- 机电设备管道安装方案
- 装配式建筑施工现场电气安全管理方案
- 生殖系统济源医学护理系43课件
- 6G多维度切片QoS保障-洞察及研究
- 2025-2026学年外研版(三起)(2024)小学英语四年级上册教学计划及进度表
- 2025年安徽国控集团所属企业招聘7人笔试备考题库及答案解析
- 2025年海南省警务辅助人员招聘考试(公共基础知识)历年参考题库含答案详解(5套)
- 城市道路清扫保洁协议
- 2025年医学检验在编考试题库
- 特色食品卖场建设方案(3篇)
- 高考3500词汇表(完整版)
- 思想道德与法治课件:专题五在实现中国梦的实践中放飞青春梦想
- 新人教A必修一《集合》课件
- 复用器械处理流程
评论
0/150
提交评论