Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vedio
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_vedio
Commits
f984370d
Commit
f984370d
authored
Oct 12, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
8ae52ca2
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
17 deletions
+28
-17
BannerManager.kt
...ain/java/com/duben/miniplaylet/ad/banner/BannerManager.kt
+20
-11
ExpressManager.kt
...n/java/com/duben/miniplaylet/ad/express/ExpressManager.kt
+1
-1
MainExpressManager.kt
...va/com/duben/miniplaylet/ad/express/MainExpressManager.kt
+1
-1
MyExpressManager.kt
...java/com/duben/miniplaylet/ad/express/MyExpressManager.kt
+2
-1
HalfScreenManager.java
...java/com/duben/miniplaylet/ad/half/HalfScreenManager.java
+2
-1
InMoneyVideo.java
...ain/java/com/duben/miniplaylet/ad/video/InMoneyVideo.java
+1
-1
InMoneyVideoNoPre.java
...ava/com/duben/miniplaylet/ad/video/InMoneyVideoNoPre.java
+1
-1
No files found.
video/app/src/main/java/com/duben/miniplaylet/ad/banner/BannerManager.kt
View file @
f984370d
...
@@ -9,6 +9,7 @@ import com.bytedance.sdk.openadsdk.mediation.ad.MediationAdSlot
...
@@ -9,6 +9,7 @@ import com.bytedance.sdk.openadsdk.mediation.ad.MediationAdSlot
import
com.bytedance.sdk.openadsdk.mediation.ad.MediationNativeToBannerListener
import
com.bytedance.sdk.openadsdk.mediation.ad.MediationNativeToBannerListener
import
com.duben.miniplaylet.BuildConfig
import
com.duben.miniplaylet.BuildConfig
import
com.duben.miniplaylet.MintsApplication
import
com.duben.miniplaylet.MintsApplication
import
com.duben.miniplaylet.ad.splash.SplashManager
import
com.duben.miniplaylet.common.Constant
import
com.duben.miniplaylet.common.Constant
import
com.duben.miniplaylet.manager.TrackManager
import
com.duben.miniplaylet.manager.TrackManager
import
com.duben.miniplaylet.utils.LogUtil
import
com.duben.miniplaylet.utils.LogUtil
...
@@ -71,7 +72,10 @@ object BannerManager {
...
@@ -71,7 +72,10 @@ object BannerManager {
}
}
override
fun
onAdShow
(
view
:
View
?,
type
:
Int
)
{
override
fun
onAdShow
(
view
:
View
?,
type
:
Int
)
{
if
(
bannerAd
!=
null
&&
bannerAd
!!
.
mediationManager
.
showEcpm
!=
null
)
{
try
{
if
(
bannerAd
!=
null
&&
bannerAd
!!
.
mediationManager
!=
null
&&
bannerAd
!!
.
mediationManager
.
showEcpm
!=
null
)
{
val
vo
=
HashMap
<
String
,
Any
>()
val
vo
=
HashMap
<
String
,
Any
>()
vo
[
"adcode"
]
=
vo
[
"adcode"
]
=
bannerAd
!!
.
mediationManager
.
showEcpm
.
slotId
bannerAd
!!
.
mediationManager
.
showEcpm
.
slotId
...
@@ -83,6 +87,11 @@ object BannerManager {
...
@@ -83,6 +87,11 @@ object BannerManager {
vo
[
"adType"
]
=
Constant
.
GRO_MORE_ADTYPE5
vo
[
"adType"
]
=
Constant
.
GRO_MORE_ADTYPE5
TrackManager
.
getInstance
().
reporGromeEcpm
(
vo
)
TrackManager
.
getInstance
().
reporGromeEcpm
(
vo
)
}
}
}
catch
(
e
:
Exception
)
{
e
.
printStackTrace
()
}
}
}
override
fun
onRenderFail
(
view
:
View
?,
msg
:
String
?,
code
:
Int
)
{
override
fun
onRenderFail
(
view
:
View
?,
msg
:
String
?,
code
:
Int
)
{
...
...
video/app/src/main/java/com/duben/miniplaylet/ad/express/ExpressManager.kt
View file @
f984370d
...
@@ -218,7 +218,7 @@ class ExpressManager {
...
@@ -218,7 +218,7 @@ class ExpressManager {
}
}
override
fun
onAdShow
()
{
override
fun
onAdShow
()
{
if
(
it
!=
null
&&
it
!!
.
getMediationManager
().
getShowEcpm
()
!=
null
)
{
if
(
it
!=
null
&&
it
!!
.
getMediationManager
()
!=
null
&&
it
!!
.
getMediationManager
()
.
getShowEcpm
()
!=
null
)
{
val
vo
=
HashMap
<
String
,
Any
>()
val
vo
=
HashMap
<
String
,
Any
>()
vo
[
"adcode"
]
=
it
!!
.
getMediationManager
().
getShowEcpm
().
getSlotId
()
vo
[
"adcode"
]
=
it
!!
.
getMediationManager
().
getShowEcpm
().
getSlotId
()
vo
[
"ecpm"
]
=
it
!!
.
getMediationManager
().
getShowEcpm
().
getEcpm
()
vo
[
"ecpm"
]
=
it
!!
.
getMediationManager
().
getShowEcpm
().
getEcpm
()
...
...
video/app/src/main/java/com/duben/miniplaylet/ad/express/MainExpressManager.kt
View file @
f984370d
...
@@ -153,7 +153,7 @@ class MainExpressManager {
...
@@ -153,7 +153,7 @@ class MainExpressManager {
}
}
override
fun
onAdShow
()
{
override
fun
onAdShow
()
{
if
(
it
!=
null
&&
it
!!
.
getMediationManager
().
getShowEcpm
()
!=
null
)
{
if
(
it
!=
null
&&
it
!!
.
getMediationManager
()
!=
null
&&
it
!!
.
getMediationManager
()
.
getShowEcpm
()
!=
null
)
{
val
vo
=
HashMap
<
String
,
Any
>()
val
vo
=
HashMap
<
String
,
Any
>()
vo
[
"adcode"
]
=
it
!!
.
getMediationManager
().
getShowEcpm
().
getSlotId
()
vo
[
"adcode"
]
=
it
!!
.
getMediationManager
().
getShowEcpm
().
getSlotId
()
vo
[
"ecpm"
]
=
it
!!
.
getMediationManager
().
getShowEcpm
().
getEcpm
()
vo
[
"ecpm"
]
=
it
!!
.
getMediationManager
().
getShowEcpm
().
getEcpm
()
...
...
video/app/src/main/java/com/duben/miniplaylet/ad/express/MyExpressManager.kt
View file @
f984370d
...
@@ -217,7 +217,8 @@ class MyExpressManager {
...
@@ -217,7 +217,8 @@ class MyExpressManager {
}
}
override
fun
onAdShow
()
{
override
fun
onAdShow
()
{
if
(
it
!=
null
&&
it
!!
.
getMediationManager
().
getShowEcpm
()
!=
null
)
{
if
(
it
!=
null
&&
it
!!
.
getMediationManager
()!=
null
&&
it
!!
.
getMediationManager
().
getShowEcpm
()
!=
null
)
{
val
vo
=
HashMap
<
String
,
Any
>()
val
vo
=
HashMap
<
String
,
Any
>()
vo
[
"adcode"
]
=
it
!!
.
getMediationManager
().
getShowEcpm
().
getSlotId
()
vo
[
"adcode"
]
=
it
!!
.
getMediationManager
().
getShowEcpm
().
getSlotId
()
vo
[
"ecpm"
]
=
it
!!
.
getMediationManager
().
getShowEcpm
().
getEcpm
()
vo
[
"ecpm"
]
=
it
!!
.
getMediationManager
().
getShowEcpm
().
getEcpm
()
...
...
video/app/src/main/java/com/duben/miniplaylet/ad/half/HalfScreenManager.java
View file @
f984370d
...
@@ -168,7 +168,8 @@ public class HalfScreenManager {
...
@@ -168,7 +168,8 @@ public class HalfScreenManager {
private
final
TTFullScreenVideoAd
.
FullScreenVideoAdInteractionListener
mTTFullScreenAdListener
=
new
TTFullScreenVideoAd
.
FullScreenVideoAdInteractionListener
()
{
private
final
TTFullScreenVideoAd
.
FullScreenVideoAdInteractionListener
mTTFullScreenAdListener
=
new
TTFullScreenVideoAd
.
FullScreenVideoAdInteractionListener
()
{
@Override
@Override
public
void
onAdShow
()
{
public
void
onAdShow
()
{
if
(
mTtFullScreenVideoAd
!=
null
&&
mTtFullScreenVideoAd
.
getMediationManager
().
getShowEcpm
()
!=
null
)
{
if
(
mTtFullScreenVideoAd
!=
null
&&
mTtFullScreenVideoAd
.
getMediationManager
()!=
null
&&
mTtFullScreenVideoAd
.
getMediationManager
().
getShowEcpm
()
!=
null
)
{
HashMap
<
String
,
Object
>
vo
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
vo
=
new
HashMap
<>();
vo
.
put
(
"adcode"
,
mTtFullScreenVideoAd
.
getMediationManager
().
getShowEcpm
().
getSlotId
());
vo
.
put
(
"adcode"
,
mTtFullScreenVideoAd
.
getMediationManager
().
getShowEcpm
().
getSlotId
());
vo
.
put
(
"ecpm"
,
mTtFullScreenVideoAd
.
getMediationManager
().
getShowEcpm
().
getEcpm
());
vo
.
put
(
"ecpm"
,
mTtFullScreenVideoAd
.
getMediationManager
().
getShowEcpm
().
getEcpm
());
...
...
video/app/src/main/java/com/duben/miniplaylet/ad/video/InMoneyVideo.java
View file @
f984370d
...
@@ -190,7 +190,7 @@ public class InMoneyVideo {
...
@@ -190,7 +190,7 @@ public class InMoneyVideo {
public
void
onAdShow
()
{
public
void
onAdShow
()
{
isRewardValid
=
false
;
isRewardValid
=
false
;
if
(
mttRewardAd
!=
null
&&
mttRewardAd
.
getMediationManager
().
getShowEcpm
()
!=
null
)
{
if
(
mttRewardAd
!=
null
&&
mttRewardAd
.
getMediationManager
()!=
null
&&
mttRewardAd
.
getMediationManager
().
getShowEcpm
()
!=
null
)
{
HashMap
<
String
,
Object
>
vo
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
vo
=
new
HashMap
<>();
vo
.
put
(
"adcode"
,
mttRewardAd
.
getMediationManager
().
getShowEcpm
().
getSlotId
());
vo
.
put
(
"adcode"
,
mttRewardAd
.
getMediationManager
().
getShowEcpm
().
getSlotId
());
vo
.
put
(
"ecpm"
,
mttRewardAd
.
getMediationManager
().
getShowEcpm
().
getEcpm
());
vo
.
put
(
"ecpm"
,
mttRewardAd
.
getMediationManager
().
getShowEcpm
().
getEcpm
());
...
...
video/app/src/main/java/com/duben/miniplaylet/ad/video/InMoneyVideoNoPre.java
View file @
f984370d
...
@@ -129,7 +129,7 @@ public class InMoneyVideoNoPre {
...
@@ -129,7 +129,7 @@ public class InMoneyVideoNoPre {
adStatusListener
.
adSuccess
();
adStatusListener
.
adSuccess
();
}
}
if
(
mttRewardAd
!=
null
&&
mttRewardAd
.
getMediationManager
().
getShowEcpm
()
!=
null
)
{
if
(
mttRewardAd
!=
null
&&
mttRewardAd
.
getMediationManager
()
!=
null
&&
mttRewardAd
.
getMediationManager
()
.
getShowEcpm
()
!=
null
)
{
HashMap
<
String
,
Object
>
vo
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
vo
=
new
HashMap
<>();
vo
.
put
(
"adcode"
,
mttRewardAd
.
getMediationManager
().
getShowEcpm
().
getSlotId
());
vo
.
put
(
"adcode"
,
mttRewardAd
.
getMediationManager
().
getShowEcpm
().
getSlotId
());
vo
.
put
(
"ecpm"
,
mttRewardAd
.
getMediationManager
().
getShowEcpm
().
getEcpm
());
vo
.
put
(
"ecpm"
,
mttRewardAd
.
getMediationManager
().
getShowEcpm
().
getEcpm
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment