/// <summary> /// Returns the current position within an audio file. /// </summary> /// <param name="mediaSuccess">The callback that is called with the current position in seconds.</param> /// <param name="mediaError">The callback that is called if there was an error.</param> /// <example> /// usage /// <code> /// // Audio player /// // ///var my_media = new Media(src, onSuccess, onError); /// // Update media position every second ///var mediaTimer = setInterval(function() { /// // get media position /// my_media.getCurrentPosition( /// // success callback /// function(position) { /// if (position > -1) { /// console.log((position) + " sec"); /// } /// }, /// // error callback /// function(e) { /// console.log("Error getting pos=" + e); /// } /// ); ///}, 1000); /// </code> /// </example> public void getCurrentPosition(JsFunction mediaSuccess, MediaError mediaError) { }
/// <summary> /// The Media object provides the ability to record and play back audio files on a device. /// </summary> /// <param name="src">A URI containing the audio content</param> /// <param name="mediaSuccess"> (Optional) The callback that is invoked after a Media object has completed the current play/record or stop action.</param> /// <param name="mediaError"> (Optional) The callback that is invoked if there was an error.</param> /// <param name="mediaStatus">(Optional) The callback that is invoked to indicate status changes</param> public Media(JsString src, JsAction mediaSuccess, MediaError mediaError, JsAction mediaStatus) { }