Difference between revisions of "ISDBDownloader::PauseDownload"

From MediaMonkey Wiki
Jump to: navigation, search
(Related Topics)
Line 36: Line 36:
===Related Topics===
===Related Topics===

Latest revision as of 09:29, 8 June 2010

CoClass SDBDownloader, Interface ISDBDownloader

Method PauseDownload( URL As String)


Name Type Description
URL String URL of the download to be paused

Method description

Pauses download for the given URL.

Added in MediaMonkey 4.0

Example code

Option Explicit

Dim UI  : Set UI = SDB.UI

Sub OnStartUp()
    Dim mnuTest

    Set mnuTest = SDB.UI.AddMenuItem(SDB.UI.Menu_Edit, 0, 0)
    mnuTest.Caption = SDB.Localize("Pause Download")
    mnuTest.OnClickFunc = "SDBOnClick"
    mnuTest.UseScript = Script.ScriptPath       
End Sub

Sub SDBOnClick(Item)   
  SDB.Downloader.PauseDownload "http://www.spiker.wz.cz/SecretStream.mp3"
End Sub

Related Topics