src/net/java/sip/communicator/service/protocol/media/AbstractOperationSetVideoTelephony.java
/**
     * Delegates to the <tt>CallPeerMediaHandler</tt> of the specified
     * <tt>CallPeer</tt> because the video is provided by it. Because other
     * <tt>OperationSetVideoTelephony</tt> implementations may not provide their
     * video through the <tt>CallPeerMediaHandler</tt>, this implementation
     * promotes itself as the provider of the video by replacing the
     * <tt>CallPeerMediaHandler</tt> in the <tt>VideoEvents</tt> it fires.
     *
     * @param peer the <tt>CallPeer</tt> that we will be registering
     * <tt>listener</tt> with.
     * @param listener the <tt>VideoListener</tt> that we'd like to register.
     */
Delegates to the CallPeerMediaHandler of the specified
CallPeer because the video is provided by it. Because other
OperationSetVideoTelephony implementations may not provide their
video through the CallPeerMediaHandler, this implementation
promotes itself as the provider of the video by replacing the
CallPeerMediaHandler in the VideoEvents it fires.

@param peer the CallPeer that we will be registering
listener with.
@param listener the VideoListener that we'd like to register.
Delegates to the CallPeerMediaHandler of the specified CallPeer because the video is provided by it . Because other OperationSetVideoTelephony implementations may not provide their video through the CallPeerMediaHandler this implementation promotes itself as the provider of the video by replacing the CallPeerMediaHandler in the VideoEvents it fires . @param peer the CallPeer that we will be registering listener with . @param listener the VideoListener that we ' d like to register .
@SuppressWarnings("unchecked") 
    public void addVideoListener(CallPeer peer, VideoListener listener)
    {
        if (listener == null)
            throw new NullPointerException("listener");
        ((W)peer).getMediaHandler().addVideoListener(listener);
    }
@ SuppressWarnings ( "unchecked" ) public void addVideoListener ( CallPeer peer , VideoListener listener ) { if ( listener == null ) throw new NullPointerException ( "listener" ) ; ( ( W ) peer ) . getMediaHandler ( ) . addVideoListener ( listener ) ; }
Delegates to the <tt>CallPeerMediaHandler</tt> of the specified
 <tt>CallPeer</tt> because the video is provided by it.
Delegates to the <tt > CallPeerMediaHandler< / tt > of the specified <tt > CallPeer< / tt > because the video is provided by it .
// work with MediaAware* in media package