Results 1 to 5 of 5

Thread: Stream name issue in "connectioncounts" XML using liverepeater edge-origin

  1. #1

    Post Stream name issue in "connectioncounts" XML using liverepeater edge-origin

    Hi!
    I am trying to parse my "connectioncounts" XML and i find the following issue: stream names do not appear in the way they should.
    I've "duckduckgoing" around and searching this forum, and y can seem to find the solution.

    Here i paste an excerpt of the code:

    <WowzaMediaServer>
    	<ConnectionsCurrent>504</ConnectionsCurrent>
    	<ConnectionsTotal>20383</ConnectionsTotal>
    	<ConnectionsTotalAccepted>20359</ConnectionsTotalAccepted>
    	<ConnectionsTotalRejected>24</ConnectionsTotalRejected>
    	<MessagesInBytesRate>1280906.0</MessagesInBytesRate>
    	<MessagesOutBytesRate>2.5089572E7</MessagesOutBytesRate>
    	<VHost>
    		<Name>_defaultVHost_</Name>
    		<TimeRunning>59381.829</TimeRunning>
    		<ConnectionsLimit>0</ConnectionsLimit>
    		<ConnectionsCurrent>504</ConnectionsCurrent>
    		<ConnectionsTotal>20383</ConnectionsTotal>
    		<ConnectionsTotalAccepted>20359</ConnectionsTotalAccepted>
    		<ConnectionsTotalRejected>24</ConnectionsTotalRejected>
    		<MessagesInBytesRate>1205117.0</MessagesInBytesRate>
    		<MessagesOutBytesRate>2.3980695E7</MessagesOutBytesRate>
    		<Application>
    			<Name>liveX</Name>
    			<Status>loaded</Status>
    			<TimeRunning>41697.47</TimeRunning>
    			<ConnectionsCurrent>23</ConnectionsCurrent>
    			<ConnectionsTotal>2282</ConnectionsTotal>
    			<ConnectionsTotalAccepted>2280</ConnectionsTotalAccepted>
    			<ConnectionsTotalRejected>2</ConnectionsTotalRejected>
    			<MessagesInBytesRate>174007.0</MessagesInBytesRate>
    			<MessagesOutBytesRate>813115.0</MessagesOutBytesRate>
    			<ApplicationInstance>
    				<Name>Xtv</Name>
    				<TimeRunning>41697.468</TimeRunning>
    				<ConnectionsCurrent>23</ConnectionsCurrent>
    				<ConnectionsTotal>2251</ConnectionsTotal>
    				<ConnectionsTotalAccepted>2249</ConnectionsTotalAccepted>
    				<ConnectionsTotalRejected>2</ConnectionsTotalRejected>
    				<MessagesInBytesRate>174007.0</MessagesInBytesRate>
    				<MessagesOutBytesRate>813115.0</MessagesOutBytesRate>
    				<Stream>
    					<Name>rtmp%3A%2F%2Forigin1.internal.xxx.com%3A1935%2FliveX%2FXtv%2FXtv3%7Crtmp%3A%2F%2Forigin2.internal.xxx.com%3A1935%2FliveX%2FXtv%2FXtv3</Name>
    					<SessionsFlash>8</SessionsFlash>
    					<SessionsCupertino>0</SessionsCupertino>
    					<SessionsSanJose>0</SessionsSanJose>
    					<SessionsSmooth>0</SessionsSmooth>
    					<SessionsRTSP>0</SessionsRTSP>
    					<SessionsTotal>8</SessionsTotal>
    				</Stream>
    				<Stream>
    					<Name>rtmp%3A%2F%2Forigin1.internal.xxx.com%3A1935%2FliveX%2FXtv%2FXtv2%7Crtmp%3A%2F%2Forigin2.internal.xxx.com%3A1935%2FliveX%2FXtv%2FXtv2</Name>
    					<SessionsFlash>7</SessionsFlash>
    					<SessionsCupertino>0</SessionsCupertino>
    					<SessionsSanJose>0</SessionsSanJose>
    					<SessionsSmooth>0</SessionsSmooth>
    					<SessionsRTSP>0</SessionsRTSP>
    					<SessionsTotal>7</SessionsTotal>
    				</Stream>
    As you can see, the "Name" tag inside "Stream" shows this:

    <Name>rtmp%3A%2F%2Forigin1.internal.xxx.com%3A1935%2Flive13%2F13tv%2F13tv3%7Crtmp%3A%2F%2Forigin2.internal.xxx.com%3A1935%2Flive13%2F13tv%2F13tv3</Name>
    That would translate into: "rtmp://origin1.internal.xxx.com:/liveX/Xtv/Xtv3|rtmp://origin2.internal.xxx.com:/liveX/Xtv/Xtv3" , where "origin1.internal.xxx.com" and "origin2.internal.xxx.com" are my liverepeater origins.

    • Is this normal or could it be something wrong in my config?
    • In case is normal: Did anyone got this "working around" without modifying the "connectioncounts" source?
    • I need to get this working in order to be able to monitor the amount of connections for each quality of the live stream.
    • (im using Wowza 2)


    Thank you very much for your help!

  2. #2
    Join Date
    Sep 2011
    Posts
    1,933

    Default

    Hi
    This is the normal output by Wowza I'm afraid.
    There is no workaround without editing the connectioncounts code at this time.

    If you wanted to write/edit the code in order to correct the formatting it can be done but would be best tackled in Wowza 3.
    Wowza 3 has more functionality and support is better as it includes bug fixes etc.

    Jason

  3. #3

    Default

    Why not just use java.net.URLDecoder()?

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

    Default

    Use .stream files or StreamNameAlias alias names that map to the URL. That will make it more readable and is necessary for some players and for HTTP clients

    <Stream>
    	<Name>origin.stream</Name>
    ...
    Richard

  5. #5

    Default

    Thxks for all the replies!

    Quote Originally Posted by rrlanham View Post
    Use .stream files or StreamNameAlias alias names that map to the URL. That will make it more readable and is necessary for some players and for HTTP clients

    <Stream>
    	<Name>origin.stream</Name>
    ...
    Richard
    Im reading about "StreamNameAlias" and it may be a solution.

    What are those ".stream files"? Where can i find more about them?

    Txks!

Similar Threads

  1. liverepeater-edge | How to return "stream not found" if streamName doesn't exist
    By nilsver in forum Live Streaming and Encoder Discussion
    Replies: 4
    Last Post: 07-18-2014, 05:12 AM
  2. Origin/Edge: "illegal" characters in the Origin URL?
    By HelderConde in forum General Forum
    Replies: 4
    Last Post: 05-09-2014, 06:08 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
  •