Comments (6)
OK, I will see how exactly to do it, and try it.
I saw that you forked it, if you want to do it, please make pull request
from react-native-gallery-manager.
I am still doing research on this, if i found a solution then happy to implement and submit a PR. will update you..
from react-native-gallery-manager.
Ive started implementing some of this functionality.
the method will be called convertVideo
the params will be
id: Local id of the video asset,
compressType: check preset names
convertTo: some of those only, I think AVFileTypeMPEG4, AVFileTypeAppleM4V, AVFileTypeQuickTimeMovie
tempName: the temporary name of the asset.
where compressType, convertTo, tempName are going be optional.
So the client can choose to convert or to compress or both
It will return probably the same stuff as now (if makes sense)
NSArray * _Nonnull localIds = [NSArray arrayWithObjects: localIdentifier];
PHFetchOptions *fetchOptions = [[PHFetchOptions alloc] init];
PHAssetCollection * _Nullable video = [PHAssetCollection fetchAssetCollectionsWithLocalIdentifiers:localIds options:fetchOptions].firstObject;
[AVAssetExportSession exportSessionWithAsset:video presetName:AVAssetExportPresetPassthrough];
tell me what you think
from react-native-gallery-manager.
Looks good buddy to me, Please go ahead and publish it, I will test it and let you know any suggestions.
from react-native-gallery-manager.
Probably end of the week.
from react-native-gallery-manager.
implemented in 1.0.5
from react-native-gallery-manager.
Related Issues (20)
- How to load images faster HOT 24
- Android: Implement request permission HOT 1
- Adding new images to the gallery. HOT 1
- When scrolling down, the images are looping. HOT 1
- Reverse order of getAssets HOT 1
- Crash: The RCTImageURLLoaders both reported that they can load the URL HOT 3
- Filter by folder on phone. HOT 1
- [Android] Crash when trying to get more assets and there are no more of them HOT 3
- request: Create a CocoaPod HOT 5
- TypeError: undefined is not an object (evaluating 'RNGalleryManager.requestAuthorization') HOT 1
- Error on GalleryManager.getAssets for Android only
- Location and album name
- iOS : CameraRoll absent in getAlbums
- Compress Video and Image for Android HOT 2
- missing favourite album by getting albums from Gallerymanager.getAlbums() HOT 1
- Android crash: CursorIndexOutOfBoundsException
- autolinking HOT 2
- Get albums with type ?
- Suggestion: Add the whole file path HOT 3
- requiresMainQueueSetup warning HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-gallery-manager.