@capgo/capacitor-video-player 8.0.6 → 8.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/com/capgo/videoplayer/FullscreenExoPlayerFragment.java +2 -5
- package/android/src/main/java/com/capgo/videoplayer/PickerVideo/PickerVideoFragment.java +0 -2
- package/android/src/main/java/com/capgo/videoplayer/VideoPlayerPlugin.java +1 -1
- package/ios/Sources/VideoPlayerPlugin/VideoPlayerPlugin.swift +1 -1
- package/package.json +1 -1
|
@@ -178,7 +178,6 @@ public class FullscreenExoPlayerFragment extends Fragment {
|
|
|
178
178
|
private Boolean isPIPModeEnabled = true;
|
|
179
179
|
final Handler handler = new Handler();
|
|
180
180
|
final Runnable mRunnable = new Runnable() {
|
|
181
|
-
@RequiresApi(api = Build.VERSION_CODES.N)
|
|
182
181
|
public void run() {
|
|
183
182
|
checkPIPPermission();
|
|
184
183
|
}
|
|
@@ -332,7 +331,7 @@ public class FullscreenExoPlayerFragment extends Fragment {
|
|
|
332
331
|
NotificationCenter.defaultCenter().postNotification("playerItemPlay", info);
|
|
333
332
|
resizeBtn.setVisibility(View.VISIBLE);
|
|
334
333
|
|
|
335
|
-
if (
|
|
334
|
+
if (pipEnabled) {
|
|
336
335
|
pipBtn.setVisibility(View.VISIBLE);
|
|
337
336
|
}
|
|
338
337
|
} else {
|
|
@@ -530,7 +529,6 @@ public class FullscreenExoPlayerFragment extends Fragment {
|
|
|
530
529
|
}
|
|
531
530
|
if (
|
|
532
531
|
!isInPictureInPictureMode &&
|
|
533
|
-
Build.VERSION.SDK_INT >= Build.VERSION_CODES.N &&
|
|
534
532
|
packageManager.hasSystemFeature(PackageManager.FEATURE_PICTURE_IN_PICTURE) &&
|
|
535
533
|
isPIPModeEnabled &&
|
|
536
534
|
pipEnabled &&
|
|
@@ -589,7 +587,7 @@ public class FullscreenExoPlayerFragment extends Fragment {
|
|
|
589
587
|
* Perform pictureInPictureMode Action
|
|
590
588
|
*/
|
|
591
589
|
private void pictureInPictureMode() {
|
|
592
|
-
if (
|
|
590
|
+
if (packageManager.hasSystemFeature(PackageManager.FEATURE_PICTURE_IN_PICTURE)) {
|
|
593
591
|
styledPlayerView.setUseController(false);
|
|
594
592
|
styledPlayerView.setControllerAutoShow(false);
|
|
595
593
|
linearLayout.setVisibility(View.INVISIBLE);
|
|
@@ -621,7 +619,6 @@ public class FullscreenExoPlayerFragment extends Fragment {
|
|
|
621
619
|
}
|
|
622
620
|
}
|
|
623
621
|
|
|
624
|
-
@RequiresApi(api = Build.VERSION_CODES.N)
|
|
625
622
|
private void checkPIPPermission() {
|
|
626
623
|
isPIPModeEnabled = isInPictureInPictureMode;
|
|
627
624
|
if (!isInPictureInPictureMode) {
|
|
@@ -12,7 +12,6 @@ import android.util.Log;
|
|
|
12
12
|
import android.view.LayoutInflater;
|
|
13
13
|
import android.view.View;
|
|
14
14
|
import android.view.ViewGroup;
|
|
15
|
-
import androidx.annotation.RequiresApi;
|
|
16
15
|
import androidx.fragment.app.Fragment;
|
|
17
16
|
import androidx.recyclerview.widget.GridLayoutManager;
|
|
18
17
|
import androidx.recyclerview.widget.RecyclerView;
|
|
@@ -42,7 +41,6 @@ public class PickerVideoFragment extends Fragment {
|
|
|
42
41
|
* @return View
|
|
43
42
|
*/
|
|
44
43
|
@SuppressWarnings("serial")
|
|
45
|
-
@RequiresApi(api = Build.VERSION_CODES.M)
|
|
46
44
|
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
|
47
45
|
context = container.getContext();
|
|
48
46
|
// Inflate the layout for this fragment
|
|
@@ -38,7 +38,7 @@ import java.util.Map;
|
|
|
38
38
|
)
|
|
39
39
|
public class VideoPlayerPlugin extends Plugin {
|
|
40
40
|
|
|
41
|
-
private final String pluginVersion = "8.0.
|
|
41
|
+
private final String pluginVersion = "8.0.7";
|
|
42
42
|
|
|
43
43
|
// Permission alias constants
|
|
44
44
|
private static final String PERMISSION_DENIED_ERROR = "Unable to access media videos, user denied permission request";
|
|
@@ -8,7 +8,7 @@ import AVKit
|
|
|
8
8
|
*/
|
|
9
9
|
@objc(VideoPlayerPlugin)
|
|
10
10
|
public class VideoPlayerPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
11
|
-
private let pluginVersion: String = "8.0.
|
|
11
|
+
private let pluginVersion: String = "8.0.7"
|
|
12
12
|
public let identifier = "VideoPlayerPlugin"
|
|
13
13
|
public let jsName = "VideoPlayer"
|
|
14
14
|
public let pluginMethods: [CAPPluginMethod] = [
|