Interface ILiveStreamTranscoderActionNotify

  • All Known Implementing Classes:
    LiveStreamTranscoderActionNotifyBase

    public interface ILiveStreamTranscoderActionNotify

    ILiveStreamTranscoderActionNotify: listener interface for live stream transcoder events.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onCalculateSourceAudioBitrate​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder, long bitrate)
      Called when the bitrate of the source audio stream is calculated
      void onCalculateSourceVideoBitrate​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder, long bitrate)
      Called when the bitrate of the source video stream is calculated
      void onInitAfterLoadTemplate​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder)
      Called just after transcoder template is loaded.
      void onInitBeforeLoadTemplate​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder)
      Called just before transcoder template is loaded
      void onInitStart​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder, String streamName, String transcoderName, IApplicationInstance appInstance, com.wowza.wms.stream.livetranscoder.LiveStreamTranscoderItem liveStreamTranscoderItem)
      Call when live stream transcoder is first created
      void onInitStop​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder)
      At the end of the initialization process
      void onRegisterStreamNameGroup​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder, com.wowza.wms.transcoder.model.TranscoderStreamNameGroup streamNameGroup)
      Called after a stream name group is resolved and registered with MediaStreamMap
      void onResetStream​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder)
      Called when the stream feeding the live stream transcoder switches.
      void onSessionAudioDecodeCodecInfo​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder, com.wowza.wms.media.model.MediaCodecInfoAudio codecInfoAudio)
      Called when audio decoding information is available.
      void onSessionAudioEncodeCodecInfo​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder, com.wowza.wms.transcoder.model.TranscoderSessionAudioEncode sessionAudioEncode, com.wowza.wms.media.model.MediaCodecInfoAudio codecInfoAudio)
      Called when audio encoding information is available.
      void onSessionAudioEncodeCreate​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder, com.wowza.wms.transcoder.model.TranscoderSessionAudioEncode sessionAudioEncode)
      Called when audio encoder session is created.
      void onSessionAudioEncodeInit​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder, com.wowza.wms.transcoder.model.TranscoderSessionAudioEncode sessionAudioEncode)
      Called after audio session is initialized.
      void onSessionAudioEncodeSetup​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder, com.wowza.wms.transcoder.model.TranscoderSessionAudioEncode sessionAudioEncode)
      Called after native audio encoder is created and initialized.
      void onSessionDataEncodeCreate​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder, com.wowza.wms.transcoder.model.TranscoderSessionDataEncode sessionDataEncode)
      Called when data encoder session is created.
      void onSessionDataEncodeInit​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder, com.wowza.wms.transcoder.model.TranscoderSessionDataEncode sessionDataEncode)
      Called after data session is initialized.
      void onSessionDestinationCreate​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder, com.wowza.wms.transcoder.model.TranscoderSessionDestination sessionDestination)
      Called when transcoding destination is created
      void onSessionVideoDecodeCodecInfo​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder, com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo)
      Called when video decoding information is available.
      void onSessionVideoEncodeCodecInfo​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder, com.wowza.wms.transcoder.model.TranscoderSessionVideoEncode sessionVideoEncode, com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo)
      Called when video encoding information is available.
      void onSessionVideoEncodeCreate​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder, com.wowza.wms.transcoder.model.TranscoderSessionVideoEncode sessionVideoEncode)
      Called when video encoder session is created.
      void onSessionVideoEncodeInit​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder, com.wowza.wms.transcoder.model.TranscoderSessionVideoEncode sessionVideoEncode)
      Called after video session is initialized.
      void onSessionVideoEncodeSetup​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder, com.wowza.wms.transcoder.model.TranscoderSessionVideoEncode sessionVideoEncode)
      Called after native video encoder is created and initialized.
      void onShutdownStart​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder)
      Called when the live stream transcoder starts to shutdown.
      void onShutdownStop​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder)
      Called when the live stream transcoder is shutdown.
      void onUnregisterStreamNameGroup​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder, com.wowza.wms.transcoder.model.TranscoderStreamNameGroup streamNameGroup)
      Called after a stream name group is unregistered with MediaStreamMap
    • Method Detail

      • onInitStart

        void onInitStart​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder,
                         String streamName,
                         String transcoderName,
                         IApplicationInstance appInstance,
                         com.wowza.wms.stream.livetranscoder.LiveStreamTranscoderItem liveStreamTranscoderItem)
        Call when live stream transcoder is first created
        Parameters:
        liveStreamTranscoder - live stream transcoder
        streamName - stream name
        transcoderName - transcoder name
        appInstance - application instance
        liveStreamTranscoderItem - live stream transcoder definition
      • onInitBeforeLoadTemplate

        void onInitBeforeLoadTemplate​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder)
        Called just before transcoder template is loaded
        Parameters:
        liveStreamTranscoder - live stream transcoder
      • onInitAfterLoadTemplate

        void onInitAfterLoadTemplate​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder)
        Called just after transcoder template is loaded. Good place to modify values loaded from template.
        Parameters:
        liveStreamTranscoder - live stream transcoder
      • onInitStop

        void onInitStop​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder)
        At the end of the initialization process
        Parameters:
        liveStreamTranscoder - live stream transcoder
      • onCalculateSourceVideoBitrate

        void onCalculateSourceVideoBitrate​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder,
                                           long bitrate)
        Called when the bitrate of the source video stream is calculated
        Parameters:
        liveStreamTranscoder - live stream transcoder
        bitrate - source bitrate (bytes per second)
      • onCalculateSourceAudioBitrate

        void onCalculateSourceAudioBitrate​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder,
                                           long bitrate)
        Called when the bitrate of the source audio stream is calculated
        Parameters:
        liveStreamTranscoder - live stream transcoder
        bitrate - source bitrate (bytes per second)
      • onSessionDestinationCreate

        void onSessionDestinationCreate​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder,
                                        com.wowza.wms.transcoder.model.TranscoderSessionDestination sessionDestination)
        Called when transcoding destination is created
        Parameters:
        liveStreamTranscoder - live stream transcoder
        sessionDestination - destination
      • onSessionVideoEncodeCreate

        void onSessionVideoEncodeCreate​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder,
                                        com.wowza.wms.transcoder.model.TranscoderSessionVideoEncode sessionVideoEncode)
        Called when video encoder session is created.
        Parameters:
        liveStreamTranscoder - live stream transcoder
        sessionVideoEncode - video session
      • onSessionAudioEncodeCreate

        void onSessionAudioEncodeCreate​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder,
                                        com.wowza.wms.transcoder.model.TranscoderSessionAudioEncode sessionAudioEncode)
        Called when audio encoder session is created.
        Parameters:
        liveStreamTranscoder - live stream transcoder
        sessionAudioEncode - audio session
      • onSessionDataEncodeCreate

        void onSessionDataEncodeCreate​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder,
                                       com.wowza.wms.transcoder.model.TranscoderSessionDataEncode sessionDataEncode)
        Called when data encoder session is created.
        Parameters:
        liveStreamTranscoder - live stream transcoder
        sessionDataEncode - data session
      • onSessionVideoEncodeInit

        void onSessionVideoEncodeInit​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder,
                                      com.wowza.wms.transcoder.model.TranscoderSessionVideoEncode sessionVideoEncode)
        Called after video session is initialized.
        Parameters:
        liveStreamTranscoder - live stream transcoder
        sessionVideoEncode - video session
      • onSessionAudioEncodeInit

        void onSessionAudioEncodeInit​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder,
                                      com.wowza.wms.transcoder.model.TranscoderSessionAudioEncode sessionAudioEncode)
        Called after audio session is initialized.
        Parameters:
        liveStreamTranscoder - live stream transcoder
        sessionAudioEncode - audio session
      • onSessionDataEncodeInit

        void onSessionDataEncodeInit​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder,
                                     com.wowza.wms.transcoder.model.TranscoderSessionDataEncode sessionDataEncode)
        Called after data session is initialized.
        Parameters:
        liveStreamTranscoder - live stream transcoder
        sessionDataEncode - data session
      • onSessionVideoEncodeSetup

        void onSessionVideoEncodeSetup​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder,
                                       com.wowza.wms.transcoder.model.TranscoderSessionVideoEncode sessionVideoEncode)
        Called after native video encoder is created and initialized.
        Parameters:
        liveStreamTranscoder - live stream transcoder
        sessionVideoEncode - video session
      • onSessionAudioEncodeSetup

        void onSessionAudioEncodeSetup​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder,
                                       com.wowza.wms.transcoder.model.TranscoderSessionAudioEncode sessionAudioEncode)
        Called after native audio encoder is created and initialized.
        Parameters:
        liveStreamTranscoder - live stream transcoder
        sessionAudioEncode - audio session
      • onSessionVideoEncodeCodecInfo

        void onSessionVideoEncodeCodecInfo​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder,
                                           com.wowza.wms.transcoder.model.TranscoderSessionVideoEncode sessionVideoEncode,
                                           com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo)
        Called when video encoding information is available.
        Parameters:
        liveStreamTranscoder - live stream transcoder
        sessionVideoEncode - video session
        codecInfoVideo - encoding info
      • onSessionAudioEncodeCodecInfo

        void onSessionAudioEncodeCodecInfo​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder,
                                           com.wowza.wms.transcoder.model.TranscoderSessionAudioEncode sessionAudioEncode,
                                           com.wowza.wms.media.model.MediaCodecInfoAudio codecInfoAudio)
        Called when audio encoding information is available.
        Parameters:
        liveStreamTranscoder - live stream transcoder
        sessionAudioEncode - audio session
        codecInfoAudio - encoding info
      • onSessionVideoDecodeCodecInfo

        void onSessionVideoDecodeCodecInfo​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder,
                                           com.wowza.wms.media.model.MediaCodecInfoVideo codecInfoVideo)
        Called when video decoding information is available.
        Parameters:
        liveStreamTranscoder - live stream transcoder
        codecInfoVideo - video info
      • onSessionAudioDecodeCodecInfo

        void onSessionAudioDecodeCodecInfo​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder,
                                           com.wowza.wms.media.model.MediaCodecInfoAudio codecInfoAudio)
        Called when audio decoding information is available.
        Parameters:
        liveStreamTranscoder - live stream transcoder
        codecInfoAudio - audio info
      • onRegisterStreamNameGroup

        void onRegisterStreamNameGroup​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder,
                                       com.wowza.wms.transcoder.model.TranscoderStreamNameGroup streamNameGroup)
        Called after a stream name group is resolved and registered with MediaStreamMap
        Parameters:
        liveStreamTranscoder - live stream transcoder
        streamNameGroup - stream name group
      • onUnregisterStreamNameGroup

        void onUnregisterStreamNameGroup​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder,
                                         com.wowza.wms.transcoder.model.TranscoderStreamNameGroup streamNameGroup)
        Called after a stream name group is unregistered with MediaStreamMap
        Parameters:
        liveStreamTranscoder - live stream transcoder
        streamNameGroup - stream name group
      • onShutdownStart

        void onShutdownStart​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder)
        Called when the live stream transcoder starts to shutdown.
        Parameters:
        liveStreamTranscoder - live stream transcoder
      • onShutdownStop

        void onShutdownStop​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder)
        Called when the live stream transcoder is shutdown.
        Parameters:
        liveStreamTranscoder - live stream transcoder
      • onResetStream

        void onResetStream​(com.wowza.wms.transcoder.model.LiveStreamTranscoder liveStreamTranscoder)
        Called when the stream feeding the live stream transcoder switches.
        Parameters:
        liveStreamTranscoder - live stream transcoder