仿抖音视频预览的封装,上下翻页,简单易用
Imitate Tiktok video preview, turn pages up and down and it is easy to use
The example of picture:
Install:
导入除开README.md的上面的文件到项目中即可
Import the above files except README.md into the project
How to use:
Intent intent = new Intent(getContext(), CustomVideoPlayerActivity.class);
ArrayList<String> videoUrlList = new ArrayList<>();
videoUrlList.add("your video url");
...
intent.putExtra("currentPosition", 0);// 预览第几个视频
intent.putStringArrayListExtra("videoUrlList", videoUrlList);// 视频链接集合
startActivity(intent);
一分钱也是源源不断技术的推动力
Chinese friends welcome to reward, and foreign friends welcome to give me a star