public Builder() { dataSource = new DataSource(); dataSource.index = 0; dataSource.enableCache = false; }
@Override public void loadDataSource() { List<DataSource> dataSources = new ArrayList<>(Constant.img.length); int count = Constant.img.length; for (int i = 0; i < count; i++) { dataSources.add(new DataSource(Constant.url[i], Constant.title[i], Constant.img[i])); } viewModel.callbackDataSource(dataSources); } }
@Override public void loadDataSource() { List<DataSource> dataSources = new ArrayList<>(Constant.img.length); int count = Constant.img.length; for (int i = 0; i < count; i++) { dataSources.add(new DataSource(Constant.url[i], Constant.title[i], Constant.img[i])); } viewModel.callbackDataSource(dataSources); } }
@Override public void loadDataSource() { List<DataSource> dataSources = new ArrayList<>(Constant.img.length); int count = Constant.img.length; for (int i = 0; i < count; i++) { dataSources.add(new DataSource(Constant.url[i], Constant.title[i], Constant.img[i])); } viewModel.callbackDataSource(dataSources); } }
@Override public void loadDataSource() { List<DataSource> dataSources = new ArrayList<>(Constant.img.length); int count = Constant.img.length; for (int i = 0; i < count; i++) { dataSources.add(new DataSource(Constant.url[i], Constant.title[i], Constant.img[i])); } viewModel.callbackDataSource(dataSources); } }
@Override public void loadDataSource() { List<DataSource> dataSources = new ArrayList<>(Constant.img.length); int count = Constant.img.length; for (int i = 0; i < count; i++) { dataSources.add(new DataSource(Constant.url[i], Constant.title[i], Constant.img[i])); } viewModel.callbackDataSource(dataSources); } }
@Override public void loadDataSource() { List<DataSource> dataSources = new ArrayList<>(Constant.img.length); int count = Constant.img.length; for (int i = 0; i < count; i++) { dataSources.add(new DataSource(Constant.url[i], Constant.title[i], Constant.img[i])); } viewModel.callbackDataSource(dataSources); } }
public void setDataSource(String url, String title, String cover, ContainerMode containerMode) { setDataSource(new DataSource(url, title, cover), containerMode); }
public static BasePlayer openFullPlayer(Context context, Class<? extends BasePlayer> _class, String url, String title, String cover, int orientation) { return openFullPlayer(context, _class, new DataSource(url, title, cover), orientation); }
public void setDataSource(String url, String title, String cover) { setDataSource(new DataSource(url, title, cover), CONTAINER_MODE_NORMAL); }
protected void changeUrl(String url, String title, String cover, long seekToProgress) { changeUrl(new DataSource(url, title, cover), seekToProgress); }
public static BasePlayer openFullPlayer(Context context, Class<? extends BasePlayer> _class, String url, String title, String cover, int orientation, ScreenType type) { return openFullPlayer(context, _class, new DataSource(url, title, cover), orientation, type); }
vp.addView(player, tinyLp); player.setScreenType(type); player.setDataSource(new DataSource(url, title, cover), CONTAINER_MODE_TINY); player.iv_play.performClick(); return player;