package com.weikou.beibeivideo.util.video; import android.content.Context; import com.weikou.beibeivideo.BasicTextHttpResponseHandler; import com.weikou.beibeivideo.BeibeiVideoAPI; import org.apache.http.Header; import org.json.JSONObject; import java.util.Map; /** * 抖音信息收集 */ public class DPEventCollectUtil { /** * 沉浸式视频播放 * * @param context * @param from */ public static void playDrawVideo(Context context, Map map, String type, String from, boolean complete) { BeibeiVideoAPI.playDrawVideo(context, type, from, complete, new BasicTextHttpResponseHandler() { @Override public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception { } }); } /** * 进入详情 * * @param context * @param map */ public static void newsDetailEnter(Context context, Map map) { BeibeiVideoAPI.readNews(context, new BasicTextHttpResponseHandler() { @Override public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception { } }); } }