mirror of
https://github.com/DmcSDK/cordova-plugin-mediaPicker
synced 2026-04-14 00:03:04 +08:00
Merge the code submitted by guoyongxin
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cordova-plugin-mediapicker-dmcsdk",
|
||||
"version": "2.4.0",
|
||||
"version": "2.4.2",
|
||||
"description": "android ios mediaPicker support selection of multiple image and video",
|
||||
"cordova": {
|
||||
"id": "cordova-plugin-mediapicker-dmcsdk",
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-mediapicker-dmcsdk" version="2.3.9">
|
||||
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="cordova-plugin-mediapicker-dmcsdk" version="2.4.2">
|
||||
<name>MediaPicker</name>
|
||||
<js-module name="MediaPicker" src="www/MediaPicker.js">
|
||||
<clobbers target="window.MediaPicker"/>
|
||||
</js-module>
|
||||
|
||||
<preference name="IOS_PHOTO_LIBRARY_USAGE_DESCRIPTION" />
|
||||
|
||||
<platform name="android">
|
||||
<config-file parent="/*" target="res/xml/config.xml">
|
||||
<feature name="MediaPicker">
|
||||
@@ -25,6 +23,7 @@
|
||||
|
||||
|
||||
<platform name="ios">
|
||||
<preference name="IOS_PHOTO_LIBRARY_USAGE_DESCRIPTION" />
|
||||
<config-file parent="/*" target="config.xml">
|
||||
<feature name="MediaPicker">
|
||||
<param name="ios-package" value="MediaPicker"/>
|
||||
|
||||
@@ -204,8 +204,8 @@
|
||||
options.predicate = [NSPredicate predicateWithFormat:@"mediaType == %ld", PHAssetMediaTypeVideo];
|
||||
}
|
||||
|
||||
int defaultSelection = 0;
|
||||
int i = 0;
|
||||
int defaultSelection, i = 0; //为了进入选择界面默认显示CameraRoll下的图片
|
||||
|
||||
for (PHFetchResult *fetchResult in allAlbums) {
|
||||
for (PHAssetCollection *collection in fetchResult) {
|
||||
// 有可能是PHCollectionList类的的对象,过滤掉
|
||||
|
||||
Reference in New Issue
Block a user