Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Doikki committed Apr 8, 2018
1 parent f59ea80 commit af2027d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ ijkVideoView.start(); //开始播放,不调用则不自动播放
PlayerConfig playerConfig = new PlayerConfig.Builder()
.enableCache() //启用边播边缓存功能
.autoRotate() //启用重力感应自动进入/退出全屏功能
.useAndroidMediaPlayer()//启动AndroidMediaPlayer,不调用此方法默认使用IjkPlayer
.useSurfaceView() //启用SurfaceView显示视频,不调用默认使用TextureView
.enableMediaCodec()//启动硬解码,启用后可能导致视频黑屏,音画不同步
.usingAndroidMediaPlayer()//启动AndroidMediaPlayer,不调用此方法默认使用IjkPlayer
.usingSurfaceView() //启用SurfaceView显示视频,不调用默认使用TextureView
.build();
ijkVideoView.setPlayerConfig(playerConfig);
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
}

public void skipToVodPlayer(View view) {
// String absolutePath = Environment.getExternalStorageDirectory().getAbsolutePath();
// String url = "file://" + absolutePath + File.separator + "test.mp4";
// L.e(url);
Intent intent = new Intent(this, PlayerActivity.class);
intent.putExtra("url", VOD_URL);
intent.putExtra("isLive", false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import com.dueeeke.videoplayer.player.PlayerConfig;

/**
* 播放其他链接
* 播放器演示
* Created by Devlin_n on 2017/4/7.
*/

Expand Down Expand Up @@ -70,6 +70,7 @@ protected void onPause() {
@Override
protected void onResume() {
super.onResume();
ijkVideoView.resume();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

public class MyApplication extends Application{

public static MyApplication instance;
private static MyApplication instance;

@Override
public void onCreate() {
Expand Down

0 comments on commit af2027d

Please sign in to comment.