基于BREW平台的手机多功能播放器系统的设计与实现
原站著录信息
摘要
硕士学位论文 论文题目: 基于BREW平台的手机多功能播放器系统的设计与实现 The design and implementation of mobile multi-player system Based on the BREW platform 目 录 摘 要 3 ABSTRACT 5 目 录 7 CONTENTS 9 第1章 绪 论 11 1.1研究背景 11 1.1.1手机操作系统市场调研 11 1.1.2主流手机操作系统对比 11 1.1.3 BREW的发展方向 14 1.1.4 BREW对3G的借鉴…
硕士学位论文
论文题目:
基于BREW平台的手机多功能播放器系统的设计与实现
The design and implementation of mobile multi-player system Based on the BREW platform
目 录
摘 要 3
ABSTRACT 5
目 录 7
CONTENTS 9
第1章 绪 论 11
1.1研究背景 11
1.1.1手机操作系统市场调研 11
1.1.2主流手机操作系统对比 11
1.1.3 BREW的发展方向 14
1.1.4 BREW对3G的借鉴 16
1.2 研究内容及特色 17
1.3 本章小结 17
第2章 BREW平台剖析及系统的关键技术 18
2.1 BREW是什么 18
2.1.1 BREW系统的组成 18
2.1.2 BDS系统 20
2.1.3 BREW设备系统架构 21
2.1.4 BREW SDK的组成 22
2.2 BREW核心技术剖析 24
2.2.1 BREW事件处理机制 24
2.2.1.1 BREW中的事件类型 24
2.2.1.2 BREW事件处理机制 25
2.2.2 BREW的面向对象机制 26
2.2.2.1 BREW基于引用计数的接口 26
2.2.2.2 BREW接口的继承和多态 27
2.2.3 BREW回调机制 27
2.3 应用程序开发中的关键技术 30
2.3.1 瀑布模型 30
2. 3.2 MVC原理和架构 31
2.3.2.1 MVC原理和架构 31
2.3.2.2 MVC模式的优缺点 33
1. MVC模式的优点 33
2. MVC模式的缺点 33
2.3.2.3 MVC模式在BREW中的应用 34
第3章 系统设计 35
3.1 需求的提出 35
3.1.1手机播放器存在的问题 35
3.1.2市场形势 35
3.1.3 系统目标 35
3.2 需求分析 36
3.2.1模块划分 36
3.2.2用例分析 37
3.2.3系统流程分析 39
3.3 基本设计 39
3.3.1 画面设计 39
3.3.2画面状态迁移设计图 46
3.4 详细设计 47
3.4.1时序图 47
3.4.2主要模块类图 54
第4章 手机多媒体播放器在BREW中的实现 56
4.1 开发工具和环境 56
4.2主要接口的使用 56
4.2.1 IShell接口 56
4.2.2 IDisplay接口 56
4.2.3 AEERect接口 57
4.2.4 IMenu接口 57
4.2.5 IMedia接口 57
4.2.6计时器接口 57
4.3 APP的实现 58
4.3.1 APP的分类 58
4.3.2 APP基本结构 58
4.3.3 APP基本结构 58
4.4核心功能的实现 60
4.4.1动画的插播 60
4.4.2进度条的同步 60
4.4.3循环播放的实现 60
4.4.4播放时间的显示 63
4.5编码过程中的难点 64
4.5.1资源的申请和释放 64
4.5.2编码规范问题 64
4.5.3代码重用性问题 65
4.6测试 65
4.6.1测试用例 66
第五章 结 论 67
参 考 文 献 68
致 谢 70
CONTENTS
ABSTRACT 3
ABSTRACT 5
CONTENTS 7
CONTENTS 9
CHAPTER Ⅰ Introduction 11
1.1 Backgrounds 11
1.1.1 The market research of mobile phone operating system 11
1.1.2 Comparation of the mainstream mobile phone operating system 11
1.1.3 The development direction of BREW 14
1.1.4 Reference of BREW for 3G 16
1.2 Research content and features 17
1.3 Chapter Summary 17
CHAPTERⅡBREW platform analysis and the key technologies of system 18
2.1 What was BREW 18
2.1.1 The system components of BREW 18
2.1.2 The system of BDS 20
2.1.3 System architecture of BREW Device 21
2.1.4 The composition of the BREW SDK 22
2.2 Analysis of BREW core technology 24
2.2.1 The event handling mechanism of BREW 24
2.2.1.1 The event type of BREW 24
2.2.1.2 The event handling mechanism of BREW 25
2.2.2 The object-oriented mechanism of BREW 26
2.2.2.1 Interface of BREW-based reference counting 26
2.2.2.2 Inheritance and polymorphism of BREW interface 27
2.2.3 Callback mechanism of BREW 27
2.3 key technologies of application development 30
2.3.1 Waterwall model 30
2. 3.2 Principle and structure of MVC 31
2.3.2.1 Principle and structure of MVC 31
2.3.2.2 Advantages and defects of MVC model 33
1. Advantages of MVC model 33
2. Defectshttp: of MVC model 33
2.3.2.3 Applications of MVC Model in BREW 34
CHAPTER Ⅲ The design of system 35
3.1 Making demands 35
3.1.1 Problems of mobile Player 35
3.1.2 Market situation 35
3.1.3 System target 35
3.2 Requirements Analysis 36
3.2.1 Module division 36
3.2.2 The analysis of examples 37
3.2.3 Analysis of system process 39
3.3 Basic design 39
3.3.1 Screen design 39
3.3.2 Design of the screen state Migration 46
3.4 Detail design 47
3.4.1 Figure of timing 47
3.4.2 Figure of the main module 54
CHAPTER Ⅳ Realization of mobile multimedia players in the BREW 56
4.1 Tools and environment of development 56
4.2 Using of the main interface 56
4.2.1 Interface of IShell 56
4.2.2 Interface of IDisplay 56
4.2.3 Interface of AEERect 57
4.2.4 Interface of Imenu 57
4.2.5 Interface of Imedia 57
4.2.6 Interface of timer 57
4.3 Implementation of APP 58
4.3.1 Classification of APP 58
4.3.2 The basic structure of APP 58
4.3.3 The basic structure of APP 58
4.4 Implementation of core functionality 60
4.4.1 Insertion of animation 60
4.4.2 The Synchronization of progress bar 60
4.4.3 The realization of loop 60
4.4.4 Display of the play time 63
4.5 The difficulties in the encoding process 64
4.5.1 Applications and release of resource allocation 64
4.5.2 Standardization of coding 64
4.5.3 Reusing problem of code 65
4.6 Testing 65
4.6.1 The examples of testing 66
CHAPTER Ⅴ Conclusion 67
References 68
ThankS 70
摘 要
在移动技术高速发展的今天,移动通讯设备运行平台、便携式设备操作系统得到迅猛发展。手机功能的多样化正在成为手机今后发展的重要方向。手机的功能正在向越来越像PC的功能迈进,手机娱乐功能的开发已经提上了重要日程。
本文围绕BREW技术的核心,深入探讨了BREW的原理和涉及到的相关技术,分析了BREW技术的优缺点,BREW技术的发展前景和基于BREW技术下的手机开发MVC框架的设计,简单介绍了当前主流手机操作系统的发展趋势和各自的优势。剖析了基于BREW技术的应用程序的运行流程。在此基础上,完成了基于BREW平台的多功能播放器应用程序的开发。
BREW作为无线数据应用程序开发和执行的通用接口平台,提供了一个高效、低成本、可扩展的应用程序执行环境。制造商和开发人员可以随时对运行环境进行扩展,提供应用程序需要的各种附加性能模块。本文首先对BREW平台基本技术做了剖析,分析了BREW的事件处理、面向对象机制、回调机制等核心技术。然后,通过软件工程的瀑布模型进行手机多功能播放器应用程序的开发。通过BREW平台结合C语言对手机多功能媒体播放器进行开发,实现了对动画的播放,MP3、WMA格式的音频播放,WMV格式视频播放等功能。
整个BREW系统由开发平台、运行平台和服务器三个要素组成。开发平台就是我们所使用的BREW SDK,用来在PC端开发可以在运行平台运行的程序。运行平台就是指可以运行BREW应用程序的移动通讯设备上的BREW运行环境,它的核心是BREW的Porting Kit。服务器是连接开发和运行平台的一个“连接器”,开发平台所开发出的BREW应用程序放在服务器上,以便于运行平台的用户通过无线通讯网络下载应用程序,其核心是ADS(Application Download Server)服务器,ADS和其他的辅助工具合起来统称为BDS(BREW Distribution System)系统。在整个BREW系统中这三个要素缺一不可,没有了哪一个都会让BREW显得不完整
本文通过编码与测试实现了Brew平台中的媒体文件播放器。在手机应用层,完成了作为手机娱乐部分的多媒体文件的播放。系统功能比较全面且实用,将为基于BREW平台的手机多功能播放器的开发提供良好的借鉴和参考。
关键词:BREW、瀑布模型、手机多功能播放器
ABSTRACT
With the rapid development of mobile technology,the platform for mobile communications equipment,and portable equipment have been the rapid development of the operating system.The diversification of mobile phone features are becomin
