Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

xiaomo/AndroidPlayerLibrary

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

说明

基于vlc-android项目的视频播放器

功能

1 支持更频繁的时间上报
2 显示缓冲进度

使用方式

本库两种使用方式:
第一种,直接new一个PlayerView或者在布局文件的xml里面嵌入view。
第二种,跳转到一个写好的播放页面PlayerActivity


使用步骤

//第一步 :通过findViewById或者new PlayerView()得到mPlayerView对象
//mPlayerView= new PlayerView(PlayerActivity.this);
mPlayerView = (PlayerView) findViewById(R.id.pv_video);

//第二步:设置参数,毫秒为单位
//mPlayerView.setNetWorkCache(20000);

//第三步:初始化播放器
mPlayerView.initPlayer(mUrl);

//第四步:设置事件监听,监听缓冲进度等
mPlayerView.setOnChangeListener(this);

//第五步:开始播放
mPlayerView.start();


使用截图 =================
![preview](https://github.com/xiaomo/AndroidPlayerLibrary/blob/master/screenshot/device-2015-01-03-020624.png)

About

AndroidPlayerLibrary from vlc-android

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.