上传时如何获取进度网址? [英] How to get the progress Url working when uploading?

查看:143
本文介绍了上传时如何获取进度网址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何实现进度条/网址功能?我只找到了关于它的有限信息,并且看不到如何使它工作。谢谢。

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:

  • 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:

  • download video progress: requesting https://api.dailymotion.com/file/upload provides you with both a upload_url and a progress_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) and publishing_progress (https://developer.dailymotion.com/api#video-publishing_progress-field)

这篇关于上传时如何获取进度网址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆