Class KeyFrameControlAdapter
- java.lang.Object
-
- org.jitsi.service.neomedia.control.KeyFrameControlAdapter
-
- All Implemented Interfaces:
KeyFrameControl
public class KeyFrameControlAdapter extends Object implements KeyFrameControl
Provides a default implementation ofKeyFrameControl.- Author:
- Lyubomir Marinov
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jitsi.service.neomedia.control.KeyFrameControl
KeyFrameControl.KeyFrameRequestee, KeyFrameControl.KeyFrameRequester
-
-
Constructor Summary
Constructors Constructor Description KeyFrameControlAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddKeyFrameRequestee(int index, KeyFrameControl.KeyFrameRequestee keyFrameRequestee)voidaddKeyFrameRequester(int index, KeyFrameControl.KeyFrameRequester keyFrameRequester)List<KeyFrameControl.KeyFrameRequestee>getKeyFrameRequestees()ImplementsKeyFrameControl.getKeyFrameRequestees().List<KeyFrameControl.KeyFrameRequester>getKeyFrameRequesters()ImplementsKeyFrameControl.getKeyFrameRequesters().booleankeyFrameRequest()ImplementsKeyFrameControl.keyFrameRequest().booleanremoveKeyFrameRequestee(KeyFrameControl.KeyFrameRequestee keyFrameRequestee)booleanremoveKeyFrameRequester(KeyFrameControl.KeyFrameRequester keyFrameRequester)booleanrequestKeyFrame(boolean urgent)ImplementsKeyFrameControl.requestKeyFrame(boolean).
-
-
-
Method Detail
-
addKeyFrameRequestee
public void addKeyFrameRequestee(int index, KeyFrameControl.KeyFrameRequestee keyFrameRequestee)ImplementsKeyFrameControl.addKeyFrameRequestee(int, KeyFrameRequestee). Adds a KeyFrameRequestee to be made available through this KeyFrameControl.- Specified by:
addKeyFrameRequesteein interfaceKeyFrameControl- 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 KeyFrameControlkeyFrameRequestee- 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)ImplementsKeyFrameControl.addKeyFrameRequester(int, KeyFrameRequester). Adds a KeyFrameRequester to be made available through this KeyFrameControl.- Specified by:
addKeyFrameRequesterin interfaceKeyFrameControl- 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 KeyFrameControlkeyFrameRequester- the KeyFrameRequester to be added to this KeyFrameControl so that it is made available through it
-
getKeyFrameRequestees
public List<KeyFrameControl.KeyFrameRequestee> getKeyFrameRequestees()
ImplementsKeyFrameControl.getKeyFrameRequestees(). Gets the KeyFrameRequestees made available through this KeyFrameControl.- Specified by:
getKeyFrameRequesteesin interfaceKeyFrameControl- Returns:
- an unmodifiable list of KeyFrameRequestees made available through this KeyFrameControl
-
getKeyFrameRequesters
public List<KeyFrameControl.KeyFrameRequester> getKeyFrameRequesters()
ImplementsKeyFrameControl.getKeyFrameRequesters(). Gets the KeyFrameRequesters made available through this KeyFrameControl.- Specified by:
getKeyFrameRequestersin interfaceKeyFrameControl- Returns:
- an unmodifiable list of KeyFrameRequesters made available through this KeyFrameControl
-
keyFrameRequest
public boolean keyFrameRequest()
ImplementsKeyFrameControl.keyFrameRequest(). Notifies this KeyFrameControl that the remote peer of the associated VideoMediaStream has requested a key frame from the local peer.- Specified by:
keyFrameRequestin interfaceKeyFrameControl- Returns:
- true if the local peer has honored the request from the remote peer for a key frame; otherwise, false
-
removeKeyFrameRequestee
public boolean removeKeyFrameRequestee(KeyFrameControl.KeyFrameRequestee keyFrameRequestee)
ImplementsKeyFrameControl.removeKeyFrameRequestee(KeyFrameRequestee). Removes a KeyFrameRequestee to no longer be made available through this KeyFrameControl.- Specified by:
removeKeyFrameRequesteein interfaceKeyFrameControl- Parameters:
keyFrameRequestee- the KeyFrameRequestee to be removed from this KeyFrameControl so that it is no longer made available through it- Returns:
- true if keyFrameRequestee was found in this KeyFrameControl; otherwise, false
-
removeKeyFrameRequester
public boolean removeKeyFrameRequester(KeyFrameControl.KeyFrameRequester keyFrameRequester)
ImplementsKeyFrameControl.removeKeyFrameRequester(KeyFrameRequester). Removes a KeyFrameRequester to no longer be made available through this KeyFrameControl.- Specified by:
removeKeyFrameRequesterin interfaceKeyFrameControl- Parameters:
keyFrameRequester- the KeyFrameRequester to be removed from this KeyFrameControl so that it is no longer made available through it- Returns:
- true if keyFrameRequester was found in this KeyFrameControl; otherwise, false
-
requestKeyFrame
public boolean requestKeyFrame(boolean urgent)
ImplementsKeyFrameControl.requestKeyFrame(boolean). Requests a key frame from the remote peer of the associated VideoMediaStream.- Specified by:
requestKeyFramein interfaceKeyFrameControl- 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
-
-