Results 1 to 4 of 4

Thread: Problem implementing IMediaStreamNameAliasProvider2

  1. #1
    Join Date
    Jan 2009
    Posts
    5

    Default Problem implementing IMediaStreamNameAliasProvider2

    Hi,

    I'm trying to create a module implementing IMediaStreamNameAliasProvider2.

    My code is (exactly the same as the example on http://www.wowza.com/forums/content....der2-interface except for the class name):

    public class XXXCLASSNAMEXXX extends ModuleBase implements IMediaStreamNameAliasProvider2 {
    
        public void onAppStart(IApplicationInstance appInstance) {
            String fullname = appInstance.getApplication().getName() + "/"
                    + appInstance.getName();
            getLogger().info("onAppStart: " + fullname);
    
            appInstance.setStreamNameAliasProvider(this);
    
        }
    
        @Override
        public String resolvePlayAlias(IApplicationInstance appInstance,
                String name, IClient client) {
            getLogger().info("Resolve Play Flash: " + name);
    
            return name;
        }
    
        @Override
        public String resolvePlayAlias(IApplicationInstance appInstance,
                String name, IHTTPStreamerSession httpSession) {
            getLogger().info("Resolve Play HTTPSession: " + name);
            return name;
        }
    
        @Override
        public String resolvePlayAlias(IApplicationInstance appInstance,
                String name, RTPSession rtpSession) {
            getLogger().info("Resolve Play RTPSession: " + name);
            return name;
        }
    
        @Override
        public String resolvePlayAlias(IApplicationInstance appInstance,
                String name, ILiveStreamPacketizer liveStreamPacketizer) {
            getLogger().info("Resolve Play LiveStreamPacketizer: " + name);
            return name;
        }
    
        @Override
        public String resolveStreamAlias(IApplicationInstance appInstance,
                String name, IMediaCaster mediaCaster) {
            getLogger().info("Resolve Stream Mediacaster: " + name);
            return name;
        }
    
        @Override
        public String resolvePlayAlias(IApplicationInstance appInstance, String name) {
            getLogger().info("Resolve Play: " + name);
            return name;
        }
    
        @Override
        public String resolveStreamAlias(IApplicationInstance appInstance,
                String name) {
            getLogger().info("Resolve Stream: " + name);
            return name;
        }
    }
    Running on Wowza Media Server 3 Developer Edition (Expires: Dec 07, 2012) 3.1.1 build1479 I get the following log message

    2012-06-08      17:10:31        WEST    comment server  DEBUG   200     -       load module: name:XXXCLASSNAMEXXX class:XXXFULLCLASSPATHXXX  -       -       -       13.62   -       -       -       -
    2012-06-08      17:10:31        WEST    comment server  DEBUG   200     -         skip method (InvalidParameterCount): resolvePlayAlias -       -       -       13.626  -       -       -       -       -       -       -       -       -       -
    2012-06-08      17:10:31        WEST    comment server  DEBUG   200     -         skip method (InvalidParameterCount): resolvePlayAlias -       -       -       13.626  -       -       -       -       -       -       -       -       -       -
    2012-06-08      17:10:31        WEST    comment server  DEBUG   200     -         skip method (InvalidParameterCount): resolvePlayAlias -       -       -       13.627  -       -       -       -       -       -       -       -       -       -
    2012-06-08      17:10:31        WEST    comment server  DEBUG   200     -         skip method (InvalidParameterCount): resolvePlayAlias -       -       -       13.627  -       -       -       -       -       -       -       -       -       -
    2012-06-08      17:10:31        WEST    comment server  DEBUG   200     -         skip method (InvalidParameterCount): resolvePlayAlias -       -       -       13.627  -       -       -       -       -       -       -       -       -       -
    2012-06-08      17:10:31        WEST    comment server  DEBUG   200     -         skip method (InvalidParameterCount): resolveStreamAlias       -       -       -       13.63   -       -       -       -       -       -       -       -       -
    2012-06-08      17:10:31        WEST    comment server  DEBUG   200     -         skip method (InvalidParameterCount): resolveStreamAlias       -       -       -       13.63   -       -       -       -       -       -       -       -       -
    2012-06-08      17:10:31        WEST    comment server  DEBUG   200     -         add method (event): onAppStart        -       -       -       13.63   -       -       -       -       -       -       -       -       -       -       -       -
    And nothing about the plugin works... Any idea on what it could be?

    Thanks!
    Last edited by bmfurtado; 06-08-2012 at 09:23 AM.

  2. #2
    Join Date
    Jan 2009
    Posts
    5

    Default

    Clearly I posted this on the wrong forum... Can one of the moderators move it to the right place? =)

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

    Default

    First, I would turn off DEBUG level logging, revert to INFO. Those are overloaded methods so probably why that messaging, probably misleading because of DEBUG logging... I think

    How are you testing? If you are starting a stream in StreamManager, the method that runs is the first resolveStreamAlias method.

    public String resolveStreamAlias(IApplicationInstance appInstance,
    			String name, IMediaCaster mediaCaster) {
    		getLogger().info("Resolve Stream Mediacaster: " + name);
    		return name;
    	}
    Richard

  4. #4
    Join Date
    Jan 2009
    Posts
    5

    Default

    Hi Richard,

    I will investigate further and get back to you.
    Last edited by bmfurtado; 06-08-2012 at 10:55 AM.

Similar Threads

  1. Implementing awstats for Wowza 3.5
    By drserg in forum General Forum
    Replies: 1
    Last Post: 05-29-2013, 10:22 AM
  2. Any plans on implementing RFC6184?
    By cowwoc in forum Video On Demand Streaming Discussion
    Replies: 2
    Last Post: 04-28-2012, 09:05 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
  •