Interface IMediaStreamActionNotify

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onPause​(IMediaStream stream, boolean isPause, double location)
      Triggered on mediaStream pause
      void onPlay​(IMediaStream stream, String streamName, double playStart, double playLen, int playReset)
      Triggered on mediaStream play
      void onPublish​(IMediaStream stream, String streamName, boolean isRecord, boolean isAppend)
      Triggered on mediaStream publish
      void onSeek​(IMediaStream stream, double location)
      Triggered on mediaStream seek
      void onStop​(IMediaStream stream)
      Triggered on mediaStream stop
      void onUnPublish​(IMediaStream stream, String streamName, boolean isRecord, boolean isAppend)
      Triggered on mediaStream unpublish
    • Method Detail

      • onPlay

        void onPlay​(IMediaStream stream,
                    String streamName,
                    double playStart,
                    double playLen,
                    int playReset)
        Triggered on mediaStream play
        Parameters:
        stream - mediaStream
        streamName - streamName
        playStart - playStart offset
        playLen - playLen
        playReset - reset playlist
      • onPublish

        void onPublish​(IMediaStream stream,
                       String streamName,
                       boolean isRecord,
                       boolean isAppend)
        Triggered on mediaStream publish
        Parameters:
        stream - mediaStream
        streamName - streamName
        isRecord - recording stream
        isAppend - appending to file
      • onUnPublish

        void onUnPublish​(IMediaStream stream,
                         String streamName,
                         boolean isRecord,
                         boolean isAppend)
        Triggered on mediaStream unpublish
        Parameters:
        stream - mediaStream
        streamName - streamName
        isRecord - recording stream
        isAppend - appending to file
      • onPause

        void onPause​(IMediaStream stream,
                     boolean isPause,
                     double location)
        Triggered on mediaStream pause
        Parameters:
        stream - mediaStream
        isPause - pause or unpause
        location - location (milliseconds)
      • onSeek

        void onSeek​(IMediaStream stream,
                    double location)
        Triggered on mediaStream seek
        Parameters:
        stream - mediaStream
        location - location (milliseconds)
      • onStop

        void onStop​(IMediaStream stream)
        Triggered on mediaStream stop
        Parameters:
        stream - mediaStream