Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hty527/iPlayer
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.1.26.1
Choose a base ref
...
head repository: hty527/iPlayer
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 3 commits
  • 3 files changed
  • 1 contributor

Commits on May 29, 2023

  1. doc update

    hty527 committed May 29, 2023
    Copy the full SHA
    d8aebdd View commit details
  2. doc update

    hty527 committed May 29, 2023
    Copy the full SHA
    17864b3 View commit details
  3. doc update

    hty527 committed May 29, 2023
    Copy the full SHA
    8d81703 View commit details
Showing with 16 additions and 16 deletions.
  1. BIN doc/apk/iPlayer-2.1.26.apk
  2. +1 −1 doc/update/updateLog.md
  3. +15 −15 doc/update/wiki.md
Binary file modified doc/apk/iPlayer-2.1.26.apk
Binary file not shown.
2 changes: 1 addition & 1 deletion doc/update/updateLog.md
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
### 2.1.26.1
**更新日期:** 2023-5-29<br/>
**更新内容:**<br/>
>1. 全局悬浮窗窗口位置支持记忆;<br/>
>1. SDK全局悬浮窗窗口位置支持记忆;<br/>
>2. SDK默认控制器初始化调整;<br/>
>3. Demo画中画示例优化;<br/>
___
30 changes: 15 additions & 15 deletions doc/update/wiki.md
Original file line number Diff line number Diff line change
@@ -4,30 +4,29 @@
## 全量SDK
```
//音视频预缓存+边播边存
//implementation 'com.github.hty527.iPlayer:cache:2.1.26.1'
implementation 'com.github.hty527.iPlayer:cache:2.1.26.1'
//ijk音视频解码器
//implementation 'com.github.hty527.iPlayer:ijk:2.1.26.1'
implementation 'com.github.hty527.iPlayer:ijk:2.1.26.1'
//exo音视频解码器
//implementation 'com.github.hty527.iPlayer:exo:2.1.26.1'
implementation 'com.github.hty527.iPlayer:exo:2.1.26.1'
//选择exo音视频解码器时需引用
//以下为必须项,SDK内部已引用,集成时无需引用
//implementation 'com.google.android.exoplayer:exoplayer:2.18.1'//(必需)
//implementation 'com.google.android.exoplayer:exoplayer-core:2.18.1'//核心功能(必需)
//implementation "com.google.android.exoplayer:extension-rtmp:2.18.1"//rtmp直播流解码协议//(必需)
implementation 'com.google.android.exoplayer:exoplayer:2.18.1'//(必需)
implementation 'com.google.android.exoplayer:exoplayer-core:2.18.1'//核心功能(必需)
implementation "com.google.android.exoplayer:extension-rtmp:2.18.1"//rtmp直播流解码协议//(必需)
//以下为exo解码器可选依赖,请根据需要实现
//implementation 'com.google.android.exoplayer:exoplayer-dash:2.18.1'//支持DASH内容
//implementation "com.google.android.exoplayer:exoplayer-hls:2.18.1"//支持HLS内容
//implementation "com.google.android.exoplayer:exoplayer-rtsp:2.18.1"//rtsp直播流解码协议
implementation 'com.google.android.exoplayer:exoplayer-dash:2.18.1'//支持DASH内容
implementation "com.google.android.exoplayer:exoplayer-hls:2.18.1"//支持HLS内容
implementation "com.google.android.exoplayer:exoplayer-rtsp:2.18.1"//rtsp直播流解码协议
```
## 常用文档
### 一、常用api使用说明
#### 1、播放器API
* 1.1、请阅读[IPlayerControl][1]
* 1.2、常用API
* 1.1、常用API
```
mVideoPlayer.setZoomModel(IMediaPlayer.MODE_ZOOM_TO_FIT);//设置画面缩放|裁剪模式为居中显示(原始大小),定宽等高 (更多缩放模式请参考IMediaPlayer设置),默认为IMediaPlayer.MODE_ZOOM_TO_FIT
mVideoPlayer.setLandscapeWindowTranslucent(true);//全屏播放下是否启用沉浸样式,默认关闭。辅以setZoomModel为IMediaPlayer.MODE_ZOOM_CROPPING效果最佳,默认为false
@@ -43,9 +42,9 @@
mVideoPlayer.setAutoChangeOrientation(true);//是否开启重力旋转。当系统"自动旋转"开启+正在播放生效伽玛琪
mVideoPlayer.shutFullScreenOrientation();//开启/退出全屏时禁止旋转Activity方向,默认开启
```
* 1.2、更多API请阅读[IPlayerControl][1]
#### 2、控制器API
* 2.1、请阅读[IVideoController][2]
* 2.2、常用API
* 2.1、常用API
```
mController.setTitle("测试地址播放");//视频标题(默认控制器横屏状态下可见),所有UI交互组件都会收到setTitle回调
mController.setPreViewTotalDuration("3600");//注意:设置虚拟总时长(一旦设置播放器内部走片段试看流程),试看结束回调至OnControllerEventListener的onCompletion()方法,启用试看流程时播放器必须设置为mVideoPlayer.setLoop(true);
@@ -59,6 +58,7 @@
//mController.setGestureEnabled(true);//是否开启手势控制,默认关闭,关闭之后,手势调节进度,音量,亮度功能将关闭
//mController.setDoubleTapTogglePlayEnabled(true);//是否开启双击播放/暂停,默认关闭
```
* 2.2、更多API请阅读[IVideoController][2]
#### 3、交互组件API
* 3.1、请阅读[IControllerView][3]
#### 4、自定义解码器
@@ -99,7 +99,7 @@
VideoController controller=new VideoController(videoPlayer.getContext());
mVideoPlayer.setController(controller);//将控制器绑定到播放器
//或使用SDK内置的
mVideoPlayer.createController();
//mVideoPlayer.setController(mVideoPlayer.initController());
```
##### 5.2、自定义UI交互组件
* 5.2.1、为什么有自定义Controller还要整个"自定义UI交互组件"出来?<br>
@@ -198,7 +198,7 @@
* 5.4.2、使用UI交互组件
```
//创建一个默认控制器
VideoController controller = new VideoController(mVideoPlayer.getContext());
VideoController controller = mVideoPlayer.initController();
//将播放器绑定到控制器
mVideoPlayer.setController(controller);
//一键使用默认UI交互组件绑定到控制器