Results 1 to 2 of 2

Thread: skip method (InvalidParameterCount): resolvePlayAlias

  1. #1
    Join Date
    Feb 2011
    Posts
    15

    Exclamation skip method (InvalidParameterCount): resolvePlayAlias

    Hello,

    I'm writing a plugin for live video stream aliasing, but it isn't working. There is nothing logged when I attempt to play a stream. The only log entries I get, are the ones I posted below. Am I missing a wowza dependency or an existing library version mismatch? I'm using Wowza server dev. version 2.2.3 & Wowza module for Eclipse for development.

    LOG
    ===
    load module: name:SmilAlias class:com.mycompany.video.mbr.SmilAlias
    add method (event): onAppStart
    skip method (InvalidParameterCount): resolvePlayAlias
    skip method (InvalidParameterCount): resolvePlayAlias
    skip method (InvalidParameterCount): resolvePlayAlias
    skip method (InvalidParameterCount): resolvePlayAlias
    skip method (InvalidParameterCount): resolvePlayAlias
    skip method (InvalidParameterCount): resolveStreamAlias
    skip method (InvalidParameterCount): resolveStreamAlias



    /VIDEO_LIVE_MBR/APPLICATION.XML
    ===============================
    <Module> 
    	<Name>SmilAlias</Name> 
    	<Description>SmilAlias</Description> 
    	<Class>com.mycompany.video.mbr.SmilAlias</Class> 
    </Module>

    CODE: SmilAlias.jar
    ==============
    package com.mycompany.video.mbr;
    
    // imports
    
    public class SmilAlias extends ModuleBase implements IMediaStreamNameAliasProvider2 {
    
    	private IResolver resolver = null;
    	
    	public void onAppStart(IApplicationInstance appInstance) {
    		String fullname = appInstance.getApplication().getName() + "/" + appInstance.getName();		
    		getLogger().info("onAppStart: " + fullname);
    		
    		try {
    			resolver = (IResolver) new Resolver(getLogger());
    			resolver.setStreamStorageDir(appInstance.getStreamStorageDir());
    		}
    		catch(Exception e) {
    			getLogger().info("onAppStart.resolver " + fullname + " ==> " + e.getMessage());
    		}
    		
    		appInstance.setStreamNameAliasProvider(this);
    		
    		getLogger().info("onAppStart: " + fullname + " [ready]");
    	}
    
    	@Override
    	public String resolvePlayAlias(IApplicationInstance appInstance, String name) {
    		getLogger().info(">> Resolve Play: " + name);
    		return resolver == null ? name : resolver.playAlias(name);
    	}
    
    	@Override
    	public String resolveStreamAlias(IApplicationInstance appInstance, String name) {
    		getLogger().info(">> Resolve Stream: " + name);
    		return resolver == null ? name : resolver.streamAlias(name);
    	}
    
    	@Override
    	public String resolvePlayAlias(IApplicationInstance appInstance, String name, IClient client) {
    		getLogger().info(">> Resolve Play Flash: " + name);
    		return resolver == null ? name : resolver.playAlias(name);
    	}
    
    	@Override
    	public String resolvePlayAlias(IApplicationInstance appInstance, String name, IHTTPStreamerSession httpSession) {
    		getLogger().info(">> Resolve Play HTTP: " + name);
    		return resolver == null ? name : resolver.playAlias(name);
    	}
    
    	@Override
    	public String resolvePlayAlias(IApplicationInstance appInstance, String name, RTPSession rtpSession) {
    		getLogger().info(">> Resolve Play RTP: " + name);
    		return resolver == null ? name : resolver.playAlias(name);
    	}
    
    	@Override
    	public String resolvePlayAlias(IApplicationInstance appInstance, String name, ILiveStreamPacketizer liveStreamPacketizer) {
    		getLogger().info(">> Resolve Play LiveStreamPacketizer: " + name);
    		return resolver == null ? name : resolver.playAlias(name);
    	}
    
    	@Override
    	public String resolveStreamAlias(IApplicationInstance appInstance, String name, IMediaCaster mediaCaster) {
    		getLogger().info(">> Resolve Stream MediaCaster: " + name);
    		return resolver == null ? name : resolver.streamAlias(name);
    	}
    }

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

    Default

    Hi
    Your code is a little wrong but its all listed here,
    http://www.wowza.com/forums/content....der2-interface

    A few changes and it should work fine.

    Jason

Similar Threads

  1. HLS stream sudden skip
    By shay@mintmark.co.il in forum Video On Demand Streaming Discussion
    Replies: 1
    Last Post: 08-24-2012, 03:32 AM
  2. resolvePlayAlias getting called twice
    By erbora00 in forum General Forum
    Replies: 1
    Last Post: 10-24-2011, 05:24 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
  •