Live video traffic statistics delay, how to calculate traffic fees without errors

Source: Internet
Author: User
Currently, we are working on a Baidu open cloud interface, which is about the activation of live broadcasting and traffic statistics. However, there is a latency in Baidu's traffic statistics. about 20 minutes, how can I avoid this latency using php and accurately calculate the traffic fee? if your balance is insufficient, disable its live broadcast... currently, we are working on a Baidu open cloud interface, which is about the activation of live broadcasting and traffic statistics. However, there is a latency in Baidu's traffic statistics. about 20 minutes, how can I avoid this latency using php and accurately calculate the traffic fee? if your balance is insufficient, disable its live video;

The solution I came up with is to make a scheduled task that will be executed 20 minutes after the user stops broadcasting, but there is still a problem that live broadcasting can still be performed when the user is in arrears, is there any other solution ??

Reply content:

Currently, we are working on a Baidu open cloud interface, which is about the activation of live broadcasting and traffic statistics. However, there is a latency in Baidu's traffic statistics. about 20 minutes, how can I avoid this latency using php and accurately calculate the traffic fee? if your balance is insufficient, disable its live video;

The solution I came up with is to make a scheduled task that will be executed 20 minutes after the user stops broadcasting, but there is still a problem that live broadcasting can still be performed when the user is in arrears, is there any other solution ??

This statistical delay comes from upstream (your service provider Baidu Open Cloud) you cannot control the latency downstream. you can set a security threshold for the user to estimate the amount of traffic that the user can use in 20 minutes. when the user's balance approaches this traffic, you can the user sends an alarm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.