Software Archive
Read-only legacy content

sound not work for installed apk file

zeroman_z_
Beginner
317 Views

sound not work 

    intel.xdk.player.playSound(intel.xdk.webRoot + "sounds/1.wav");

0 Kudos
4 Replies
Ad
New Contributor III
317 Views

It looks like intel.xdk.webRoot is not supported in Cordova Hybrid Apps. In the debugger the value is null

The solution is simple: just remove it! This works because intel.xdk.player.playSound() expects a relative URL
more info: https://software.intel.com/en-us/node/493312

intel.xdk.player.playSound("sounds/1.wav");


 

0 Kudos
zeroman_z_
Beginner
317 Views

 

    intel.xdk.player.playSound("sounds/1.wav");

'intel' is not defined. (W117)

 

0 Kudos
zeroman_z_
Beginner
317 Views

i need button click sound code work 

0 Kudos
Ad
New Contributor III
317 Views

zeroman z. wrote:

    intel.xdk.player.playSound("sounds/1.wav");

'intel' is not defined. (W117)

See this post: https://software.intel.com/en-us/forums/intel-xdk/topic/560196

 

zeroman z. wrote:

i need button click sound code work 

See your previous post about add 'increasing the input number'

 

P.S.Before starting a new thread, please try searching the forums for an answer ;-)

 

 

 

0 Kudos
Reply