SmartThingsUle / DLNA-PLAYER

Generic DLNA Player to Smartthings
101 stars 269 forks source link

Request for more tones/chimes #16

Open aniceberg opened 6 years ago

aniceberg commented 6 years ago

Is there a method to add custom sounds to aside from the "Bell 1","Bell 2","Dogs Barking","Fire Alarm","Piano", & "Lightsaber" currently available?

SmartThingsUle commented 6 years ago

No, but you can add more sound editing the line 64 input "sound", "enum", title: "Play this Sound?", required: actionType == "Sound"? true:flase, defaultValue: "Bell 1", options: ["Bell 1","Bell 2","Dogs Barking","Fire Alarm","Piano","Lightsaber","MySound"]

and line 577

case "MySound": state.sound = [uri: "http://mysite.com/audio.mp3", duration: "10"] break;

aniceberg commented 6 years ago

Thanks! Do you know if URI will accept smb:// input?