Results 1 to 4 of 4

Thread: Bytes in rate from publisher in HTTP provider

  1. #1
    Join Date
    Jul 2014
    Posts
    5

    Default Bytes in rate from publisher in HTTP provider

    I have an HTTP provider where I am currently displaying some extra stats and I would like to add the Bytes in Rate for each publisher connected. I am iterating through the applications, then each app instance within an application and finally iterating through all the publishers of each app instance. What method do I use to get a data rate for the stream the publisher is sending (live streams)? I noticed the web engine manager displays this and just wondering how to access via the API.

    Thanks

  2. #2
    Join Date
    May 2013
    Posts
    680

    Default

    You might try obtaining an IMediaStream reference and using the getMediaIOPerformance function similar to the following:
    appInstance.getStreams().getStream(streamName).getMediaIOPerformance().getMessagesInBytes()

  3. #3
    Join Date
    Jul 2014
    Posts
    5

    Default

    Thanks that points me in the right direction but it looks like getMediaIOPerformance().getMessagesInBytesRate() is actually what I would want so I would get the bytes per second.

  4. #4
    Join Date
    May 2013
    Posts
    680

    Default

    Ah ok, I missed that you had asked for the rate. The getMessagesInBytesRate should work in this case. Thanks for the update.

Similar Threads

  1. Use HTTPS for an HTTP Provider?
    By guilleart in forum Server-side Modules and Code Samples Discussion
    Replies: 1
    Last Post: 11-28-2013, 12:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •