亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

javascript - It is possible to call the photo album or take pictures or record short videos and upload them on the mobile webpage. Has anyone done related functions? Please let me know. It can be used for projects. Urgent! ! !
歐陽克
歐陽克 2017-06-22 11:53:47
0
7
1244

Are there any related plug-ins or demos? My project was developed using VUE

歐陽克
歐陽克

溫故而知新,可以為師矣。 博客:www.ouyangke.com

reply all(7)
代言

You can check this out: http://blog.csdn.net/jwzhangj...

滿天的星座

JS can’t control this. It’s decided by the browser. When you click input.type=file to upload a file, the browser decides where to select the file to upload.

學(xué)霸

html:

<input type="file" @change="upload($event)">

js:

let vm=new Vue({
 el:'#app',
 data:{
imageList:[]
},
methods:{
 upload(event){
 let files=event.target.files;
//然后使用html5的文件函數(shù)進(jìn)行 FileReader,在使用image函數(shù)和canvas的toDataUrl,把base64數(shù)據(jù)存入imageList
}
}
})
ringa_lee

If you are a hybrid app, you need to call the native api interface. For example, the native api interface gives you an interface for shooting videos. You call it, and then after shooting the video, you will get a callback function, which will have what you need. The video address can then be uploaded. By the way, it is best to write it natively. In this way, you are only responsible for calling the interface. There is no way for js to directly call the mobile phone camera, you must go through the native one

習(xí)慣沉默

http://blog.csdn.net/qq727013...

Take a look at this, it can be cropped, but video is not supported currently, you can change it

黃舟

Use the <input> accept attribute, such as <input type="file" accept="audio/,video/,image/*" />
Reference

扔個(gè)三星炸死你

/a/11...
There is a girl who used a PC browser to call the camera, take photos, and add watermarks. Please refer to it or ask her for advice.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template