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