JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 02.05.2018, 21:31
Jackard Jackard is offline
Vacuum Cleaner
 
Join Date: Feb 2011
Posts: 17
Default Play Sound When download is started

Hi,

I write this script to play sound when dl is started but it's not good


// Play wav file when download is started
if (link.isStarted()) {
var wavFile = JD_HOME + "/themes/standard/org/jdownloader/sounds/DingDong.wav"; // wav file to play
playWavAudio(wavFile);
}


Help Thx
Reply With Quote
  #2  
Old 03.05.2018, 10:13
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

Please ask here for help, https://board.jdownloader.org/showthread.php?t=70525
There is no isStarted() method available. What makes you think there is?
Just create a script for event *DOWNLOAD_STARTED* and remove the if condition
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 03.05.2018, 12:35
Jackard Jackard is offline
Vacuum Cleaner
 
Join Date: Feb 2011
Posts: 17
Default

Quote:
Originally Posted by Jiaz View Post
Please ask here for help, **External links are only visible to Support Staff**...
There is no isStarted() method available. What makes you think there is?
Just create a script for event *DOWNLOAD_STARTED* and remove the if condition
It's OK Thank you
Reply With Quote
  #4  
Old 03.05.2018, 12:52
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,232
Default

You're welcome
__________________
JD-Dev & Server-Admin
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 06:01.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.