We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b15c90 commit cd91c20Copy full SHA for cd91c20
app/src/main/java/github/kairusds/libvlcandroidtest/MainActivity.java
@@ -84,6 +84,11 @@ protected void onCreate(Bundle savedInstanceState){
84
showFilePickerDialog(Environment.getExternalStorageDirectory());
85
}
86
});
87
+ videoLayout.setOnLongClickListener(v -> {
88
+ if(libVLCAvailable()){
89
+ destroyVLC();
90
+ }
91
+ });
92
93
checkPermissions();
94
@@ -110,6 +115,7 @@ private void initVLC(){
110
115
111
116
private void destroyVLC(){
112
117
if(!libVLCAvailable()) return;
118
+ time = 0L;
113
119
mediaPlayer.stop();
114
120
mediaPlayer.detachViews();
121
mediaPlayer.release();
0 commit comments