Class VideoContainer

    • Field Detail

      • DEFAULT_BACKGROUND_COLOR

        public static final Color DEFAULT_BACKGROUND_COLOR
        The default background color of VideoContainer when it contains Component instances other than noVideoComponent.
    • Constructor Detail

      • VideoContainer

        public VideoContainer​(Component noVideoComponent,
                              boolean conference)
        Initializes a new VideoContainer with a specific Component to be displayed when no remote video is available.
        Parameters:
        noVideoComponent - the component to be displayed when no remote video is available
        conference - true to dedicate the new instance to a telephony conferencing user interface; otherwise, false
    • Method Detail

      • add

        public void add​(Component comp,
                        Object constraints,
                        int index)
        Overrides the default behavior of add in order to be sure to remove the default "no video" component when a remote video component is added.
        Overrides:
        add in class Container
        Parameters:
        comp - the component to add
        constraints -
        index -
      • remove

        public void remove​(Component comp)
        Overrides the default remove behavior in order to add the default no video component when the remote video is removed.
        Overrides:
        remove in class Container
        Parameters:
        comp - the component to remove
      • removeAll

        public void removeAll()
        Ensures noVideoComponent is displayed even when the clients of the videoContainer invoke its #removeAll() to remove their previous visual Components representing video. Just adding noVideoComponent upon ContainerEvent#COMPONENT_REMOVED when there is no other Component left in the Container will cause an infinite loop because Container#removeAll() will detect that a new Component has been added while dispatching the event and will then try to remove the new Component.
        Overrides:
        removeAll in class Container