Commit 6d470060 authored by Han Ruisong's avatar Han Ruisong
Browse files

更新到v3.7.1

1. 新增平台统计功能。
2. 优化SDK结构。
parent bfa44a58
No preview for this file type
No preview for this file type
......@@ -5,7 +5,7 @@ android {
compileSdkVersion 29
defaultConfig {
applicationId "com.bokecc.vod"
minSdkVersion 16
minSdkVersion 17
targetSdkVersion 29
versionCode 1
versionName "1.0"
......@@ -33,10 +33,11 @@ dependencies {
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
//获得场景视频SDK,必须引入
implementation 'com.bokecc:vod:3.7.0'
//播放加密视频必须引用http和drmv6
implementation 'com.bokecc:http:1.2.0'
implementation 'com.bokecc:drmv6:2.19.0'
implementation 'com.bokecc:vod:3.7.1'
//必须引用commonLib
implementation 'com.bokecc:commonLib:0.1.9'
//必须引用
implementation 'com.bokecc:drm:1.2.0'
//使用DWIjkMediaPlayer 倍速播放器引入
implementation 'com.bokecc:speedplay:2.19.3'
//上传视频时使用压缩功能时需要引用
......@@ -49,7 +50,7 @@ dependencies {
implementation 'com.github.ctiao:DanmakuFlameMaster:0.9.25'
//noinspection GradleCompatible
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
}
......@@ -18,7 +18,6 @@ public class AccountInfoActivity extends AppCompatActivity {
private EditText et_verification_code;
private ImageView iv_back;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
......
......@@ -293,7 +293,7 @@ public class MainActivity extends AppCompatActivity {
private void closeSmallWindow() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
sendBroadcast(new Intent("com.bokecc.vod.play.SMALL_WINDOW").putExtra("control", 3));
sendBroadcast(new Intent("com.bokecc.vod.play.SMALL_WINDOW").putExtra("control",3));
}
}
}
......@@ -3162,6 +3162,8 @@ public class MediaPlayActivity extends Activity implements View.OnClickListener,
player.pause();
player.stop();
player.reset();
//setClientId()方法在setVideoPlayInfo()前调用,可以通过此方法设置用户标识,出问题时方便排查
player.setClientId("");
player.setVideoPlayInfo(videoId, ConfigUtil.USERID, ConfigUtil.API_KEY, verificationCode, activity);
player.setSurface(playSurface);
HuodeApplication.getDRMServer().resetLocalPlay();
......
......@@ -3186,6 +3186,8 @@ public class SpeedPlayActivity extends Activity implements View.OnClickListener,
player.pause();
player.stop();
player.reset();
//setClientId()方法在setVideoPlayInfo()前调用,可以通过此方法设置用户标识,出问题时方便排查
player.setClientId("");
player.setVideoPlayInfo(videoId, ConfigUtil.USERID, ConfigUtil.API_KEY, verificationCode, activity);
player.setSurface(playSurface);
HuodeApplication.getDRMServer().resetLocalPlay();
......
......@@ -2366,6 +2366,7 @@ public class VrPlayActivity extends Activity implements View.OnClickListener,
player.pause();
player.stop();
player.reset();
player.setClientId("");
player.setVideoPlayInfo(videoId, ConfigUtil.USERID, ConfigUtil.API_KEY, verificationCode, activity);
HuodeApplication.getDRMServer().resetLocalPlay();
player.setAudioPlay(isAudioMode);
......
......@@ -19,8 +19,9 @@ allprojects {
repositories {
google()
jcenter()
//必须配置
//以下两个必须配置
maven {url 'https://dl.bintray.com/bokecc/maven'}
maven {url 'http://nexus-app.bokecc.com/repository/sdk-group/'}
//使用投屏功能时添加此配置,不使用不需要
maven { url 'http://4thline.org/m2'}
}
......
......@@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_201) on Fri Jun 19 13:40:01 CST 2020 -->
<!-- Generated by javadoc (1.8.0_201) on Tue Jul 14 14:49:41 CST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>所有类 (okccsdk)</title>
<meta name="date" content="2020-06-19">
<meta name="date" content="2020-07-14">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script>
</head>
......@@ -14,18 +14,13 @@
<div class="indexContainer">
<ul>
<li><a href="com/bokecc/sdk/mobile/play/DanmuInfo.html" title="com.bokecc.sdk.mobile.play中的类" target="classFrame">DanmuInfo</a></li>
<li><a href="com/bokecc/sdk/mobile/drm/DESUtil.html" title="com.bokecc.sdk.mobile.drm中的类" target="classFrame">DESUtil</a></li>
<li><a href="com/bokecc/sdk/mobile/drm/DESUtil.KEY_STORE.html" title="com.bokecc.sdk.mobile.drm中的枚举" target="classFrame">DESUtil.KEY_STORE</a></li>
<li><a href="com/bokecc/sdk/mobile/download/Downloader.html" title="com.bokecc.sdk.mobile.download中的类" target="classFrame">Downloader</a></li>
<li><a href="com/bokecc/sdk/mobile/download/DownloadListener.html" title="com.bokecc.sdk.mobile.download中的接口" target="classFrame"><span class="interfaceName">DownloadListener</span></a></li>
<li><a href="com/bokecc/sdk/mobile/drm/DRMServer.html" title="com.bokecc.sdk.mobile.drm中的类" target="classFrame">DRMServer</a></li>
<li><a href="com/bokecc/sdk/mobile/ad/DWADRequest.html" title="com.bokecc.sdk.mobile.ad中的类" target="classFrame">DWADRequest</a></li>
<li><a href="com/bokecc/sdk/mobile/play/DWIjkMediaPlayer.html" title="com.bokecc.sdk.mobile.play中的类" target="classFrame">DWIjkMediaPlayer</a></li>
<li><a href="com/bokecc/sdk/mobile/ad/DWMediaAD.html" title="com.bokecc.sdk.mobile.ad中的类" target="classFrame">DWMediaAD</a></li>
<li><a href="com/bokecc/sdk/mobile/ad/DWMediaADListener.html" title="com.bokecc.sdk.mobile.ad中的接口" target="classFrame"><span class="interfaceName">DWMediaADListener</span></a></li>
<li><a href="com/bokecc/sdk/mobile/play/DWMediaPlayer.html" title="com.bokecc.sdk.mobile.play中的类" target="classFrame">DWMediaPlayer</a></li>
<li><a href="com/bokecc/sdk/mobile/util/DWSdkStorage.html" title="com.bokecc.sdk.mobile.util中的接口" target="classFrame"><span class="interfaceName">DWSdkStorage</span></a></li>
<li><a href="com/bokecc/sdk/mobile/util/DWStorageUtil.html" title="com.bokecc.sdk.mobile.util中的类" target="classFrame">DWStorageUtil</a></li>
<li><a href="com/bokecc/sdk/mobile/exception/ErrorCode.html" title="com.bokecc.sdk.mobile.exception中的枚举" target="classFrame">ErrorCode</a></li>
<li><a href="com/bokecc/sdk/mobile/filter/Filter.html" title="com.bokecc.sdk.mobile.filter中的类" target="classFrame">Filter</a></li>
<li><a href="com/bokecc/sdk/mobile/filter/FilterExecuteAsyncTaskListener.html" title="com.bokecc.sdk.mobile.filter中的接口" target="classFrame"><span class="interfaceName">FilterExecuteAsyncTaskListener</span></a></li>
......
......@@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_201) on Fri Jun 19 13:40:01 CST 2020 -->
<!-- Generated by javadoc (1.8.0_201) on Tue Jul 14 14:49:41 CST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>所有类 (okccsdk)</title>
<meta name="date" content="2020-06-19">
<meta name="date" content="2020-07-14">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script>
</head>
......@@ -14,18 +14,13 @@
<div class="indexContainer">
<ul>
<li><a href="com/bokecc/sdk/mobile/play/DanmuInfo.html" title="com.bokecc.sdk.mobile.play中的类">DanmuInfo</a></li>
<li><a href="com/bokecc/sdk/mobile/drm/DESUtil.html" title="com.bokecc.sdk.mobile.drm中的类">DESUtil</a></li>
<li><a href="com/bokecc/sdk/mobile/drm/DESUtil.KEY_STORE.html" title="com.bokecc.sdk.mobile.drm中的枚举">DESUtil.KEY_STORE</a></li>
<li><a href="com/bokecc/sdk/mobile/download/Downloader.html" title="com.bokecc.sdk.mobile.download中的类">Downloader</a></li>
<li><a href="com/bokecc/sdk/mobile/download/DownloadListener.html" title="com.bokecc.sdk.mobile.download中的接口"><span class="interfaceName">DownloadListener</span></a></li>
<li><a href="com/bokecc/sdk/mobile/drm/DRMServer.html" title="com.bokecc.sdk.mobile.drm中的类">DRMServer</a></li>
<li><a href="com/bokecc/sdk/mobile/ad/DWADRequest.html" title="com.bokecc.sdk.mobile.ad中的类">DWADRequest</a></li>
<li><a href="com/bokecc/sdk/mobile/play/DWIjkMediaPlayer.html" title="com.bokecc.sdk.mobile.play中的类">DWIjkMediaPlayer</a></li>
<li><a href="com/bokecc/sdk/mobile/ad/DWMediaAD.html" title="com.bokecc.sdk.mobile.ad中的类">DWMediaAD</a></li>
<li><a href="com/bokecc/sdk/mobile/ad/DWMediaADListener.html" title="com.bokecc.sdk.mobile.ad中的接口"><span class="interfaceName">DWMediaADListener</span></a></li>
<li><a href="com/bokecc/sdk/mobile/play/DWMediaPlayer.html" title="com.bokecc.sdk.mobile.play中的类">DWMediaPlayer</a></li>
<li><a href="com/bokecc/sdk/mobile/util/DWSdkStorage.html" title="com.bokecc.sdk.mobile.util中的接口"><span class="interfaceName">DWSdkStorage</span></a></li>
<li><a href="com/bokecc/sdk/mobile/util/DWStorageUtil.html" title="com.bokecc.sdk.mobile.util中的类">DWStorageUtil</a></li>
<li><a href="com/bokecc/sdk/mobile/exception/ErrorCode.html" title="com.bokecc.sdk.mobile.exception中的枚举">ErrorCode</a></li>
<li><a href="com/bokecc/sdk/mobile/filter/Filter.html" title="com.bokecc.sdk.mobile.filter中的类">Filter</a></li>
<li><a href="com/bokecc/sdk/mobile/filter/FilterExecuteAsyncTaskListener.html" title="com.bokecc.sdk.mobile.filter中的接口"><span class="interfaceName">FilterExecuteAsyncTaskListener</span></a></li>
......
......@@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_201) on Fri Jun 19 13:40:01 CST 2020 -->
<!-- Generated by javadoc (1.8.0_201) on Tue Jul 14 14:49:41 CST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DWADRequest (okccsdk)</title>
<meta name="date" content="2020-06-19">
<meta name="date" content="2020-07-14">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
......
......@@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_201) on Fri Jun 19 13:40:01 CST 2020 -->
<!-- Generated by javadoc (1.8.0_201) on Tue Jul 14 14:49:41 CST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DWMediaAD (okccsdk)</title>
<meta name="date" content="2020-06-19">
<meta name="date" content="2020-07-14">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
......
......@@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_201) on Fri Jun 19 13:40:01 CST 2020 -->
<!-- Generated by javadoc (1.8.0_201) on Tue Jul 14 14:49:41 CST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DWMediaADListener (okccsdk)</title>
<meta name="date" content="2020-06-19">
<meta name="date" content="2020-07-14">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
......
......@@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_201) on Fri Jun 19 13:40:01 CST 2020 -->
<!-- Generated by javadoc (1.8.0_201) on Tue Jul 14 14:49:41 CST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>FrontADInfo.AdBean (okccsdk)</title>
<meta name="date" content="2020-06-19">
<meta name="date" content="2020-07-14">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
......
......@@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_201) on Fri Jun 19 13:40:01 CST 2020 -->
<!-- Generated by javadoc (1.8.0_201) on Tue Jul 14 14:49:41 CST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>FrontADInfo (okccsdk)</title>
<meta name="date" content="2020-06-19">
<meta name="date" content="2020-07-14">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
......
......@@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_201) on Fri Jun 19 13:40:01 CST 2020 -->
<!-- Generated by javadoc (1.8.0_201) on Tue Jul 14 14:49:41 CST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>PauseADInfo.AdBean (okccsdk)</title>
<meta name="date" content="2020-06-19">
<meta name="date" content="2020-07-14">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
......
......@@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_201) on Fri Jun 19 13:40:01 CST 2020 -->
<!-- Generated by javadoc (1.8.0_201) on Tue Jul 14 14:49:41 CST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>PauseADInfo (okccsdk)</title>
<meta name="date" content="2020-06-19">
<meta name="date" content="2020-07-14">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
......
......@@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_201) on Fri Jun 19 13:40:01 CST 2020 -->
<!-- Generated by javadoc (1.8.0_201) on Tue Jul 14 14:49:41 CST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>com.bokecc.sdk.mobile.ad (okccsdk)</title>
<meta name="date" content="2020-06-19">
<meta name="date" content="2020-07-14">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
......
......@@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_201) on Fri Jun 19 13:40:01 CST 2020 -->
<!-- Generated by javadoc (1.8.0_201) on Tue Jul 14 14:49:41 CST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>com.bokecc.sdk.mobile.ad (okccsdk)</title>
<meta name="date" content="2020-06-19">
<meta name="date" content="2020-07-14">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment