Skip to content
This repository has been archived by the owner on Jul 20, 2021. It is now read-only.

Commit

Permalink
Improved Fullscreen Example
Browse files Browse the repository at this point in the history
  • Loading branch information
halilozercan committed Jun 3, 2017
1 parent a4d3042 commit f46e3f1
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 2 deletions.
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<img src="https://github.com/halilozercan/BetterVideoPlayer/raw/master/screens/gestures.gif" width="600px" />
![Gestures](https://github.com/halilozercan/BetterVideoPlayer/raw/master/screens/gestures.gif)


##### Code Setup

Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 10 additions & 0 deletions app/src/main/java/com/halilibo/sample/FullscreenActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f46e3f1

Please sign in to comment.