1、简介
android-jungle-mediaplayer
是 Android 平台上一款多媒体播放/语音录制的库。使用它你可以很方便的实现语音、视频播放功能。有以下优点:
- 功能齐备,可自定制播放器、播放组件;
- 内置实现了一个播放器,可以不加修改使用;
- 视频播放支持
SurfaceView/TextureView
渲染; - 提供语音录制组件。
内置播放器支持以下功能:
- 手势(双击暂停/回复播放;水平滑动进度跳转;左侧上下滑动调节亮度;右侧上下滑动调节音量)
- 支持全屏/半屏播放;
- 支持屏幕旋转自动识别,并自动切换全屏/半屏;
- 可定制。
具体实现原理请参考我的系列博文:
- 【Android】 从头搭建视频播放器(1)——概述
- 【Android】 从头搭建视频播放器(2)——SystemMediaPlayerImpl
- 【Android】 从头搭建视频播放器(3)——手势检测 & 控制
- 【Android】 从头搭建视频播放器(4)——屏幕旋转处理
- 【Android】 从头搭建视频播放器(5)——将所有放在一起
/**
* Android Jungle-MediaPlayer framework project.
*
* Copyright 2016 Arno Zhang <zyfgood12@163.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/