OnTrackProgress Event



 
Fires when the progress of writing tracks changes.


Syntax

    SiteKiosk.CDRecording.OnTrackProgress = handler
Parameters
    completed Long value that contains the number of written tracks.
    total Long value that contains the total number of tracks.
Remarks
    The object that caused the event can be referenced in the event function using "this".
Examples
    The following example displays the progress of writing tracks when recording.

    <div id="id_tracks">Tracks: 0 / 0</div>
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    var lk_CDRecording = SiteKiosk.CDRecording;
    lk_CDRecording.OnTrackProgress = OnTrackProgress;
    function OnTrackProgress(completed, total)
    {
       id_tracks.innerHTML = "Tracks: " + completed + " / " + total;
    }
    </SCRIPT>
    

Applies to
    SiteKiosk v6.0 (and later versions).

Back to top