play
play(); (MultiMedia) play(delay: Integer); (Picture)
The play method of the MultiMedia class starts the device playing from the current position in the content.
The following examples show the use of the MultiMedia class play method to play a video file.
mmcontrol.mediaName := "c:\image.avi"; mmcontrol.play; play_click(btn: Button input) updating; begin cd.play; stop.setFocus; end;
See also the MultiMedia class playFromTo and playReverse methods.
The play method of the Picture class causes a separate thread to be initiated, which cycles through the pictures in an array defined by the setPicture method with a pause between the display of each picture in the array. Use the delay parameter to specify in milliseconds the length of the pause between each picture that is displayed. (See also the stop method.)
When using the play method to display pictures:
-
If the value of the pictureCount property of the Picture control is zero (0), this method does nothing.
-
If the value of the pictureCount property of the Picture control is 1, this method displays the only picture in the picture array.
-
If the value of the pictureCount property or the pictureIndex property of the Picture control is changed, the animation stops.
-
The picture is not resized for each picture. The current size of the picture is retained.
-
The value of the pictureIndex property of the Picture control accessed by logic does not reflect the index in use by this animation.
-
If the value of the pictureIndex property of the Picture control is zero (0), the animation starts with the first picture in the array. If the value of the pictureIndex property is non-zero, the animation starts with the next picture in that array.
-
The paint event is not invoked during the animation process.
When running the JADE application in thin client mode, this method executes on the presentation client by default.