diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 0000000..2832ed2 --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,28 @@ +-- [ ] I have verified there are no duplicate active or recent bugs, questions, or requests +-- [ ] I have verified that I am using the latest version of Better Video Player. +-- [ ] I have given my issue a non-generic title. +-- [ ] I have read over the documentation (before asking questions on how to do something). +- +-###### Include the following: +- - Better Video Player version: `x.x.x.x` +- - Device OS version: `7.0` +- - Device Manufacturer: `Huawei` +- - Device Name: `Nexus 6P` +- +-Also, please wrap Java with correct syntax highlighting. +- +-```java +-System.out.println("Hello, world!"); +-``` +- +-###### Reproduction Steps +- +-1. +-2. +-3. +- +-###### Expected Result +- +- +- +-###### Actual Result \ No newline at end of file diff --git a/README.md b/README.md index 7f16c43..36eedac 100644 --- a/README.md +++ b/README.md @@ -165,7 +165,8 @@ You can enable or disable gestures by `enableSwipeGestures()` and `disableSwipeG __Important point:__ You need to use `enableSwipeGestures(Window)` method to also enable brightness control. Brightness setting needs a reference window. - +![Gestures](https://github.com/halilozercan/BetterVideoPlayer/raw/master/screens/gestures.gif) + ##### Code Setup diff --git a/app/build.gradle b/app/build.gradle index f942800..7146b50 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -21,7 +21,7 @@ android { dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) - compile project(':bettervideoplayer') + compile 'com.github.halilozercan:BetterVideoPlayer:1.1.0' compile "com.android.support:appcompat-v7:$project.googleAPIsVersion" compile "com.android.support:support-compat:$project.googleAPIsVersion" compile "com.android.support:support-v4:$project.googleAPIsVersion" diff --git a/app/src/main/java/com/halilibo/sample/FullscreenActivity.java b/app/src/main/java/com/halilibo/sample/FullscreenActivity.java index ff6be1f..514835a 100644 --- a/app/src/main/java/com/halilibo/sample/FullscreenActivity.java +++ b/app/src/main/java/com/halilibo/sample/FullscreenActivity.java @@ -94,6 +94,16 @@ protected void onCreate(Bundle savedInstanceState) { mBetterVideoPlayer = (BetterVideoPlayer) findViewById(R.id.bvp); mBetterVideoPlayer.setSource(Uri.parse("android.resource://" + getPackageName() + "/" + com.halilibo.sample.R.raw.video)); + mBetterVideoPlayer.getToolbar().setTitle("FullScreen Sample"); + mBetterVideoPlayer.getToolbar() + .setNavigationIcon(android.support.v7.appcompat.R.drawable.abc_ic_ab_back_material); + mBetterVideoPlayer.getToolbar().setNavigationOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + onBackPressed(); + } + }); + // Set up the user interaction to manually show or hide the system UI. /*mBetterVideoPlayer.setOnClickListener(new View.OnClickListener() { @Override