You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
376 B
22 lines
376 B
|
3 years ago
|
import {
|
||
|
|
getRealPath
|
||
|
|
} from '../util'
|
||
|
|
|
||
|
|
import {
|
||
|
|
invoke
|
||
|
|
} from '../../bridge'
|
||
|
|
|
||
|
|
export function saveVideoToPhotosAlbum ({
|
||
|
|
filePath
|
||
|
|
} = {}, callbackId) {
|
||
|
|
plus.gallery.save(getRealPath(filePath), e => {
|
||
|
|
invoke(callbackId, {
|
||
|
|
errMsg: 'saveVideoToPhotosAlbum:ok'
|
||
|
|
})
|
||
|
|
}, e => {
|
||
|
|
invoke(callbackId, {
|
||
|
|
errMsg: 'saveVideoToPhotosAlbum:fail'
|
||
|
|
})
|
||
|
|
})
|
||
|
|
}
|