Results 1 to 4 of 4

Thread: Get Recordstatus in ConnectionCounts.xml

  1. #1
    Join Date
    Jun 2013
    Posts
    4

    Question Get Recordstatus in ConnectionCounts.xml

    Hello,

    I have modified the ConnectionCounts HTTPProvider Class. Now I have a stripped xml, with all informations I need about my streams.
    But I have a Problem to get the recording state of a stream -> is this stream recorded, or not.
    To record this streams, I use the original web-based user interface (UI), that is included in the Wowza Media Server.

    I try to change the HTTPProvider like that:

    import com.wowza.wms.livestreamrecord.model.ILiveStreamRecord;
    
    [...]
    
    public class HTTPWowzaStateXML extends HTTProvider2Base
    {
    
    [...]
    
    	private Map<String, ILiveStreamRecord> recorders = new HashMap<String, ILiveStreamRecord>();
    
    	public void onHTTPRequest(IVHost inVhost, IHTTPRequest req, IHTTPResponse resp)
    	{
    
    		[...]
    
    		ret.append("<Stream>");
    
    		ILiveStreamRecord recorder = null;
    
    		synchronized (recorders)
    		{									
    			recorder = recorders.get(streamName);
    		}
    		if (recorder != null)
    		{
    			ret.append("<Name recording=\"true\">"+URLEncoder.encode(streamName, "UTF-8")+"</Name>");
    		} 
    		else 
    		{
    			ret.append("<Name recording=\"false\">"+URLEncoder.encode(streamName, "UTF-8")+"</Name>");
    		} 
    
    		ret.append("<SessionsFlash>"+toCount(flashCounts.get(streamName), counter)+"</SessionsFlash>");
    		ret.append("<SessionsCupertino>"+toCount(cupertinoCounts.get(streamName), counter)+"</SessionsCupertino>");						
    		
    		[...]
    
    	}
    }
    But I never get a recorded stream.
    I see every stream in the xml, I can record the streams with the UI, but the streams were never marked as recorded...
    What did I wrong?

    Regards
    Alex

  2. #2
    Join Date
    Jun 2013
    Posts
    4

    Default

    Any suggestion?

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

    Default

    Looking around the API, I'm am not sure. I will see if I can find out next week.

    Richard

  4. #4
    Join Date
    Jun 2013
    Posts
    4

    Default

    I looked there, but didn't find something usefull. Whould be great, if you find out something.
    I think, I need something like the [wowza]/livestreamrecord/index.html... This site shows me, if a stream is recorded, or not. But I can't find the source code of that.

    Regards
    Alex

Similar Threads

  1. number of users online from connectioncounts.xml
    By nvanhaute1 in forum Server Administration Discussion
    Replies: 3
    Last Post: 01-30-2014, 08:44 AM
  2. Replies: 3
    Last Post: 02-25-2013, 05:47 AM
  3. Replies: 4
    Last Post: 07-11-2012, 06:29 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
  •