上传时如何获取进度网址? [英] How to get the progress Url working when uploading?
本文介绍了上传时如何获取进度网址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道如何实现进度条/网址功能?我只找到了关于它的有限信息,并且看不到如何使它工作。谢谢。
I am wondering how to implement the progress bar/url function? I have only found limited info about it, and cant see how to get this working.Thanks.
推荐答案
用于制作进度条,您将需要:
For making a progress bar, you will need:
- 进度信息,您可以使用dailymotion API查找。请参阅下面的段落。
- 显示进度。我没有建议,但是简单的Google搜索会有所帮助。例如,HTML5
进度
元素是一个很好的开始: https://developer.mozilla.org/en/docs/Web/HTML/Element/Progress 我从未尝试过,但是您也可以测试诸如 http://api.jqueryui.com/progressbar/
- information of progress, you can find this using dailymotion API. See paragraph below.
- displaying the progress. I have no recommendation but a simple google search will help. For example, the HTML5
progress
element is a good start: https://developer.mozilla.org/en/docs/Web/HTML/Element/Progress I've never tried it but you can also test something such as http://api.jqueryui.com/progressbar/
有关进度的信息,您可以:
For information of progress, you can have:
- 下载视频进度:请求
https://api.dailymotion.com/file/upload
为您提供upload_url
和progress_url
提供有关当前上传进度的信息(参见 https:// developer .dailymotion.com / api#file_upload-fields ) - 编码进度:视频对象上有两个有趣的字段:
encoding_progress
( https://developer.dailymotion.com/api#video-encoding_progress-field )和publishing_progress
( https://developer.dailymotion.com/api#video -publishing_progress-field )
- download video progress: requesting
https://api.dailymotion.com/file/upload
provides you with both aupload_url
and aprogress_url
that provides info on the progress of current upload (cf https://developer.dailymotion.com/api#file_upload-fields) - encoding progress: there are two interesting fields on the video object:
encoding_progress
(https://developer.dailymotion.com/api#video-encoding_progress-field) andpublishing_progress
(https://developer.dailymotion.com/api#video-publishing_progress-field)
这篇关于上传时如何获取进度网址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文