Skip to content

Commit 467e3fa

Browse files
committed
change VideoPlusController
1 parent 73afaa5 commit 467e3fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

VideoOS/venvy_pub/src/main/java/cn/com/videopls/pub/VideoPlusController.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ public void startService(final ServiceType serviceType, final HashMap<String, St
147147
Log.e("Video++", "startService api 调用参数为空");
148148
return;
149149
}
150+
if (mPlatform == null) {
151+
mPlatform = initPlatform(mVideoPlusAdapter);
152+
}
150153
params.put(VenvySchemeUtil.QUERY_PARAMETER_ADS_TYPE, String.valueOf(serviceType.getId()));
151154
startQueryConnect(serviceType, params, new IStartQueryResult() {
152155
@Override
@@ -534,9 +537,6 @@ public void downError(Throwable t) {
534537
break;
535538
default:
536539
// 前后暂停贴广告
537-
if (mPlatform == null) {
538-
mPlatform = initPlatform(mVideoPlusAdapter);
539-
}
540540
mQueryAdsModel = new VideoServiceQueryAdsModel(mPlatform, params,
541541
new VideoServiceQueryAdsModel.ServiceQueryAdsCallback() {
542542

0 commit comments

Comments
 (0)