Results 1 to 2 of 2

Thread: Listen to audio packets

  1. #1

    Default Listen to audio packets

    Hi,

    I would like to be able to put a listener on audio packets similar on how I can do so with h264 video packets with:
    IMediaStreamH264SEINotify.onVideoH264Packet

    Is this possible?

    If so how?

    Thanks,
    Jonathan

  2. #2
    Join Date
    May 2013
    Posts
    680

    Default

    Hello Jonathan,

    In version 4, You could try IMediaStreamLivePacketNotify and check to see if its an audio packet:
    	public void onLivePacket(IMediaStream stream, AMFPacket packet)
    	{
    		// TODO Auto-generated method stub
    		if(packet.isAudio()){
    			getLogger().info("****Audio packet...");
    		}
    		
    	}
    You can invoke this via onStreamCreate.

    Thanks,

    Matt
    Last edited by matt_y; 04-03-2014 at 04:34 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
  •