Giter Site home page Giter Site logo

jordicenzano / brighcove-live-ssai-ccu Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 0.0 1.28 MB

POC (proof of concept) to show a possible way to calculate the real time CCU (concurrent viewers) for any Brightcove live stream with SSAI

Shell 16.70% JavaScript 80.13% Python 1.71% HTML 1.46%
streaming analytics gcp-cloud-functions gcp-ap gcp-appengine-flex bigquery hls live video brightcove

brighcove-live-ssai-ccu's People

Contributors

jordicenzano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

brighcove-live-ssai-ccu's Issues

Fix `last_rx_at`

It seems returns the time we API requested the info, example:

[  
   {  
      "time":"2018-08-11T01:59:00.000Z",
      "ccu":2000,
      "jobid":"5a50934b9c2c4c21b6d59e74618d4f7b",
      "last_rx_at":"2018-08-11T02:00:06.106Z"
   },
   {  
      "time":"2018-08-11T01:58:00.000Z",
      "ccu":2000,
      "jobid":"5a50934b9c2c4c21b6d59e74618d4f7b",
      "last_rx_at":"2018-08-11T02:00:06.106Z"
   },
   {  
      "time":"2018-08-11T01:57:00.000Z",
      "ccu":2000,
      "jobid":"5a50934b9c2c4c21b6d59e74618d4f7b",
      "last_rx_at":"2018-08-11T02:00:06.106Z"
   },
   {  
      "jobid":"5a50934b9c2c4c21b6d59e74618d4f7b",
      "last_rx_at":"2018-08-11T02:00:06.106Z",
      "time":"2018-08-11T01:56:00.000Z",
      "ccu":2006
   },
   {  
      "time":"2018-08-11T01:55:00.000Z",
      "ccu":2000,
      "jobid":"5a50934b9c2c4c21b6d59e74618d4f7b",
      "last_rx_at":"2018-08-11T02:00:06.106Z"
   },
   {  
      "jobid":"5a50934b9c2c4c21b6d59e74618d4f7b",
      "last_rx_at":"2018-08-11T02:00:06.106Z",
      "time":"2018-08-11T01:54:00.000Z",
      "ccu":2000
   },
   {  
      "jobid":"5a50934b9c2c4c21b6d59e74618d4f7b",
      "last_rx_at":"2018-08-11T02:00:06.106Z",
      "time":"2018-08-11T01:53:00.000Z",
      "ccu":2000
   },
   {  
      "jobid":"5a50934b9c2c4c21b6d59e74618d4f7b",
      "last_rx_at":"2018-08-11T02:00:06.106Z",
      "time":"2018-08-11T01:52:00.000Z",
      "ccu":2000
   },
   {  
      "time":"2018-08-11T01:51:00.000Z",
      "ccu":2000,
      "jobid":"5a50934b9c2c4c21b6d59e74618d4f7b",
      "last_rx_at":"2018-08-11T02:00:06.106Z"
   },
   {  
      "last_rx_at":"2018-08-11T02:00:06.106Z",
      "time":"2018-08-11T01:50:00.000Z",
      "ccu":2000,
      "jobid":"5a50934b9c2c4c21b6d59e74618d4f7b"
   },
   {  
      "time":"2018-08-11T01:49:00.000Z",
      "ccu":1929,
      "jobid":"5a50934b9c2c4c21b6d59e74618d4f7b",
      "last_rx_at":"2018-08-11T02:00:06.106Z"
   },
   {  
      "jobid":"5a50934b9c2c4c21b6d59e74618d4f7b",
      "last_rx_at":"2018-08-11T02:00:06.106Z",
      "time":"2018-08-11T01:48:00.000Z",
      "ccu":1796
   },
   {  
      "jobid":"5a50934b9c2c4c21b6d59e74618d4f7b",
      "last_rx_at":"2018-08-11T02:00:06.106Z",
      "time":"2018-08-11T01:47:00.000Z",
      "ccu":1662
   },
   {  
      "time":"2018-08-11T01:46:00.000Z",
      "ccu":1529,
      "jobid":"5a50934b9c2c4c21b6d59e74618d4f7b",
      "last_rx_at":"2018-08-11T02:00:06.106Z"
   },
   {  
      "time":"2018-08-11T01:45:00.000Z",
      "ccu":1396,
      "jobid":"5a50934b9c2c4c21b6d59e74618d4f7b",
      "last_rx_at":"2018-08-11T02:00:06.106Z"
   },
   {  
      "jobid":"5a50934b9c2c4c21b6d59e74618d4f7b",
      "last_rx_at":"2018-08-11T02:00:06.106Z",
      "time":"2018-08-11T01:44:00.000Z",
      "ccu":1263
   },
   {  
      "time":"2018-08-11T01:43:00.000Z",
      "ccu":1129,
      "jobid":"5a50934b9c2c4c21b6d59e74618d4f7b",
      "last_rx_at":"2018-08-11T02:00:06.106Z"
   },
   {  
      "time":"2018-08-11T01:42:00.000Z",
      "ccu":997,
      "jobid":"5a50934b9c2c4c21b6d59e74618d4f7b",
      "last_rx_at":"2018-08-11T02:00:06.106Z"
   },
   {  
      "jobid":"5a50934b9c2c4c21b6d59e74618d4f7b",
      "last_rx_at":"2018-08-11T02:00:06.106Z",
      "time":"2018-08-11T01:41:00.000Z",
      "ccu":864
   },
   {  
      "jobid":"5a50934b9c2c4c21b6d59e74618d4f7b",
      "last_rx_at":"2018-08-11T02:00:06.106Z",
      "time":"2018-08-11T01:40:00.000Z",
      "ccu":731
   },
   {  
      "last_rx_at":"2018-08-11T02:00:06.106Z",
      "time":"2018-08-11T01:39:00.000Z",
      "ccu":598,
      "jobid":"5a50934b9c2c4c21b6d59e74618d4f7b"
   },
   {  
      "jobid":"5a50934b9c2c4c21b6d59e74618d4f7b",
      "last_rx_at":"2018-08-11T02:00:06.106Z",
      "time":"2018-08-11T01:38:00.000Z",
      "ccu":465
   },
   {  
      "jobid":"5a50934b9c2c4c21b6d59e74618d4f7b",
      "last_rx_at":"2018-08-11T02:00:06.106Z",
      "time":"2018-08-11T01:37:00.000Z",
      "ccu":332
   },
   {  
      "jobid":"5a50934b9c2c4c21b6d59e74618d4f7b",
      "last_rx_at":"2018-08-11T02:00:06.106Z",
      "time":"2018-08-11T01:36:00.000Z",
      "ccu":199
   },
   {  
      "time":"2018-08-11T01:35:00.000Z",
      "ccu":65,
      "jobid":"5a50934b9c2c4c21b6d59e74618d4f7b",
      "last_rx_at":"2018-08-11T02:00:06.106Z"
   },
   {  
      "time":"2018-08-11T01:34:00.000Z",
      "ccu":1,
      "jobid":"5a50934b9c2c4c21b6d59e74618d4f7b",
      "last_rx_at":"2018-08-11T02:00:06.106Z"
   }
]```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.