getLength

getLength(): Integer;

The getLength method of the MultiMedia class returns the length of the content of the medium in the current device. The length is expressed in units of the timeFormat property.

The code fragment in the following example shows the use of the getLength method.

if mode = MultiMedia.Mode_Stopped and pos >= cd.getLength then
    cd_notifyMode(cntrl, MultiMedia.Mode_Stopped);
endif;