Class KeyFrameControlAdapter

    • Constructor Detail

      • KeyFrameControlAdapter

        public KeyFrameControlAdapter()
    • Method Detail

      • addKeyFrameRequestee

        public void addKeyFrameRequestee​(int index,
                                         KeyFrameControl.KeyFrameRequestee keyFrameRequestee)
        Implements KeyFrameControl.addKeyFrameRequestee(int, KeyFrameRequestee). Adds a KeyFrameRequestee to be made available through this KeyFrameControl.
        Specified by:
        addKeyFrameRequestee in interface KeyFrameControl
        Parameters:
        index - the zero-based index at which keyFrameRequestee is to be added to the list of KeyFrameRequestees made available or -1 to have this KeyFrameControl choose at which index it is to be added in accord with its internal logic through this KeyFrameControl
        keyFrameRequestee - the KeyFrameRequestee to be added to this KeyFrameControl so that it is made available through it
      • addKeyFrameRequester

        public void addKeyFrameRequester​(int index,
                                         KeyFrameControl.KeyFrameRequester keyFrameRequester)
        Implements KeyFrameControl.addKeyFrameRequester(int, KeyFrameRequester). Adds a KeyFrameRequester to be made available through this KeyFrameControl.
        Specified by:
        addKeyFrameRequester in interface KeyFrameControl
        Parameters:
        index - the zero-based index at which keyFrameRequester is to be added to the list of KeyFrameRequesters made available or -1 to have this KeyFrameControl choose at which index it is to be added in accord with its internal logic through this KeyFrameControl
        keyFrameRequester - the KeyFrameRequester to be added to this KeyFrameControl so that it is made available through it
      • keyFrameRequest

        public boolean keyFrameRequest()
        Implements KeyFrameControl.keyFrameRequest(). Notifies this KeyFrameControl that the remote peer of the associated VideoMediaStream has requested a key frame from the local peer.
        Specified by:
        keyFrameRequest in interface KeyFrameControl
        Returns:
        true if the local peer has honored the request from the remote peer for a key frame; otherwise, false
      • requestKeyFrame

        public boolean requestKeyFrame​(boolean urgent)
        Implements KeyFrameControl.requestKeyFrame(boolean). Requests a key frame from the remote peer of the associated VideoMediaStream.
        Specified by:
        requestKeyFrame in interface KeyFrameControl
        Parameters:
        urgent - true if the caller has determined that the need for a key frame is urgent and should not obey all constraints with respect to time between two subsequent requests for key frames
        Returns:
        true if a key frame was indeed requested from the remote peer of the associated VideoMediaStream in response to the call; otherwise, false