Class MovieReader

    • Field Detail

      • fileOrURL

        public FileParameter fileOrURL
        The file name or URL from which to read. This is a string with any form accepted by File Attribute. The default value is the string "file:///C:/program%20files/quicktime/Sample.mov".
        See Also:
        FileParameter
    • Method Detail

      • attributeChanged

        public void attributeChanged​(Attribute attribute)
                              throws IllegalActionException
        An attempt is made to acquire the file name. If it is successful, create the DataSource that encapsulates the file.
        Overrides:
        attributeChanged in class NamedObj
        Parameters:
        attribute - The attribute that changed.
        Throws:
        IllegalActionException - If the URL is null, or invalid.
      • controllerUpdate

        public void controllerUpdate​(javax.media.ControllerEvent event)
        The controller listener. This method controls the initializing of the player. It also senses when the file is done playing, in which case it closes the player.
        Specified by:
        controllerUpdate in interface javax.media.ControllerListener
        Parameters:
        event - The controller event.
      • _waitForState

        protected boolean _waitForState​(int state)
                                 throws IllegalActionException
        Block until the processor has transitioned to the given state.
        Parameters:
        state - The state.
        Returns:
        false if the transition failed.
        Throws:
        IllegalActionException - If there is a problem blocking the processor until the state transition is completed.