phonegap插件,用于从库中选择视频 [英] phonegap plugin for select a video from the library
问题描述
我需要能够从库中选择一个视频并将其上传到我的服务器。
I need to be able to select a video from the library and upload it to my server.
我可以录制新视频(captureVideo)并上传它( filetransfer)没问题,但我似乎无法找到任何方式打开视频库并选择一个视频然后上传。
I can record a new video (captureVideo) and upload it (filetransfer)no problem, but I can´t seem to find any way to open the videolibrary and select a video and then upload it.
有没有办法做到这一点?以某种方式更改MediaType
navigator.camera.getPicture?
Is there any way to do this? Change MediaType somehow on navigator.camera.getPicture?
任何帮助表示赞赏,提前谢谢
Any help is appreciated, thanks in advance
Nilesh
推荐答案
从库或最近捕获中预览元素的最简单方法是使用原生
The easiest way to preview an element from library or a recent capture is to use a native
html5视频,图片或音频标签,其中uri在getPicture成功调用中返回,
html5 video, image or audio tag with the uri returned in the success call of the getPicture,
capturePicture,captureVideo或captureAudio ...希望它有所帮助。
capturePicture, captureVideo or captureAudio... hope it helps.
这篇关于phonegap插件,用于从库中选择视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!