Interface IHTTPStreamerCupertinoLivePacketizerDataHandler


  • public interface IHTTPStreamerCupertinoLivePacketizerDataHandler
    Interface for Cupertino live packetizer data events

    This interface provides access to data being added to a chunk.

    IHTTPStreamerCupertinoLivePacketizerDataHandler2 should be used in preference to this interface

    Example implementation

     public class Control extends ModuleBase
     {
    
            public void onAppStart(IApplicationInstance appInstance)
            {
                    appInstance.addLiveStreamPacketizerListener(new LiveStreamPacketizer());
            }
    
            class LiveStreamPacketizer implements ILiveStreamPacketizerActionNotify
            {
                    public void onLiveStreamPacketizerCreate(ILiveStreamPacketizer liveStreamPacketizer,
                                                    String streamName) { }
                    public void onLiveStreamPacketizerDestroy(ILiveStreamPacketizer liveStreamPacketizer) { }
                    public void onLiveStreamPacketizerInit(ILiveStreamPacketizer liveStreamPacketizer,
                                                    String streamName)
                    {
                            if ( liveStreamPacketizer instanceof LiveStreamPacketizerCupertino )
                            {
                                    LiveStreamPacketizerCupertino cupertinoPacketizer =
                                            (LiveStreamPacketizerCupertino)liveStreamPacketizer;
                                    cupertinoPacketizer.setDataHandler(new CupertinoLivePacketizerDataHandler());
                            }
                    }
            }
    
            class CupertinoLivePacketizerDataHandler implements IHTTPStreamerCupertinoLivePacketizerDataHandler
            {
                    public void onFillChunkDataPacket(CupertinoPacketHolder arg0, AMFPacket arg1, ID3Frames arg2) { }
            }
    
     }
     
    • Method Detail

      • onFillChunkDataPacket

        void onFillChunkDataPacket​(com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.CupertinoPacketHolder holder,
                                   AMFPacket packet,
                                   ID3Frames id3Frames)
        This is called when a data packet is being processed. This provides access to the packet and ID3 frame object being populated with data
        Parameters:
        holder -
        packet -
        id3Frames -