Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ct7ct7ct7 authored Jan 16, 2019
1 parent 47fe153 commit 0990df5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Unofficial Vimeo video player library for Android.

```
dependencies {
implementation 'com.ct7ct7ct7.androidvimeoplayer:library:1.0.0'
implementation 'com.ct7ct7ct7.androidvimeoplayer:library:1.0.1'
}
```

Expand All @@ -34,6 +34,9 @@ dependencies {
VimeoPlayerView vimeoPlayer = findViewById(R.id.vimeoPlayer);
getLifecycle().addObserver(vimeoPlayer);
vimeoPlayer.initialize(59777392);
//If your video is pirvate.
//vimeoPlayer.initialize({YourPrivateVideoId}, "YourDomain")
```

### **Properties**
Expand All @@ -44,7 +47,7 @@ app:loop | `false` | Play the video again when it reaches the end.
app:muted | `false` | Mute this video on load.
app:showTitle | `true` | Show the title on the video.
app:playSinline | `true` | Play video inline on mobile devices, to automatically go fullscreen on playback set this parameter to `false`.
app:portrait | `true` | Show the portrait on the video.
app:showPortrait | `true` | Show the portrait on the video.
app:showByline | `true` | Show the byline on the video.
app:showSpeed | `false` | Show the speed controls in the preferences menu and enable playback rate API (available to PRO and Business)
app:transparent | `true` | The responsive player and transparent background are enabled by default, to disable set this parameter to `false`.
Expand Down Expand Up @@ -90,6 +93,11 @@ vimeoPlayer.addStateListener(new VimeoPlayerStateListener() {
public void onEnded(float duration) {
//TODO
}
@Override
public void onInitFailed() {
//TODO
}
});
```

Expand Down

0 comments on commit 0990df5

Please sign in to comment.