开发学院手机开发Android 开发 Android 多媒体框架 OpenCore(PacketVideo):Pl... 阅读

Android 多媒体框架 OpenCore(PacketVideo):Player和Auther

 2010-03-03 16:51:00 来源:WEB开发网   
核心提示:Engine的接口,实现Android的媒体播放器的服务所需要接口,Android 多媒体框架 OpenCore(PacketVideo):Player和Auther(3),即最终实现一个PVPlayer,而PVPlayer实际上是继承了 MediaPlayerInterface,PVPlayer通过调用PlayerD
Engine的接口,实现Android的媒体播放器的服务所需要接口,即最终实现一个PVPlayer,而PVPlayer实际上是继承了 MediaPlayerInterface。在实现过程中,首先实现了一个PlayerDriver,然后再使用PVPlayer,PVPlayer通过调用PlayerDriver来完成具体的功能。对PVPlayerDriver的各种操作使用各种命令来完成,这些命令在playerdriver.h 中进行的定义。

enum player_command_type {

PLAYER_QUIT = 1,

PLAYER_SETUP = 2,

PLAYER_SET_DATA_SOURCE = 3,

PLAYER_SET_VIDEO_SURFACE = 4,

PLAYER_SET_AUDIO_SINK = 5,

PLAYER_INIT = 6,

PLAYER_PREPARE = 7,

PLAYER_START = 8,

PLAYER_STOP = 9,

PLAYER_PAUSE = 10,

PLAYER_RESET = 11,

PLAYER_SET_LOOP = 12,

PLAYER_SEEK = 13,

PLAYER_GET_POSITION = 14,

PLAYER_GET_DURATION = 15,

PLAYER_GET_STATUS = 16,

PLAYER_REMOVE_DATA_SOURCE = 17,

PLAYER_CANCEL_ALL_COMMANDS = 18,

};

第六部分 OpenCore Author介绍

6.1 Android Author

android/author/

|-- Android.mk

|-- android_audio_input.cpp

|-- android_audio_input.h

|-- android_audio_input_threadsafe_callbacks.cpp

|-- android_audio_input_threadsafe_callbacks.h

|-- android_camera_input.cpp

|-- android_camera_input.h

|-- authordriver.cpp

|-- authordriver.h

`-- mediarecorder.cpp

6.2 author引擎

engines/author/

|-- Android.mk

|-- build

| |-- make

| `-- makefile

|-- include

| |-- pvauthorenginefactory.h

| `-- pvauthorengineinterface.h

|-- src

| |-- pvae_tuneables.h

| |-- pvaenodeutility.cpp

| |-- pvaenodeutility.h

| |-- pvauthorengine.cpp

| |-- pvauthorengine.h

| `-- single_core

`-- test

|-- Android.mk

|-- build

|-- config

|-- src

`-- test_input

上一页  1 2 3 

Tags:Android 多媒体 框架

编辑录入:coldstar [复制链接] [打 印]
[]
  • 好
  • 好的评价 如果觉得好,就请您
      0%(0)
  • 差
  • 差的评价 如果觉得差,就请您
      0%(0)
赞助商链接