Skip to content

Commit

Permalink
1、RxFFmpegPlayer播放器支持切换系统MediaPlayer内核
Browse files Browse the repository at this point in the history
2、性能代码优化等
  • Loading branch information
microshow committed Jul 14, 2020
1 parent 33858a1 commit 5cca514
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ defaultConfig {

* 视频画面支持双指缩放、旋转、移动等手势操作

* 支持切换系统MediaPlayer内核

<img src="/preview/icon/screen_player.gif" alt="图-1:screen_player.gif" width="240px"></img>


Expand Down
5 changes: 5 additions & 0 deletions preview/docs/player.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

* **视频画面支持双指缩放、旋转、移动等手势操作**

* **支持切换系统MediaPlayer内核**


# 使用方式

Expand Down Expand Up @@ -59,6 +61,9 @@

this.mPlayerView = binding.mPlayerView;

//设置播放器内核
mPlayerView.switchPlayerCore(RxFFmpegPlayerView.PlayerCoreType.PCT_RXFFMPEG_PLAYER);

//设置控制层容器 和 视频尺寸适配模式
mPlayerView.setController(new RxFFmpegPlayerControllerImpl(getActivity()), MeasureHelper.FitModel.FM_DEFAULT);

Expand Down

0 comments on commit 5cca514

Please sign in to comment.