Skip to content

Commit

Permalink
release 0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tom committed Feb 17, 2016
1 parent 34ad09c commit c2248b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
out of the box android video player base on [ijkplayer](https://github.com/Bilibili/ijkplayer)

# features
1. base on ijkplayer,support RTMP , HLS , MP4,M4A etc.
1. base on ijkplayer,support RTMP , HLS (http & https) , MP4,M4A etc.
2. gestures for volume control
3. gestures for brightness control
4. gestures for forward or backward
Expand All @@ -17,11 +17,11 @@ out of the box android video player base on [ijkplayer](https://github.com/Bilib
6. 4:3:不剪裁,非等比例拉伸画面到4:3,并完全显示在View中

# how to import library
## using gradle
## method 1: using gradle
1. add `maven { url "https://jitpack.io" }` to your root project build file allprojects->repositories
2. add `compile 'com.github.tcking.GiraffePlayer:giraffeplayer:0.2'` to your app build file
2. add `compile 'com.github.tcking.GiraffePlayer:giraffeplayer:0.3'` to your app build file

## clone project
## method 2: clone project
1. git clone https://github.com/tcking/GiraffePlayer.git
2. android studio->file->New->Import module->select `giraffeplayer`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void onClick(View v) {
player.setTitle(url);
player.setShowNavIcon(false);
}else if (v.getId() == R.id.btn_play_sample_3) {
String url = "https://r3---sn-o097znes.googlevideo.com/videoplayback?nh=IgpwcjAxLnNqYzA3KgkxMjcuMC4wLjE&key=yt6&ratebypass=yes&source=youtube&dur=15892.363&lmt=1448977432536368&mime=video/mp4&pl=32&expire=1455621993&mm=31&mn=sn-o097znes&ip=2600:3c01::f03c:91ff:fe70:35ff&upn=tUX3VKaaIE8&sparams=dur,id,initcwndbps,ip,ipbits,itag,lmt,mime,mm,mn,ms,mv,nh,pl,ratebypass,requiressl,source,upn,expire&mt=1455600346&mv=m&initcwndbps=16662500&ms=au&itag=18&ipbits=0&requiressl=yes&signature=B90159512BE71340D1112585C6B5744BBBA21784.03AA682D30B23C444773CBDB46A4B5F3F30C61D8&fexp=9407169,9408207,9416126,9420452,9422596,9423660,9423662,9424771,9425737,9426687,9428034,9428064,9428246,9428649,9428941&id=o-AAqIBBudm5xSSzsgeY2Han3wIQ4j2TUH3dlhQxA3XN5A&sver=3";
String url = "https://r4---sn-ogueln7r.googlevideo.com/videoplayback?lmt=1448977432536368&signature=68DD73A2272E320D27CD7894F688D27AC0280AF6.37AC8C8A5DFEA4DDB19370F0BD63B8427EF22363&mime=video/mp4&key=cms1&itag=18&ipbits=0&pl=26&requiressl=yes&expire=1455701339&id=o-ALk1eZ8mUorQB1iSJV5tP0QSDNAWHgN9GeLw_Sqo3naK&sparams=dur,expire,id,initcwndbps,ip,ipbits,itag,lmt,mime,mm,mn,ms,mv,nh,pl,ratebypass,requiressl,source,upn&upn=cXAgK-3yk2A&dur=15892.363&ip=45.32.19.159&sver=3&fexp=9405824,9408211,9415030,9416126,9417380,9419451,9420452,9422596,9422778,9423661,9423662,9426401,9426976,9427126,9427317,9427860,9428350,9428421,9428709&source=youtube&ratebypass=yes&redirect_counter=1&req_id=9c2ec062eb3aa3ee&cms_redirect=yes&mm=30&mn=sn-ogueln7r&ms=nxu&mt=1455679313&mv=u&nh=IgpwcjAzLm5ydDE5KgkxMjcuMC4wLjE";
((EditText) findViewById(R.id.et_url)).setText(url);
player.play(url);
player.setTitle(url);
Expand Down

0 comments on commit c2248b5

Please sign in to comment.