getStartPosition

getStartPosition(): Integer;

The getStartPosition method of the MultiMedia class returns the start position of the content of the medium in the current device.

The start position is expressed in units of the timeFormat property.

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

stop_click(btn: Button input) updating;
begin
    if cd.getMode = MultiMedia.Mode_Playing then
        cd.stop;
        cd.position := cd.getStartPosition;
    endif;
end;