@tarojs/taro-h5 3.6.34 → 3.6.35-alpha.6
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/dist/index.esm.js
CHANGED
|
@@ -4439,6 +4439,7 @@ const chooseMedia = function (options, methodName = 'chooseMedia') {
|
|
|
4439
4439
|
};
|
|
4440
4440
|
if (/^video\//.test(res.fileType)) {
|
|
4441
4441
|
// Video
|
|
4442
|
+
const isIOS = getDeviceInfo().system.toLowerCase().includes('ios');
|
|
4442
4443
|
const video = document.createElement('video');
|
|
4443
4444
|
const reader = new FileReader();
|
|
4444
4445
|
video.crossOrigin = 'Anonymous';
|
|
@@ -4462,6 +4463,7 @@ const chooseMedia = function (options, methodName = 'chooseMedia') {
|
|
|
4462
4463
|
resolve(res);
|
|
4463
4464
|
};
|
|
4464
4465
|
video.onerror = e => reject(e);
|
|
4466
|
+
isIOS && video.load();
|
|
4465
4467
|
});
|
|
4466
4468
|
}
|
|
4467
4469
|
else {
|