Product Information > JADE Encyclopaedia of Classes – Volume 3 > Chapter 2 - Window Classes > playReverse

playReverse

playReverse();

The playReverse method of the MultiMedia class starts the device playing from the current position in the content in the reverse direction.

The playReverse method does not invoke continuous loop play when the value of the repeat property is set to true.

Not all devices have the ability to play in reverse.

The method in the following example shows the use of the playReverse method.

buttonPlayReverse_click(btn: Button input) updating;
vars
    from, two : Integer;
begin
    from := textBoxFrom.text.Integer;
    two  := textBoxTo.text.Integer;
    if from <> null and two <> null then  // "to" is a JADE reserved word
        multimedia.playFromTo(two, from);
    else
        multimedia.playReverse;
    endif;
end;

See also the play and playFromTo methods.