... | @@ -105,6 +105,7 @@ public class HuodeApplication extends Application { |
... | @@ -105,6 +105,7 @@ public class HuodeApplication extends Application { |
|
super.onCreate();
|
|
super.onCreate();
|
|
initDWStorage();
|
|
initDWStorage();
|
|
startDRMServer();
|
|
startDRMServer();
|
|
|
|
InitializeManager.getInstance(getContext()).initialize();
|
|
}
|
|
}
|
|
|
|
|
|
// 启动DRMServer
|
|
// 启动DRMServer
|
... | @@ -754,6 +755,9 @@ SDK音频播放由DWMediaPlayer类实现,DWMediaPlayer继承了Android的媒 |
... | @@ -754,6 +755,9 @@ SDK音频播放由DWMediaPlayer类实现,DWMediaPlayer继承了Android的媒 |
|
目前播放器默认支持的为视频播放,想要进行音频播放,在prepareAsync()之前则需要如下设置:
|
|
目前播放器默认支持的为视频播放,想要进行音频播放,在prepareAsync()之前则需要如下设置:
|
|
|
|
|
|
```
|
|
```
|
|
|
|
//3.16.0版本之后需要设置autoPlay属性以开启自动播放
|
|
|
|
player.setAutoPlay(true);
|
|
|
|
|
|
player.setDefaultPlayMode(MediaMode.AUDIO, onPlayModeListener);
|
|
player.setDefaultPlayMode(MediaMode.AUDIO, onPlayModeListener);
|
|
player.setAudioPlay(true);
|
|
player.setAudioPlay(true);
|
|
player.prepareAsync();
|
|
player.prepareAsync();
|
... | | ... | |