Results 1 to 6 of 6

Thread: Stream viewer count

  1. #1
    Join Date
    Feb 2013
    Posts
    3

    Default Stream viewer count

    Hi

    I'm working on a video streaming site similar to justin.tv. I've set up a load balancer, origin server and two edge servers, which is all working great. My problem is how to get the viewer count of people watching each individual stream (not the connection count) from the edge servers? I was originally just using one server, and using a simple HTTPProvider to get the viewer count of each stream by calling getPlayStreamCount of the application instance.

  2. #2

    Default

    Can you clarify this a bit? By "viewer count of people watching each individual stream" are you talking about how many times each stream has been viewed? as in the number of visitors to that stream over time? Or are you asking if there is a good solution to finding out the number of people watching a stream (such as -- is it just one person watching, or is there a family sitting around the computer watching the one stream, or even a large group of people)?

  3. #3
    Join Date
    Feb 2013
    Posts
    3

    Default

    Hi David

    I want to get the number of how many people are currently watching a stream at any one time. Not how many have watched the stream.

    For instance let's say there's one person streaming to an origin server, and I have two edge servers. I need some way to keep track of how many people are watching the stream across the edge servers.

    I've been playing around with HTTPUtils, IMediaStreamActionNotify3 and a HTTPProvider. Basically my idea is to use HTTPUtils in the onPlay and onStop events on each edge server to call a HTTPProvider, which will increment or decrement a custom viewers property on the stream object.

    I'm not sure if this is the best approach though.

  4. #4
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Take a look at the 2nd example at the bottom of this page:

    http://www.wowza.com/forums/content....rs-to-a-stream

    You can see how to get count per stream across client types.

    Another approach might be to parse connectioncounts from each edge.
    http://www.wowza.com/forums/content....a-Media-Server

    Richard

  5. #5
    Join Date
    Feb 2013
    Posts
    3

    Default

    Hi Richard

    I created a custom HTTPProvider for the edge servers that gets the stream play count. I then created another HTTPProvider on the orgin server and used jsoup to parse the play stream count from each edge server.

    Thanks for the help.

  6. #6
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Cool. Thanks for the update

    Richard

Similar Threads

  1. Which number is the real viewer count?
    By pochoclo in forum General Forum
    Replies: 3
    Last Post: 02-14-2014, 08:26 AM
  2. How do I get stream names with viewer IP's?
    By nitsuj102284 in forum General Forum
    Replies: 8
    Last Post: 08-12-2013, 10:16 AM

Posting Permissions

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