摘要: dataURLtoFile(dataurl, filename) { var arr = dataurl.split(","), mime = arr[0].match(/:(.*?);/)[1], bstr = atob(arr[1]), n = bstr.length, u8arr = new Uint8Array(n); while (n--) { u8arr[n] = bstr.charC 阅读全文
posted @ 2019-09-29 19:53 绿谷 阅读(3676) 评论(0) 推荐(0) 编辑
摘要: <input type="file" id="upload-ipt" @change="chooseVideo" accept="video/*" /> <div id="box" style="display:none"></div> chooseVideo(e) { var that = this; var obj_file = document.getElementById("upload- 阅读全文
posted @ 2019-09-29 19:52 绿谷 阅读(7319) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-09-29 19:45 绿谷 阅读(824) 评论(0) 推荐(0) 编辑
摘要: IOS端:完美解决 移动端微信: 解决遮挡问题,但是点击播放会拉伸网页然后全屏播放,体验不好 移动端浏览器:引用第三方插件jsmpeg.js将ts格式的视频转成canvas,但在IOS和低性能安卓卡顿严重 阅读全文
posted @ 2019-09-29 19:37 绿谷 阅读(1612) 评论(0) 推荐(0) 编辑