Git Product home page Git Product logo

androidplayerlibrary's Introduction

说明

基于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)

androidplayerlibrary's People

Contributors

xiaomo avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.