Commit 76b20160 authored by Han Ruisong's avatar Han Ruisong
Browse files

升级到 v3.4.1

1.SDK新增播放器获取播放时长和暂停时长功能。
2.SDK优化上传功能。
parent 710756a4
No preview for this file type
No preview for this file type
......@@ -32,7 +32,7 @@ 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.4.0'
implementation 'com.bokecc:vod:3.4.1'
//播放加密视频必须引用http和drmv6
implementation 'com.bokecc:http:1.2.0'
implementation 'com.bokecc:drmv6:2.19.0'
......
......@@ -83,7 +83,6 @@ public class MainActivity extends AppCompatActivity {
//请求数据
initData();
}
private void initView() {
......
......@@ -739,7 +739,7 @@ public class MediaPlayActivity extends Activity implements View.OnClickListener,
player.setOnDreamWinErrorListener(this);
player.setOnErrorListener(this);
// 开启防录屏,会使加密视频投屏功能不能正常使用
// 开启防录屏,会使加密视频投屏功能不能正常使用
// player.setAntiRecordScreen(this);
//设置CustomId
player.setCustomId("HIHA2019");
......@@ -2096,6 +2096,10 @@ public class MediaPlayActivity extends Activity implements View.OnClickListener,
@Override
public void run() {
if (what == -38) {
return;
}
if (!isBackupPlay && !isLocalPlay && isFirstBuffer) {
startBackupPlay();
return;
......@@ -3256,9 +3260,9 @@ public class MediaPlayActivity extends Activity implements View.OnClickListener,
if (event.getKeyCode() == KeyEvent.KEYCODE_VOLUME_DOWN
|| event.getKeyCode() == KeyEvent.KEYCODE_VOLUME_UP) {
if (ll_volume.getVisibility()==View.VISIBLE){
ll_volume.setVisibility(View.GONE);
}
if (ll_volume.getVisibility() == View.VISIBLE) {
ll_volume.setVisibility(View.GONE);
}
}
return super.dispatchKeyEvent(event);
}
......
......@@ -746,7 +746,7 @@ public class SpeedPlayActivity extends Activity implements View.OnClickListener,
player.setOnDreamWinErrorListener(this);
player.setOnErrorListener(this);
//开启防录屏,会使加密视频投屏功能不能正常使用
player.setAntiRecordScreen(this);
// player.setAntiRecordScreen(this);
//设置CustomId
player.setCustomId("HIHA2019");
//获取字幕信息
......@@ -1937,8 +1937,6 @@ public class SpeedPlayActivity extends Activity implements View.OnClickListener,
switchDefPos = player.getCurrentPosition();
ll_load_video.setVisibility(View.VISIBLE);
hideOtherOperations();
player.pause();
player.stop();
player.reset();
player.setSurface(playSurface);
HuodeApplication.getDRMServer().reset();
......
......@@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_201) on Mon Dec 16 11:46:22 CST 2019 -->
<!-- Generated by javadoc (1.8.0_201) on Fri Feb 28 11:11:59 CST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>所有类 (okccsdk)</title>
<meta name="date" content="2019-12-16">
<meta name="date" content="2020-02-28">
<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 Mon Dec 16 11:46:22 CST 2019 -->
<!-- Generated by javadoc (1.8.0_201) on Fri Feb 28 11:11:59 CST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>所有类 (okccsdk)</title>
<meta name="date" content="2019-12-16">
<meta name="date" content="2020-02-28">
<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 Mon Dec 16 11:46:22 CST 2019 -->
<!-- Generated by javadoc (1.8.0_201) on Fri Feb 28 11:11:59 CST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DWADRequest (okccsdk)</title>
<meta name="date" content="2019-12-16">
<meta name="date" content="2020-02-28">
<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 Mon Dec 16 11:46:22 CST 2019 -->
<!-- Generated by javadoc (1.8.0_201) on Fri Feb 28 11:11:59 CST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DWMediaAD (okccsdk)</title>
<meta name="date" content="2019-12-16">
<meta name="date" content="2020-02-28">
<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 Mon Dec 16 11:46:22 CST 2019 -->
<!-- Generated by javadoc (1.8.0_201) on Fri Feb 28 11:11:59 CST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DWMediaADListener (okccsdk)</title>
<meta name="date" content="2019-12-16">
<meta name="date" content="2020-02-28">
<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 Mon Dec 16 11:46:22 CST 2019 -->
<!-- Generated by javadoc (1.8.0_201) on Fri Feb 28 11:11:59 CST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>FrontADInfo.AdBean (okccsdk)</title>
<meta name="date" content="2019-12-16">
<meta name="date" content="2020-02-28">
<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 Mon Dec 16 11:46:22 CST 2019 -->
<!-- Generated by javadoc (1.8.0_201) on Fri Feb 28 11:11:59 CST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>FrontADInfo (okccsdk)</title>
<meta name="date" content="2019-12-16">
<meta name="date" content="2020-02-28">
<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 Mon Dec 16 11:46:22 CST 2019 -->
<!-- Generated by javadoc (1.8.0_201) on Fri Feb 28 11:11:59 CST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>PauseADInfo.AdBean (okccsdk)</title>
<meta name="date" content="2019-12-16">
<meta name="date" content="2020-02-28">
<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 Mon Dec 16 11:46:22 CST 2019 -->
<!-- Generated by javadoc (1.8.0_201) on Fri Feb 28 11:11:59 CST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>PauseADInfo (okccsdk)</title>
<meta name="date" content="2019-12-16">
<meta name="date" content="2020-02-28">
<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 Mon Dec 16 11:46:22 CST 2019 -->
<!-- Generated by javadoc (1.8.0_201) on Fri Feb 28 11:11:59 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="2019-12-16">
<meta name="date" content="2020-02-28">
<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 Mon Dec 16 11:46:22 CST 2019 -->
<!-- Generated by javadoc (1.8.0_201) on Fri Feb 28 11:11:59 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="2019-12-16">
<meta name="date" content="2020-02-28">
<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 Mon Dec 16 11:46:22 CST 2019 -->
<!-- Generated by javadoc (1.8.0_201) on Fri Feb 28 11:11:59 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="2019-12-16">
<meta name="date" content="2020-02-28">
<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 Mon Dec 16 11:46:22 CST 2019 -->
<!-- Generated by javadoc (1.8.0_201) on Fri Feb 28 11:11:59 CST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>DownloadListener (okccsdk)</title>
<meta name="date" content="2019-12-16">
<meta name="date" content="2020-02-28">
<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 Mon Dec 16 11:46:22 CST 2019 -->
<!-- Generated by javadoc (1.8.0_201) on Fri Feb 28 11:11:59 CST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Downloader (okccsdk)</title>
<meta name="date" content="2019-12-16">
<meta name="date" content="2020-02-28">
<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