Results 1 to 7 of 7

Thread: IMediaStreamH264SEINotify - Does it exist?

  1. #1

    Default IMediaStreamH264SEINotify - Does it exist?

    I noticed that the Server Side API discloses an IMediaStreamH264SEINotify interface. However, I don't see this inferface anywhere in the Wowza libraries, nor do I see the IMedisStream#addVideoH264SEIListener(IMediaStreamH264SEINotify h264SEIListener) et. al. methods.

    If they don't really exist in version 3, is there a preferred way to listen for H.264 SEI messages?

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

    Default

    Try this:

    package test;
    
    import com.wowza.wms.amf.*;
    import com.wowza.wms.application.*;
    import com.wowza.wms.module.*;
    import com.wowza.wms.stream.*;
    import com.wowza.wms.media.h264.H264SEIMessages;
    
    public class ModuleMediaStreamSEIListenerExample extends ModuleBase
    {
    	class SEIListener implements IMediaStreamH264SEINotify
    	{
    		public void onVideoH264Packet(IMediaStream arg0, AMFPacket arg1,
    				H264SEIMessages arg2) {
    
    		}
    	}
    
    	public void onStreamCreate(IMediaStream stream)
    	{
    		getLogger().info("onStreamCreate["+stream+"]: clientId:" + stream.getClientId());
    		IMediaStreamH264SEINotify seiListener = new SEIListener();
    
    		WMSProperties props = stream.getProperties();
    		synchronized (props)
    		{
    			props.put("SEIListener", seiListener);
    		}		
    		stream.addVideoH264SEIListener(seiListener);
    	}
    
    	public void onStreamDestroy(IMediaStream stream)
    	{
    		getLogger().info("onStreamDestroy["+stream+"]: clientId:" + stream.getClientId());
    
    		IMediaStreamH264SEINotify seiListener = null;
    		WMSProperties props = stream.getProperties();
    		synchronized (props)
    		{
    			seiListener = (IMediaStreamH264SEINotify) stream.getProperties().get("SEIListener");
    		}
    		if (seiListener != null)
    		{
    			stream.removeVideoH264SEIListener(seiListener);
    		}
    	}
    }
    Richard

  3. #3

    Default

    I can't find IMediaStreamH264SEINotify. I downloaded the latest version of Wowza from the site (3.1.2) and that interface wasn't in there. Am I missing an add-on jar or something?

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

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

    Default

    Hi
    Your Wowza IDE may be pointing to the wrong location.
    If you haven't updated the IDE location it will be pointing to the previous version of Wowza.

    Jason

  6. #6

    Default

    Quote Originally Posted by JasonH View Post
    Hi
    Your Wowza IDE may be pointing to the wrong location.
    If you haven't updated the IDE location it will be pointing to the previous version of Wowza.
    Indeed that was it - Updating the lib location in build.xml wasn't enough. There were 3.0 jars selected in the project properties in the Java build path. Thanks.

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

    Default

    Hi
    Thanks for the update.

    Jason

Similar Threads

  1. [ASK] Transcoding AddOn is not exist
    By thomsonsitohang in forum Tutorials
    Replies: 3
    Last Post: 10-17-2014, 04:44 AM
  2. stream not exist redirect vod
    By MARY2006 in forum Live Streaming and Encoder Discussion
    Replies: 8
    Last Post: 04-01-2014, 12:39 PM
  3. IMediaStreamH264SEINotify - Is it available for VOD?
    By syncmatt in forum General Forum
    Replies: 2
    Last Post: 03-30-2013, 06:53 AM
  4. Replies: 3
    Last Post: 11-29-2012, 10:11 AM
  5. Live Stream doesn't exist?
    By nkordyjaka in forum Live Streaming and Encoder Discussion
    Replies: 1
    Last Post: 05-03-2012, 06:03 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
  •